The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Q about usergroupid permission !
hi,
in my forum i have file php in the admin folder , it making cool thread in type on the head of the forum as marquee, permission for admins only .. i want to alow supermods and mods log in . this is code on top of the file : require("./global.php"); if ($bbuserinfo[userid]==0) show_nopermission(); if ($bbuserinfo[usergroupid]!=6) { echo "admins only"; exit; } i tried this : require("./global.php"); if ($bbuserinfo[userid]==0) show_nopermission(); if (($bbuserinfo[usergroupid]!=6) or ($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 7)) { echo "login for admins,supermod,mods only"; exit; } also tried move the file to main vb directory but not worked !! any idea ? thanks, |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|