View Full Version : Info viewable only to admin/mods/super mods
MarkB
03-01-2002, 11:46 AM
Hi :)
What code do I use to make the output of a template viewable only to moderators/admins etc?
Come on super hacker you can do it....
if ($bbuserinfo[usergroup] != 7 || $bbuserinfo[usergroup] != 6 || $bbuserinfo[usergroup] != 5) {
echo "I'm a loser";
} else {
echo "Only Admins, SMods, and Mods and see my ugly ass";
}
and bam you have it
MarkB
03-02-2002, 08:27 AM
Thankyou, Master ;)
Admin
03-02-2002, 08:41 AM
Actually Master Hacker it should look more like this: ;)
if ($bbuserinfo['usergroupid'] != 7 && $bbuserinfo['usergroupid'] != 6 && $bbuserinfo['usergroupid'] != 5) {
echo "I'm a loser";
} else {
echo "Only Admins, SMods, and Mods and see my ugly ass";
}
Damn.... well I will say I am tired and have no clue where I am..... damn operators... ohh well you prove glory once again.... but one day popo the tin monkey will live on......
if (Master Hacker != Neo || Play-do >= pie) {
echo "Yummy";
} else {
echo "Where's the beef";
}
that should work better than my first one.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.