Page 1 of 1

Board Disable - Special

Posted: 26 Jul 2011, 19:20
by Stoker
Board Disable - Special

Author: cherokee red for Stoker
Description: A nice phpBB3 board disable screen, used on phpbb.com and now here.
Screenshot:
disable.png
Instructions:
Open language/en/common.php
Find:

Code: Select all

?>
Add before:

Code: Select all

// Board disable
$lang = array_merge($lang, array(
	'DISABLE_MESSAGE'   	 	 	 => 'Board unavailable',
	'DISABLE_RETURN'   	 	 	 => 'Return to index page',
));
Open includes/sessions.php
Find:

Code: Select all

if ($this->data['is_bot'])
			{
				send_status_line(503, 'Service Unavailable');
			}

			$message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
			trigger_error($message);
Replace with:

Code: Select all

header('HTTP/1.1 503 Service Unavailable');
            header('Status: 503 Service Unavailable');

            $template->assign_vars(array(
                'MESSAGE'    => $config['board_disable_msg'],
                'DISABLE'    => $this->lang['DISABLE_MESSAGE'])
            );

            page_header($this->lang['OFFLINE']);

            $template->set_filenames(array(
                   'body' => 'board_disable.html'
            ));

            page_footer();

            exit;
Unzip and upload this file to your template folder:
board_disable.zip
(672 Bytes) Downloaded 926 times

Thats it, enjoy!

Board Disable - Special

Posted: 03 Dec 2011, 03:44
by martin123456
Have you thought about adding your count down timer to this page so it displays a short message and then a timer ?

ie

we are fixing some major errors that our new nub staff member made so will be open in !

(counter here) 7 years and 3 months and 64 days :D

note the days lol

Board Disable - Special

Posted: 03 Dec 2011, 08:00
by Stoker
Yes, it could easily be added to the html file.