Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post
Post Disabled Board Custom Template 
 
Board Disable - Special

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
Code: [Download] [Hide] [Select]
    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']);
        }
    }


REPLACE WITH
Code: [Download] [Hide] [Select]

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
Code: [Download] [Hide] [Select]
(user_created.php)?>

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


REPLACE WITH
Code: [Download] [Hide] [Select]

 $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: 193 Time(s)

 



 
juggalo_masterSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron