PDA

View Full Version : Allow mods and supermods to view a closed boards


geniuscrew
04-29-2002, 07:26 PM
Hi peeps,

Our boards are closed for renovating, so is there a way to allow mods and supermods to view a board that is closed? At the moment only admins can, but i'd like other colleagues to see it as well.

Thanx for any help!

scsa20
04-29-2002, 07:33 PM
I think that also super mods can see the close board, but I don't know

Neo
04-29-2002, 07:36 PM
Smods cannot see the board when it is closed... I was just thinking about making this :)

geniuscrew
04-29-2002, 07:36 PM
I was told it'd require a hack over at vbulletin.com :-/

If someone can possibly do it, it'd be great big help.

geniuscrew
04-29-2002, 07:42 PM
Originally posted by neo
Smods cannot see the board when it is closed... I was just thinking about making this :)

you managed to post before me lol - i've installed loads of your hacks btw, neo

this one would be very useful

Neo
04-29-2002, 07:56 PM
In global.php find around line 333


if (!$permissions['cancontrolpanel']) {
eval("standarderror(\"".str_replace("\'", "'", addslashes($bbclosedreason))."\");");
exit;
}


replace it with


if (!$permissions['cancontrolpanel'] && ($bbuserinfo[usergroupid]!=7 && $bbuserinfo[usergroupid]!=5)) {
eval("standarderror(\"".str_replace("\'", "'", addslashes($bbclosedreason))."\");");
exit;
}

geniuscrew
04-30-2002, 08:46 AM
Originally posted by neo
In global.php find around line 333


if (!$permissions['cancontrolpanel']) {
eval("standarderror(\"".str_replace("\'", "'", addslashes($bbclosedreason))."\");");
exit;
}


replace it with


if (!$permissions['cancontrolpanel'] && ($bbuserinfo[usergroupid]!=7 && $bbuserinfo[usergroupid]!=5)) {
eval("standarderror(\"".str_replace("\'", "'", addslashes($bbclosedreason))."\");");
exit;
}


Thanx a lot neo, that totally works and is sooo brilliant!

thanx again