View Full Version : Request hidden member name in member list
MugenSi00
03-04-2003, 03:49 AM
I'm looking for a hack that would allow me to hide an account from being listed in the visible member list for all members. I have an special account I don't want anyone to know about.
Boofo
03-04-2003, 05:11 AM
Is the account in a separate usergroup?
MugenSi00
03-04-2003, 05:12 AM
Originally posted by Boofo
Is the account in a separate usergroup? it's an admin account. userid=1
I tried some of the past hacks for this and they don't work with 2.2.9
Boofo
03-04-2003, 05:14 AM
Which hacks did you try? We might be able to modify one of them to work with it. I also run 2.2.9.
MugenSi00
03-04-2003, 05:33 AM
https://vborg.vbsupport.ru/showthread.php?s=&threadid=38312
https://vborg.vbsupport.ru/showthread.php?s=&threadid=35044
https://vborg.vbsupport.ru/showthread.php?s=&threadid=41689
none worked
Boofo
03-04-2003, 05:58 AM
Ok, I got it for you.
In memberlist.php, find:
$users=$DB_site->query("SELECT *
FROM user,userfield
WHERE $condition AND
user.userid = userfield.userid
".iif($memberAllGood, " AND usergroupid NOT IN (1,3,4,8) ", "")."
ORDER BY $orderby $direction
LIMIT ".($limitlower-1).",$perpage");
and change it to:
$users=$DB_site->query("SELECT *
FROM user,userfield
WHERE $condition AND
user.userid = userfield.userid
".iif($memberAllGood, " AND usergroupid NOT IN (1,3,4,8) ", "")."
AND user.userid != 1
ORDER BY $orderby $direction
LIMIT ".($limitlower-1).",$perpage");
This is the line where you add the userid to not show up. Just change the 1 to whatever you want.
AND user.userid != 1
Boofo
03-04-2003, 06:19 AM
Don't forget to do this one, too, or your usercount for the pagenav will be off by one.
In memberlist.php, find:
$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,8) ", "")."
");
and change it to:
$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,8) ", "")."
AND user.userid != 1
");
MugenSi00
03-04-2003, 07:02 AM
thanks, worked like a charm
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.