View Full Version : Moderate user without changing groupid
isman
09-28-2002, 01:33 AM
I've seen some hacks available to moderate individual users but they all involve moving the user to a specific usergroup.
Does someone have a hack that will allow me to set a users posts to moderated without having to change their user group?
Thanks in advance if you've got it.
Logician
09-28-2002, 11:18 AM
I didnt understand why you dont want to change their usergroup(you could create a replica usergroup anyway) but here is the hack:
Edit newthread.php and newreply.php, find:
// auto bypass queueing for admins/mods
Before that add:
if ($bbuserinfo[userid]==X) {$visible=0;}
Replace X with the userid of the user..
If you want to moderate more than 1 user, the code is:
if ($bbuserinfo[userid]==X OR $bbuserinfo[userid]==Y) {$visible=0;}
Enjoy..
isman
09-28-2002, 11:51 AM
That's awesome. Thank you so much.
Can you also tell me how I might add this as an option setting in the edit user in the control panel?
Thanks in advance.
Xenon
09-28-2002, 11:57 AM
you can try that:
add a new profile field just view and editable by admins
as long as you leave this field blank, the user won't be moderated
find out the fieldid and then change Logicians code into that:
if (trim($bbuserinfo[fieldX])!="") {$visible=0;}
isman
09-28-2002, 12:28 PM
You guys are awesome. Thank you both very much.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.