Author: cherokee red for Stoker
Description: A nice phpBB3 board disable screen, used on phpbb.com and now here.
Screenshot:
http://www.phpbb3bbcodes.com/downlo...iew/disable.png
Preview
OPEN includes/functions.php
FIND
if (($user->data['user_level'] != ADMIN) && $config['board_disable'] && !defined('HAS_DIED') && !defined('IN_ADMIN') && !defined('IN_LOGIN'))
{
if (!defined('STATUS_503')) define('STATUS_503', true);
if($config['board_disable_mess_st'])
{
message_die(GENERAL_MESSAGE, $config['board_disable_message']);
}
else
{
message_die(GENERAL_MESSAGE, $lang['Board_disabled']);
}
}
{
if (!defined('STATUS_503')) define('STATUS_503', true);
if($config['board_disable_mess_st'])
{
message_die(GENERAL_MESSAGE, $config['board_disable_message']);
}
else
{
message_die(GENERAL_MESSAGE, $lang['Board_disabled']);
}
}
REPLACE WITH
if (($user->data['user_level'] != ADMIN) && $config['board_disable'] && !defined('HAS_DIED') && !defined('IN_ADMIN') && !defined('IN_LOGIN'))
{
if (!defined('STATUS_503')) define('STATUS_503', true);
if($config['board_disable_mess_st'])
{
header('HTTP/1.1 503 Service Unavailable');
header('Status: 503 Service Unavailable');
$template->assign_vars(array(
'MESSAGE' => $config['board_disable_msg'],
'DISABLE' => $lang['Board_disabled']
));
page_header($$lang['OFFLINE']);
$template->set_filenames(array(
'body' => 'board_disable.tpl'
));
page_footer();
exit;
}
else
{
message_die(GENERAL_MESSAGE, $lang['Board_disabled']);
}
}
OPEN language/language_(translated)/language_main_settings.php or /language/lang_english/lang_user_created.php
FIND
(user_created.php)?>
(main.php file)
//====================================================
// Do not insert anything below this line
//====================================================
(main.php file)
//====================================================
// Do not insert anything below this line
//====================================================
REPLACE WITH
$lang['DISABLE_MESSAGE'] = 'Board unavailable';
$lang['DISABLE_RETURN'] = 'Return to index page';
BTW if need any help you can reply to this i will give support to what i can. I had to go through and change somethings around to get it to work.
forgot to mention just create a tpl file with the contents of what you want in it and name it to board_disable.tpl or which ever file u use.
BTW if anyone has a better way of doing this please share.
original article
board_disable.zip | ||
Description: | rename to tpl. | ![]() Download |
Filename: | board_disable.zip | |
Filesize: | 672 Bytes | |
Downloaded: | 184 Time(s) |