Skip to:
Content
Pages
Categories
Search
Top
Bottom

Show number of friends in Members Directory

  • Avatar of smuda
    smuda
    Participant

    @smuda

    i currently use `echo BP_Friends_Friendship::total_friend_count( $bp->displayed_user->id ) ` to display the number of friends a user has on his profile. is there a way to display it in the members directory?

    `
    bp_has_activities( ‘type=personal&action=new_blog_comment&user_id=’ .
    bp_displayed_user_id() );
    global $activities_template;
    echo $activities_template->total_activity_count;
    `
    also doesn’t work in the directory. any help is appreciated :)

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.