Skip to:
Content
Pages
Categories
Search
Top
Bottom

Feature request: Hide certain members

  • Avatar of mlemberg
    mlemberg
    Participant

    @mlemberg

    To me it seems odd, that site administrators are visible to other users. At my site I have two members named “Admin” and “Forum Admin”, Their roles goes without saying.

    But all my other members are regular users with regular names. Therefore it bothers me, that these two accounts show up in the members directory and the “Who’s online” widget.

    I would very much like the possibility to hide certain members from the directory, site wide activity and widgets, so that they can be sort of “silent watchers”.

    Any body else who’d like this feature

Viewing 10 replies - 1 through 10 (of 10 total)
  • Avatar of Jens Wedin
    Jens Wedin
    Participant

    @jedisthlm

    Also looking for a way to hide the admins. Anyony have a clue?

    Avatar of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    Change the user_status value in the wp_users table for those users to something like 99 and they will be hidden. That’s one somewhat hacky way of hiding them in the frontend.

    Avatar of Jens Wedin
    Jens Wedin
    Participant

    @jedisthlm

    Thanks, that is ok for now!

    Avatar of trivikrama
    Trivikrama
    Member

    @trivikrama

    Ya. I too want solution for the same kind of problem. It was ok for now. Is there any way to do that through code??

    Avatar of spanakorizo
    spanakorizo
    Member

    @spanakorizo

    this is not 100% ok. somethimes it will display the member. Anyone know how to?

    Avatar of acurran
    acurran
    Member

    @acurran

    My solution is to modify members-loop.php (I’m using template pack)

      <?php while ( bp_members() ) : bp_the_member();
      $exclude_ids = array(1,3); /* member ids to exclude from listing */
      if (!in_array(bp_get_member_user_id(), $exclude_ids)) {
      ?>
    Avatar of acurran
    acurran
    Member

    @acurran

    `

      <?php while ( bp_members() ) : bp_the_member();
      $exclude_ids = array(1,3); /* member ids to exclude from listing */
      if (!in_array(bp_get_member_user_id(), $exclude_ids)) {
      ?>`
    Avatar of Fee
    Fee
    Participant

    @wdfee

    this should work for excluding all super admins:

    `

      <?php while ( bp_members() ) : bp_the_member();
      if( !in_array( bp_get_member_user_login(), get_super_admins() ) ) {
      ?>`

    Thanks, @acurran, I was looking for the code too and tried your suggestion but got an error:

    Parse error: syntax error, unexpected T_ENDWHILE in /home/domain/public_html/wp-content/plugins/buddypress/bp-themes/bp-default/members/members-loop.php on line 68

    on line 68 there is

    I don’t know how to get it right here. Does somebody know solution to this?

    Avatar of G
    G
    Participant

    @gnetworkau

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

You must be logged in to reply to this topic.