Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Group ”Action Buttons” only showing on first page of Groups list

  • @jimmybarr

    Participant

    Hi again. the Multisite/BuddyPress site I’m building has 51 groups (one for each state in the U.S., plus District of Columbia). In the Groups tab, it shows 20 groups per page, so there are 3 pages’ worth of groups.

    When I am logged in as a test user (but not as admin), the first of the three Groups pages shows action buttons to the right of the group name: “Leave Group” and “Request Membership.” This is fine. However, if I move to page 2 or 3, or if I sort the groups in any way, those buttons disappear. I wish I could attach a screen shot here.

    My BuddyPress theme is BP Social v 1.3.5.5 by WPMU; I’m using WP v 3.4.2 and BP v 1.6.1.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @sbrajesh

    Participant

    There was a bug with bp-default theme shipped with bp 1.6+ and any theme which is based on bp-default or copies functions from it has the same bug.

    Here is a way to fix that.

    First look for this code(or similar) in your themes functions.php

    
    if ( !is_admin() ) {
    // Register buttons for the relevant component templates
    // Friends button
    if ( bp_is_active( 'friends' ) )
    add_action( 'bp_member_header_actions',    'bp_add_friend_button',           5 );
    
    // Activity button
    if ( bp_is_active( 'activity' ) )
    add_action( 'bp_member_header_actions',    'bp_send_public_message_button',  20 );
    
    // Messages button
    if ( bp_is_active( 'messages' ) )
    add_action( 'bp_member_header_actions',    'bp_send_private_message_button', 20 );
    

    and change this line

    
    if(!is_admin()){
    

    to this

    
    if ( !is_admin()||(is_admin()&&defined('DOING_AJAX')) ) {
    

    and it will work.

    @jimmybarr

    Participant

    Brilliant! That totally worked!

    Thank you, Brajesh.

    @jimmybarr

    Participant

    By the way, that code is in bp-functions.php, not functions.php. (Just in case someone with the same problem finds this thread.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Group ”Action Buttons” only showing on first page of Groups list’ is closed to new replies.
Skip to toolbar