creating more than one editable extra group tab / page
I recently made my way through the group extension api and with the help of the group skeleton component created a plugin which, when activated, creates a new group tab. The tab shows fields which are editable in a subnav: group > admin > new_group_tab. I cloned my plugin (renamed functions and classes of course) 3 times to create 3 editable tabs. They all work correctly, save their fields data in edit, display it in tab etc.
BUT there is a problem with the subnav:
The whole ADMIN subnav of the group looks now like this:
Details | Settings | Avatar | Memebers | Group tab1 | Group tab2 | Group tab3 | Forum
– When i click on:
Details | Settings | Avatar | Memebers or | Forum
everything is fine.
– When i click on Group tab1 the subnav looks like this:
Details | Settings | Avatar | Memebers | Group tab1
– When i click on Group tab2 the subnav looks like this:
Details | Settings | Avatar | Memebers | Group tab1 | Group tab2
– When i click on Group tab3 the subnav looks like this:
Details | Settings | Avatar | Memebers | Group tab1 | Group tab2 | Group tab3
So by clicking on an admin > group tabX item, all the items behind the current are not rendered.
Can anybody give me a hint on how to fix this?
Here’s the code:
I really need a solution for this 🙁 Could some knowing over-person have a look?
As soon as it’s fixed i’ll put it in the plugin repository in case others have the same needs.
You mentioned three tabs but the code is only for one tab. Can I have a look at the complete source for all three tabs?
As I said, copied the component 2 times and renamed the classes inside. Then I installed the 2 other separate components separately. So I couldn’t post anything else than a copy of the code I showed u… Was that understandable? sry 😀 im grateful for ur help!
Yes, got that part. The only thing I can think of is that the (renamed) classes are affecting the classes after it (on the admin screens).
I’ll test the pasted code and see if I can recreate the problem then get back to you.
Glad I can help!
But isn’t a renamed class / function an independent one? I simply replaced tab1 with tab2 to create a clone
I recreated this problem on my setup. I am also developing a group extension and even it interferes with your admin screens. I can’t find any indication of what is causing this.
I’ll keep trying, but maybe someone else should have a look at this as well…
This problem also seems to affect the Buddypress Group Extras plugin. After clicking on one of the above mentioned tabs under the group admin screen, the “Extras” tab also disappears, but when clicking on the Extras tab, all the (added) tabs before it shows up.
It should be noted, when viewing one of the added admin tabs and the added admin tabs after it disappears, the corresponding main tabs in the group also disappear. This also includes the “Member Groups” tab of the BuddyPress Group Hierarchy plugin which also uses the BP_Group_Extension class.
This is a duplicate of an issue published a year ago! https://buddypress.org/support/topic/using-group-extension-api-to-add-2-extensions/
Apparently this was fixed for BP 1.7
hmmmmmmmmmmmmmmmmmmmmmmmmm … i got 1.7 installed and have the same prob. THANK U so much for your responses, this is really helpful and kind!!! I looked for the issue before i posted it here but i didn’t find these threads/tickets.
So if it’s fixed in 1.7, why does it appear in my case. What exactly is the source of the problem? I’m not really good in php, so if it’s obvious for smart people, maybe u could point it out to a blind soul 😀
First idea after reading that it was fixed in 1.7 was, that the wp-theme i bought maybe uses some outdated bp-files so that bp 1.7 doesnt take effect. But if u could reproduce the error it seems to be theme independent …
i feel smarter, but not closer to making it work :-S
@shiftyRZA i saw that u posted the issue here https://buddypress.trac.wordpress.org/ticket/4586#comment:7 again. Thanks! Boone answered and changed the milestone from 1.7 to 1.8. Does that mean, that the BP-Team is looking for the template-loading-delay solution and tries to come up with a fix until 1.8 is released?
If so, is there any “dirty code” that might fix the problem locally until then? My problem is, that i’m close to releasing a business-site which can’t afford such phenomena in the admin area. So if the BP-Team is working on a fix, i’ll wait with my release until then. If there won’t be a fix in the next months, i’ll have to find other solutions for the features i wanna offer :-S
Thanks again for your time … Much appreciated!
- The topic ‘creating more than one editable extra group tab / page’ is closed to new replies.