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 4 replies - 1 through 4 (of 4 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


    coachcs
    Participant

    @coachcs

    Awesome, Indrekkor.

    I will check this out. Thanks a bunch for taking the effort.


    coachcs
    Participant

    @coachcs

    Thank you Robin!

    Unfortunately we do use buddypress along with bbpress. So I’d be thankful for a plugin solution that works for both.

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