The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hide an admin in showgroups.php
Hi,
I have some people on my Administrators usergroup and they all are being shown at showgroups.php. I'd like to prevent one of them from being displayed on that list without changing his usergroup. I have been searching for a solution and found this: https://vborg.vbsupport.ru/showthread.php?t=135503 But I can't figure out how to apply that to my 3.8.5 showgroups.php Thanks! --------------- Added [DATE]1361372230[/DATE] at [TIME]1361372230[/TIME] --------------- I got it but it doesn't look good. In showgroups.php find: Code:
return $user; Code:
if ($user['userid'] != X) { return $user; } Please help. |
#2
|
|||
|
|||
You could do this: find this section around line 97 and add the part in red:
Code:
// get usergroups who should be displayed on showgroups // Scans too many rows. Usergroup Rows * User Rows $users = $db->query_read_slave(" SELECT user.*, usergroup.usergroupid, usergroup.title, user.options, usertextfield.buddylist, " . ($show['locationfield'] ? 'userfield.field2,' : '') . " IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid FROM " . TABLE_PREFIX . "user AS user LEFT JOIN " . TABLE_PREFIX . "usergroup AS usergroup ON(usergroup.usergroupid = user.usergroupid OR FIND_IN_SET(usergroup.usergroupid, user.membergroupids)) LEFT JOIN " . TABLE_PREFIX . "userfield AS userfield ON(userfield.userid = user.userid) LEFT JOIN " . TABLE_PREFIX . "usertextfield AS usertextfield ON(usertextfield.userid=user.userid) WHERE (usergroup.genericoptions & " . $vbulletin->bf_ugp_genericoptions['showgroup'] . ") AND user.userid NOT IN (X) "); That's just for the admin section - if you want to delete someone from the moderator section you'd need to add another line to the other query. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|