2004-10-19, 04:47 AM
Global.php should be changed from
I followed the instructions exactly like you said. I added
Quote:if($settings['boardclosed'] == "yes")to:
{
if($usergroup['cancp'] == "yes")
{
eval("\\$bbclosedwarning = \\"".$templates->get("global_boardclosed_warning")."\\";");
}
}
Quote:// Board closed thingyNow, for the real reason for this thread:
if($settings['boardclosed'] == "yes")
{
if($mybbgroup['cancp'] != "yes")
{
error($lang->error_boardclosed);
exit;
}
}
I followed the instructions exactly like you said. I added
// Board Message MOD Start
if($settings['showbbmsg'] != "no")
{
eval("\\$bbmessage = \\"".$templates->get("board_message")."\\";");
}
// Board Message MOD End
to global.php. I added the setting group and the 2 settings, I added $bbmessage<br /> in header template and finally ran templateinstall.php which was successful. Everythign is there, is just doesn't work. So it has to be// Board Message MOD Start
if($settings['showbbmsg'] != "no")
{
eval("\\$bbmessage = \\"".$templates->get("board_message")."\\";");
}
// Board Message MOD End
that is causing the problem. Anything wrong with that code??