Back to vBulletin 3.0 Add-Ons

Customized Forum Closed Screen
Mod Version: 1.01, by Michael Morris

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 15
Released: 25 Dec 2004 Last Update: Never Downloads: 0
Not Supported  

By default the vbulletin closed screen is a simple message with the standard header and footer for the boards. You can change this to a different page entirely with this hack.

This hack requires you to create a new template entirely and install a slight modification in your global.php file.

The file modification is as follows:

Search for this code.
PHP Code:
// #############################################################################
// check that board is active - if not admin, then display error
if (!$vboptions['bbactive'] AND THIS_SCRIPT != 'login')
{
    if (!(
$permissions['adminpermissions'] & CANCONTROLPANEL))
    {
        eval(
'standard_error("' str_replace("\'""'"addslashes($vboptions['bbclosedreason'])) . '");');
        unset(
$shutdownqueries['lastvisit']); 
Comment out the eval('standard_error.... line and place this below the unset($shutdownque.... line.
PHP Code:
eval('print_output("' fetch_template('boards_closed') . '");'); 
The finished code, assuming you have no other hacks in this section of the code, will look like this:

PHP Code:
// #############################################################################
// check that board is active - if not admin, then display error
if (!$vboptions['bbactive'] AND THIS_SCRIPT != 'login')
{
    if (!(
$permissions['adminpermissions'] & CANCONTROLPANEL))
    {
        
//eval('standard_error("' . str_replace("\'", "'", addslashes($vboptions['bbclosedreason'])) . '");');
        
unset($shutdownqueries['lastvisit']);
        eval(
'print_output("' fetch_template('boards_closed') . '");'); 
Now create a new template called boards_closed. This can be any html document you want and you can of course call some of the variables from vbulletin.

If you want the boards closed reason to appear in the page you'll need to include $vboptions[bbclosedreason] somewhere in the file.

Below is a very simple template that will include the reason on a blank page.

HTML Code:
<html>
<body>
$vboptions[bbclosedreason]
</body>
</html>
From this model you can build up a page. Attached is a screenshot of ENWorld's closing screen using this modification.

Download

No files for download.

Supporters / CoAuthors

  • Michael Morris

Screenshots

 


vblts.ru supports vBulletin®, 2022-2024