View Full Version : making things hidden...
globalwin
07-22-2002, 05:18 PM
Hi, can anyone tell me how to make a few things hidden to members and guests, and only visible to admins, supermods and mods? I need to hide Edit Sig, and Proxy Detected ( both in postbit ) from people. :)
scsa20
07-22-2002, 05:39 PM
in phpinclude template, add this:
if ($bbuserinfo['usergroupid']==6 OR $bbuserinfo['usergroupid']==7 OR $bbuserinfo['usergroupid']==5) {
$adminopt = "Whatever you want here for the Sig and Proxy Detected";
}
then replace the part about the sig and proxy with $adminopt
that should work
globalwin
07-22-2002, 05:55 PM
like instead of $adminopt, could i put $post[delete] or something like that?
Xenon
07-22-2002, 06:26 PM
you can name the variable like you want ;)
scsa20
07-22-2002, 06:31 PM
like what Xenon said :)
globalwin
07-22-2002, 06:47 PM
hmm so would the $post[delete] = my variable code here?
scsa20
07-22-2002, 08:58 PM
just replace $adminopt with $post[delete]...not unless you want to edit the showthread.php file to do it.
Boofo
08-10-2002, 08:10 AM
Could you add multiple variables to this? If so, how would you do it?
Originally posted by scsa20
in phpinclude template, add this:
if ($bbuserinfo['usergroupid']==6 OR $bbuserinfo['usergroupid']==7 OR $bbuserinfo['usergroupid']==5) {
$adminopt = "Whatever you want here for the Sig and Proxy Detected";
}
then replace the part about the sig and proxy with $adminopt
that should work
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.