You can easily changeany aspect of this page - all you need is some simple HTML/CSS knowledge. You can add any custom variables you wish also
Comment:
#
#-----[ OPEN ]------------------------------------------
#
includes/session.php
#
#-----[ FIND ]------------------------------------------
#
#
#-----[ REPLACE WITH ]------------------------------------------
#
#
#-----[ OPEN ]------------------------------------------
#
includes/session.php
#
#-----[ FIND ]------------------------------------------
#
- Code: Select all
// Is board disabled and user not an admin or moderator?
if ($config['board_disable'] && !defined('IN_LOGIN') && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
{
header('HTTP/1.1 503 Service Unavailable');
$message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
trigger_error($message);
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
- Code: Select all
// Is board disabled and user not an admin or moderator?
if ($config['board_disable'] && !defined('IN_LOGIN') && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
{
header('HTTP/1.1 503 Service Unavailable');
header('Status: 503 Service Unavailable');
$template->assign_vars(array(
'MESSAGE' => $config['board_disable_msg'],
'DISABLE' => $this->lang['BOARD_DISABLE'])
);
page_header($this->lang['OFFLINE']);
$template->set_filenames(array(
'body' => 'board_disable.html'
));
page_footer();
exit;
}
Now, you need to save the following code as board_disable.html and place it in your styles/STYLE_NAME/template/ folder.
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} • {PAGE_TITLE}</title>
<link href="../adm/style/admin.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body id="errorpage">
<div id="wrap" style="margin-left:auto; margin-right:auto; width: 70%">
<div id="page-header">
</div>
<div id="page-body">
<div id="acp">
<div class="panel">
<span class="corners-top"><span></span></span>
<div id="content">
<h1>{L_INFORMATION}</h1>
<h2>{DISABLE}</strong></h2>
<br />
<p>{MESSAGE}</p>
</div>
<span class="corners-bottom"><span></span></span>
</div>
</div>
</div>
<div id="page-footer">
Powered by phpBB © 2000, 2002, 2005, 2007 <a href="http://www.phpbb.com/">phpBB Group</a><br />
</div>
</div>
</body>
</html>
You still disable the forum in the normal way - via the ACP - and add in your custom message. This message will display on the custom page. I've attached a screenshot below as an example.
NB*: If for any reason you disable the board and then log out, simply go to ucp.php?mode=login and you will be able to log back in and re-enable your forum


