Skip to:
Content
Pages
Categories
Search
Top
Bottom

Followers of the profile menu and on the header

  • Avatar of hkcharlie
    hkcharlie
    Participant

    @hkcharlie

    I’d like to take the “Followers” & “Following” off of the users profile menu and put them on as a count and link on the top rightt of the profile header.

    I’ve hacked all of this out of the bp-follow.php :

    bp_core_new_nav_item( array(
    ‘name’ => sprintf( __( ‘Following %d‘, ‘bp-follow’ ), $counts ),
    ‘slug’ => $bp->follow->following->slug,
    ‘position’ => apply_filters( ‘bp_follow_following_nav_position’, 61 ),
    ‘screen_function’ => ‘bp_follow_screen_following’,
    ‘default_subnav_slug’ => ‘following’,
    ‘item_css_id’ => ‘following’
    ) );

    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Following’, ‘bp-follow’ ),
    ‘slug’ => ‘following’,
    ‘parent_url’ => trailingslashit( bp_loggedin_user_domain() . $bp->follow->following->slug ),
    ‘parent_slug’ => $bp->follow->following->slug,
    ‘screen_function’ => ‘bp_follow_screen_following’,
    ‘position’ => 10,
    ‘item_css_id’ => ‘following’
    ) );

    bp_core_new_nav_item( array(
    ‘name’ => sprintf( __( ‘Followers %d‘, ‘bp-follow’ ), $counts ),
    ‘slug’ => $bp->follow->followers->slug,
    ‘position’ => apply_filters( ‘bp_follow_followers_nav_position’, 62 ),
    ‘screen_function’ => ‘bp_follow_screen_followers’,
    ‘default_subnav_slug’ => ‘followers’,
    ‘item_css_id’ => ‘followers’
    ) );

    and it’s seemed to have succesfully removed the options from the user menu.

    I then assume that I have to put this code into a php file that has the header information for my user profile. Can someone tell me where that is, or if I’m going in the wrong direction .

    Tahnk you

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

You must be logged in to reply to this topic.