The Arcive of vBulletin Modifications Site. |
|
Closed Board - Mod & Admin Access Details »»
|
|||||||||||||||||||||||||
My board is currently closed when while I hack up 2.2.7 and finish off the new style for it, by default only admins can access a closed board, but I want a supermod to as well, I changed:
PHP Code:
PHP Code:
Any ideas? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
NTLDR try this code...
PHP Code:
g-force2k2 |
|
#3
|
||||
|
||||
|
Thank you g-force2k2, that seems to be doing the trick
its been a nightmare trying to get that to work. Thanks once again
|
|
#4
|
|||
|
|||
|
np NTLDR... it was very perplexing to me as well O_o i was trying to short hand it into one line... but the statement that you had stated...
if they can't access the control panel 'or' they aren't a moderator see the thing is moderators can't access the control panel so no matter what that part will always return false meaning it wont work... how my works is if they can't access the control panel... then if they aren't a moderator... then... hope that helps you see the light regards...g-force2k2 |
|
#5
|
||||
|
||||
|
After a little confusion I see now that my code would never work and how yours does.
I hade: PHP Code:
Thanks for the explanation though, I helped me see what was obviously wrong
|
|
#6
|
|||
|
|||
|
yeah i see what you mean about the brackets
i guess we both learn something out of it... glad to see the one liner working again regards...g-force2k2 |
|
#7
|
||||
|
||||
|
I don't think I explained very well *lol*
The one liner just suddenly stopped working. Anyway your code works a treat and I'm not going to play and break it again
|
|
#8
|
|||
|
|||
|
PHP Code:
PHP Code:
|
|
#9
|
||||
|
||||
|
I realise how stupid I've been now, not taking the fact that each one was negated so 'and' would work
|
|
#10
|
|||
|
|||
|
yeah thanks PPN
im been toasting my brain ![]() g-force2k2 |
![]() |
|
|