View Full Version : Closed forum Permissions
Beams
05-05-2002, 06:12 PM
I have asked on vbulletin.com and was told to ask here :)
Turn Your vBulletin on and off
Bulletin Board Active
From time to time, you may want to turn your bulletin board off to the public while you perform maintenance, update versions, etc. When you turn your BB off, visitors will receive a message that states that the bulletin board is temporarily unavailable. Administrators will still be able to see the board
Is there away to allow mods access to the forum when its closed plz
Thanks
Beams
Admin
05-05-2002, 07:14 PM
In global.php replace this:
$permissions=getpermissions();
if (!$permissions['cancontrolpanel']) {
With this:
$permissions=getpermissions();
if (!$permissions['cancontrolpanel'] and !$permissions['ismoderator']) {
:)
Beams
05-05-2002, 08:13 PM
Hi FireFly
worked a treat m8
Thanks a lot
Beams :D
Admin
05-06-2002, 11:28 AM
No problem, Beams. :)
Marulatree
05-20-2003, 08:08 AM
FF - I have tried this and still my mod's can't get in? Any ideas
Xenon
05-20-2003, 09:16 AM
this is just for supermods :)
if you change it into this:
$permissions=getpermissions();
if (!$permissions['cancontrolpanel'] and !$permissions['ismoderator'] and !$DB_site->query_first("SELECT userid FROM moderator WHERE userid=$bbuserinfo[userid]") {
it should work for normal mods also
Marulatree
05-21-2003, 08:59 AM
Great thanks for the super quick reply -I had changed my one mod to a supermod and relised ithas work with the origal code ajustment. I will change it over to you MOD code adjustment.
Is it possible to set it up for both mod's and supermods
Xenon
05-21-2003, 10:31 AM
my code is for mods and supermods :)
the ismoderator clause is for supermods, i just alloewd another group to get through the barrier ;)
Marulatree
05-21-2003, 01:08 PM
I get a parse error with the updated code?
I'm using VB2.3.0
Xenon
05-21-2003, 01:11 PM
after ") add another ) i've forgotten it it seems ;)
Marulatree
05-21-2003, 01:55 PM
Thanks for that! I will give it a go when I get back from the office
Hobbes
05-21-2003, 04:28 PM
did this work? i believe there is a hack that allows you to choose which usergroups can access the forum whe nits turned off...i have it installed too i think.
also i have a questioon, how do i check what usergroup has which usergroup number???
Xenon
05-21-2003, 04:41 PM
in the ACP when you modify usergroups you can see the id in the link to the modification page
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.