Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

  • rgilman
    Participant

    @rgilman

    Done. Ticket #8094


    rgilman
    Participant

    @rgilman

    I’ve got this sorted out. I filter bp_nouveau_get_groups_directory_nav_items to 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_querystring to query for the ‘others’ list.

    I’ve created a gist with the code.


    rgilman
    Participant

    @rgilman

    @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 wp_filter_kses to bp_get_the_profile_field_edit_value.

    I can fix this for my own purposes with a remove_filter call but this does look like a bug. Using wp_filter_kses instead of xprofile_filter_kses defeats 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?


    rgilman
    Participant

    @rgilman

    Any solution to this? I also need images to be allowed in xprofile text fields.


    rgilman
    Participant

    @rgilman

    Thanks again for your response. I did notice the no-ajax entry. I’ll dig into the My Groups code and see what I can find. If I find a solution, I update this topic.


    rgilman
    Participant

    @rgilman

    @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?


    rgilman
    Participant

    @rgilman

    Looks like we were writing in parallel! I’ll see what I can do with your edited response.


    rgilman
    Participant

    @rgilman

    @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?


    rgilman
    Participant

    @rgilman

    Thanks, Prashant, for your quick and helpful response. The code in the first link looks like it gives us a great pattern to start from.

Viewing 9 replies - 1 through 9 (of 9 total)
Skip to toolbar