PDA

View Full Version : Change the VB "Closed for Maintenance" page?


Crimm
12-26-2007, 01:53 AM
Is it possible to make it so that when you close your VB boards, it ONLY displays a login box?

I want to hide the menu, and other stuff and just display a login box. I have searched and searched and found nothing.

Any ideas or where to get started?

--------------- Added 1198642125 at 1198642125 ---------------

Nevermind. I guess I just thought of something. Here is my train of thought for those of you that might want to do this, and land here by doing a search.

Turn off guest access, and use this:

https://vborg.vbsupport.ru/showthread.php?t=108026&highlight=deluxe

Then just add a global start hook that like this one:

if (!$vbulletin->userinfo['userid'] AND THIS_SCRIPT != 'ClosedLogin')
{
header("Location: " . $vbulletin->options['bburl'] . "/login.php");
}


Then just add this to the top of that mod:


define('THIS_SCRIPT', 'ClosedLogin');


I'll edit this if it works correctly.

Thank you.

Paul M
12-26-2007, 09:52 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=129486" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=129486</a>

Crimm
12-26-2007, 12:59 PM
https://vborg.vbsupport.ru/showthread.php?t=129486

I'll check it out!

Thank you.