The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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, |
#2
|
||||
|
||||
![]() Code:
if (($bbuserinfo[usergroupid]!=6) or ($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 7)) { Code:
if (($bbuserinfo[usergroupid]!=6 and $bbuserinfo[usergroupid] != 5 and $bbuserinfo[usergroupid] != 7) { |
#3
|
|||
|
|||
![]()
You are a great man Xenon
![]() it is worked fine . but you are forgot " ) " end of the code ![]() thank you again . |
#4
|
||||
|
||||
![]()
you're welcome
![]() no i didn't forgot it, i've made a ( too much at the front of the codeline ![]() |
#5
|
|||
|
|||
![]()
ha ha ha
![]() you are right ![]() but i made more ) in the end , and it worked ![]() ![]() THANK YOU ALOT . |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|