https://www.icyphoenix.com/viewtopic.php?f=28&t=9197
-----------------------------------
juggalo_master
Mon 10 Feb, 2014 10:13

Disabled Board Custom Template
-----------------------------------
[b]Board Disable - Special[/b]

Author: cherokee red for Stoker
Description: A nice phpBB3 board disable screen, used on phpbb.com and now here.
Screenshot:
http://www.phpbb3bbcodes.com/download/file.php?id=935&mode=view/disable.png
[url=http://www.crimson.pcriot.com/]Preview
OPEN [b]includes/functions.php[/b]
FIND
[codeblock]
	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']);
		}
	}

[/codeblock]
REPLACE WITH
[codeblock]

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']);

	
			 
		}
	}

[/codeblock]


OPEN [b]language/language_(translated)/language_main_settings.php or /language/lang_english/lang_user_created.php[/b]
FIND
[codeblock]
(user_created.php)?>

(main.php file)
 //====================================================
// Do not insert anything below this line
//====================================================

[/codeblock]
REPLACE WITH
[codeblock]

 $lang['DISABLE_MESSAGE']  = 'Board unavailable';
      $lang['DISABLE_RETURN'] = 'Return to index page';
[/codeblock]


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.

[url=http://www.phpbb3bbcodes.com/viewtopic.php?f=45&t=1260]original article


