Forum Replies Created
I’ve got this sorted out. I filter
bp_nouveau_get_groups_directory_nav_itemsto unset $nav[‘all’], adjust the properties of $nav[‘personal’] so it’s selected and first, get the group counts for My Groups and Other Groups, and specify the properties of $nav[‘others’]
I also filter
bp_nouveau_ajax_querystringto query for the ‘others’ list.
I’ve created a gist with the code.
@djpaul I’ve been digging into this and found the filter that’s overriding the ability to expand the permitted tags in xprofile textareas. It’s on line 19 in bp-xprofile-filters.php and adds
I can fix this for my own purposes with a
remove_filtercall but this does look like a bug. Using
xprofile_filter_ksesdefeats the expansion of the tag set. The fact that this is invoked in a ‘get’ is also odd.
What’s the best way for me to submit a bug report on this?
Any solution to this? I also need images to be allowed in xprofile text fields.
Thanks again for your response. I did notice the
no-ajaxentry. I’ll dig into the My Groups code and see what I can find. If I find a solution, I update this topic.
@shanebp, hooking into ‘bp_nouveau_get_groups_directory_nav_items’ works well to modify the nav items (thanks for that).
For testing purposes, I’ve created an ‘Others’ tab which is intended to display the groups that the member does not belong to. It links out to an ‘others.php’ template file but I haven’t been able to get this new nav item to do anything. Rather, it just duplicates the behavior of the ‘All Groups’ tab. I suspect I’m missing something that hooks into the AJAX process. Might @imath be some help with this as the creator of bp-nouveau?
Looks like we were writing in parallel! I’ll see what I can do with your edited response.
@shanebp, thanks for responding. Apologies if my language was confusing. You are right that I mean the Groups component directory and not the member profile page.
My users are primarily interested in navigating to their existing groups. Only occasionally will they want to explore other groups. I’d like to eliminate the extra step and distraction of the current tab order.
Anyone else have any ideas about how to change the tab order on the Groups Directory page in Nouveau?
I just discovered that if I select the My Groups tab, go away from the /groups/ page and then return to it, it retains the My Groups tab as the active tab. I wonder if there is a way to force this?