Board Disable - Special

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Board Disable - Special

Post 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

Thats it, enjoy!
You do not have the required permissions to view the files attached to this post.

Board Disable - Special

Post 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

Post by Stoker »

Yes, it could easily be added to the html file.