#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Hide specific users...
 
Share:
Share
Tweet
Share
Notifications
Clear all

[Solved] Hide specific users from Members page

    Last Post
RSS

Mac26
Posts: 12
 Mac26
Topic starter
March 25, 2022 12:55 pm
(@mac26)
Active Member
Joined: 4 months ago

I've searched on here for how to hide Admin users from the Members page but all solutions appear to be to hide the whole usergroup and not individual accounts.

 

Is there a way to hide individual users from the Members page? As I want some of my admin accounts visible but not others.

Topic Tags
hide members
8 Replies
4 Replies
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
March 25, 2022 2:11 pm
Reply toMac26Mac26
Posted by: @mac26

Is there a way to hide individual users from the Members page? As I want some of my admin accounts visible but not others.

if this is important for you

you can mudify the members.php, so that the User-ID is integrated
after that you can hide any User-ID via CSS display:none;

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
Mac26 liked
Mac26
 Mac26
(@mac26)
Joined: 4 months ago

Active Member
Posts: 12
March 25, 2022 2:20 pm
Reply toTutrixTutrix
Mac26

@tutrix Thanks Tutrix.  What do you mean by the User-ID being integrated?

 

Hiding them isn't essential but the members are is messy if they aren't.  I have a site account for anything official relating to site activity, my own account for taking part as a member while still admin, these I'm happy to have displayed but then there is a test account with subscriber privileges, a support account for 3rd parties when dealing with technical issues and a site support account for moderation.  The last 3 do not need to be shown as they don't class as participating members in the community as such.

 

Reply
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
March 25, 2022 2:38 pm
Reply toMac26Mac26
Tutrix
Mac26

@mac26 

open the members.php (wpforo > wpf-themes > classic > members.php)

search for

<tr<?php echo ( $bg ? ' style="background:#F7F7F7"' : '' ) ?>>

and replace with

<tr<?php echo ( $bg ? ' style="background:#F7F7F7"' : '' ) ?> class="userid-<?php echo wpforo_bigintval($member['userid']) ?>">

the best way to do this is = Theme Customization

now you can hide users via CSS

example User-Id "1"

#wpforo #wpforo-wrap .wpforo-members-wrap .wpforo-members-content tr.userid-1 {
display: none;
}

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
Mac26 liked
Mac26
 Mac26
(@mac26)
Joined: 4 months ago

Active Member
Posts: 12
March 25, 2022 2:51 pm
Reply toTutrixTutrix
Mac26
Tutrix
Mac26

@tutrix Awesome, thanks Tutrix!!

Reply
Tutrix liked
Chris
Posts: 1437
 Chris
Admin
March 25, 2022 1:45 pm
(@chris)
Support Team
Joined: 12 months ago

@mac26,

wpForo doesn't have an option to hide current user, only by usergroup.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
1 Reply
Mac26
 Mac26
(@mac26)
Joined: 4 months ago

Active Member
Posts: 12
March 25, 2022 2:22 pm
Reply toChrisChris

@chris Thanks Chris, I was also looking through the user settings as I would have at least thought that users would have the option to hide their own account from being searched in the members list.

 

On second thoughts, if users can only be removed by whole user group it would probably be easier to create another admin/support type user group, move the accounts to it and block that.

Reply
Mac26
Posts: 12
 Mac26
Topic starter
March 25, 2022 3:38 pm
(@mac26)
Active Member
Joined: 4 months ago

I just wanted to thank @tutrix and @chris for the replies.

 

I've kept Tutrixes solution in my back pocket for now as I would like to keep this manageable through the dashboard where possible so that there is less custom CSS floating around.  I've not even opened my site to members yet and the CSS snippets are already building up!! 😀 

I've just got this working by creating two new user roles.  I have the free Members plugin installed so I went to Dashboard>Members, cloned my Administrator role and renamed it, then also cloned my Subscriber role and renamed it.  I then moved the users that I wanted hidden into the new Subscriber/Administrator roles respectively by editing their profile in Dashboard>Users>All Users.

Finally I went over to Dashboard>Forum>Usergroups and scrolled to the bottom of the page where you should see the new user roles with a button to the right that says "Add usergroup to synch".  Click it and create your new forum usergroups with the same permissions as your standard forum Administrator/Subscriber user groups BUT leave the box unchecked next to "Display on Members List".

Hit save and then on the Dashboard>Forums>Usergroups page hit synchronise and you should see your member count update for each usergroup.  Now you can easily add and remove admin/support user accounts into these groups for testing without them showing up in your members lists.

Reply
Chris liked
Chris
Posts: 1437
 Chris
Admin
March 26, 2022 1:31 pm
(@chris)
Support Team
Joined: 12 months ago

Thank you @tutrix & @mac26, for the information, this will be helpful for our user's. 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
Tutrix liked
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Private Users, Privacy policy
    7 months ago
  • Hide administrators in members page
    12 months ago
  • Fake hidden users still found
    1 year ago
  • Hide Members
    1 year ago
  • Members Q's
    1 year ago
Topic Tags:  hide members (8),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Font Awesome Icons

    By seancallahan, 7 hours ago

  • Notification bell order

    By teepeenomad, 1 day ago

  • Not İndexing

    By selinahub, 2 days ago

  • H1 to H6 title tags : remove

    By venus, 2 days ago

  • Can't access forum dashboard 504 gateway time-out

    By Joselito, 3 days ago

  • Sharing with Facebook and Twitter is kind of broken

    By seancallahan, 3 days ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • editor33
  • menu33
  • shortcode32
  • spam31
  • forum accesses30
  • widget29
View all tags (2188)

Recent Posts

  • Font Awesome Icons

    To start, I do not have any caching setup on the site o...

    By seancallahan, 7 hours ago

  • RE: Is there a way to add safety features?

    @chris Is there a way for me to install 2.0 on my site ...

    By seancallahan, 10 hours ago

  • RE:

    By Anonymous, 53 years ago

  • RE: Notification bell order

    @tutrix Brilliant, thank you for this! Although, it ...

    By teepeenomad, 14 hours ago

  • RE: wpForo 2.0.0.1 beta version is released for beta testers!

    Added, thank you.

    By Robert, 1 day ago

  • RE: Post title length error.

    Hi @hasanaytac, Please provide your forum URL.

    By Chris, 2 days ago

  • RE: Health.gd Health website

    Nice forum, still you have an issue / crash: Uncaught...

    By dimalifragis, 2 days ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,925 Topics
50.2 K Posts
9 Online
47.6 K Members

Latest Post: Font Awesome Icons Our newest member: [>>>] Тор Любовь И Гром Смотре... Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation