Announcement

Collapse
No announcement yet.

How do I: Hide users from Member list

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I: Hide users from Member list

    Well, the subject just says it all. Is there an option to hide certain users or users in a usergroup from showing up on the memberlist?

    Stephen

  • #2
    Woohooo, I already got it

    This is how for those who wonder:

    create a usergroup
    put the users to hide in that usergroup
    make sure the option Restict Listing is set to Yes.
    (Admin > vBulletin Options > Memberlist options)
    Lookup the usergroupid of the usergroup
    open memberlist.php and find this:

    PHP Code:
    $users=$DB_site->query("SELECT *
                              FROM user,userfield
                              WHERE 
    $condition AND
                                    user.userid = userfield.userid
                                    "
    .iif($memberAllGood" AND usergroupid NOT IN (1,3,4) """)."
                              ORDER BY 
    $orderby $direction
                              LIMIT "
    .($limitlower-1).",$perpage"); 
    Add the usergroupid to the numbers between brackets. If your usergroupid would be 7, (1,3,4) becomes (1,3,4,7)

    You also need to change it for the code below:
    PHP Code:
    $userscount=$DB_site->query_first("SELECT COUNT(*) AS users
                                         FROM user,userfield
                                         WHERE 
    $condition AND
                                               user.userid = userfield.userid
                                               "
    .iif($memberAllGood" AND usergroupid NOT IN (1,3,4) """)."
                                               "
    ); 
    The same applies here as above...

    Stephen

    Comment


    • #3
      Modifying the source code is not allowed here. Please visit www.vbulletin.org for this type of thing.

      vbulletin3 allows you to choose whether or not a usergroup will appear on the memberlist.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X