2007-05-24, 08:40 PM
2007-05-25, 06:33 PM
It's in global.php
It returns an error-page with the message. So for editing you will need to edit the "error" template. But all error messages will be shown with the "new style" and that's not what you want i think =P So you could create a new template specially for the "boardclosing" and output it.
// If the board is closed, the user is not an administrator and they're not trying to login, show the board closed message
if($mybb->settings['boardclosed'] == "yes" && $mybb->usergroup['cancp'] != "yes" && !(basename($_SERVER['PHP_SELF']) == "member.php" && ($mybb->input['action'] == "login" || $mybb->input['action'] == "do_login" || $mybb->input['action'] == "logout")))
{
// Show error
$lang->error_boardclosed .= "<blockquote>{$mybb->settings['boardclosed_reason']}</blockquote>";
error($lang->error_boardclosed);
exit;
}
It returns an error-page with the message. So for editing you will need to edit the "error" template. But all error messages will be shown with the "new style" and that's not what you want i think =P So you could create a new template specially for the "boardclosing" and output it.
2007-05-25, 07:20 PM
Well, you can edit the error templates by going into your Admin CP > Templates > *Your Template Set* > Error Message Templates.
There are a few error templates there, I don't know if board closed is there or not.
Good luck,
FW
There are a few error templates there, I don't know if board closed is there or not.
Good luck,
FW
2007-05-26, 02:20 AM
FirefoxWiz Wrote:Well, you can edit the error templates by going into your Admin CP > Templates > *Your Template Set* > Error Message Templates.
There are a few error templates there, I don't know if board closed is there or not.
Good luck,
FW
nope the board closed isn't in it.. Thanks for your help anyway.
LeX- Wrote:It's in global.phpThanks for your help!
// If the board is closed, the user is not an administrator and they're not trying to login, show the board closed message if($mybb->settings['boardclosed'] == "yes" && $mybb->usergroup['cancp'] != "yes" && !(basename($_SERVER['PHP_SELF']) == "member.php" && ($mybb->input['action'] == "login" || $mybb->input['action'] == "do_login" || $mybb->input['action'] == "logout"))) { // Show error $lang->error_boardclosed .= "<blockquote>{$mybb->settings['boardclosed_reason']}</blockquote>"; error($lang->error_boardclosed); exit; }
It returns an error-page with the message. So for editing you will need to edit the "error" template. But all error messages will be shown with the "new style" and that's not what you want i think =P So you could create a new template specially for the "boardclosing" and output it.