Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_has_members problems

  • @intervik

    Participant

    Working 6 month with a Bp project and stumble upon this problem in v 5.7 (Not using 6.x) . When running a function with bp_has_members() when viewing another members profile IT ALWAYS filter the viewed members Friends list. In members directory -everything works fine.

    Tried everything. only returns displayed members friends id

    I made in funtions.php a call to :
    function whatever(){
    if ( bp_has_members(“type=online”) ) { ?> //bp_has_members() only does NOT work either

    <?php
    $id = bp_get_member_user_id();
    if(!user_invisible_mode($id)) $COL[] = $id;
    ?>

    <?php }

    I need the loop to work/ return/ go trough all members when calling this funtion on profile views.

    IS THERE a override in the core files that pushes profile -actions- just-filter-friends here?

    THANKS for any help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • @karmatosed

    Moderator

    Do you mean 1.6? As in BuddyPress 1.6 and BuddyPress 1.5.7? If so, then I’d check in 1.6 as things probably got fixed if a known bug. Alternatively if testing shows then same issue then please report via trac.

    https://buddypress.trac.wordpress.org/ticket/4155 seems to indicate it does work though.

    @intervik

    Participant

    thx for reply. but that ticket doesn task not my problem

    @intervik

    Participant

    v 5.7 (Not using 6.x) .

    @djpaul

    Keymaster

    Try passing user_id=0

    It sets the user_id param from the displayer user’s ID.

    @aaclayton

    Member

    Thank you @djpaul, I had a similar issue, and the user_id parameter saved my bacon!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘bp_has_members problems’ is closed to new replies.
Skip to toolbar