Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to hide members from being listed?


  • coachcs
    Participant

    @coachcs

    Hi guys,

    any suggestion how to hide the members in bbPress from being listed to all other members? This is a data protection issue. One should be able to be a registered member without being exposed to all others.

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

  • Indrekkor
    Participant

    @indrekhirsnik

    No idea if this was the most optimal way to do it, but did it like this :

    <?php 
    
    $val2=bbp_get_user_id();
    $val3=get_current_user_id( );
    if ( current_user_can( 'moderate' ) OR $val2 == $val3 ) :
        ?>
    
    Anything you want the moderator or logged in user to see.
    <?php endif; ?>
    

    Modified all the user-*****.php files like this.

    Also in other template files I modified the code so usernames are not linkable to their profile.


    Robin W
    Moderator

    @robin-w

    If you are just using bbpress (and not buddypress) then install

    bbp style pack

    and go to

    dashboard>settings>bbp style pack>profile and you’ll see options to block this

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar