PDA

View Full Version : vB Maintenance Page


ChU v2
24 Dec 2007, 03:00
What is this?

This is a simple little "hack" that creates a maintenance page for your forums while you upgrade or want downtime. I figured will the updates from vB3.6.8 to vB3.7 this might be useful. Might save some people from displaying that Database error page while they configure the new files.

--------

This took about 5 minutes to create so feel free to customize it to however you like.

--------

Instructions:

Upload Maintenance.php and Maintenance.jpg to your forum root. When you want the page to display simply rename the Maintenance.php to index.php and it should be your homepage by default.

Note: Be sure to rename your old index page so you don't overwrite it.

This is the case on my server, could be difference from yours. I'm not a server expert in the least.

--------

View: Live Demo (http://xboxinformer.net/indextest)

SEOvB
24 Dec 2007, 04:00
I'm not one to deem what is a mod around here, but this clearly isn't one.

And also, if for whatever reason you do use this, be sure to rename your original index.php so you don't overwrite it with this one.

ChU v2
24 Dec 2007, 04:03
I'm not one to deem what is a mod around here, but this clearly isn't one.

And also, if for whatever reason you do use this, be sure to rename your original index.php so you don't overwrite it with this one.

Didn't want to put it in template modifications. And thank you for mentioning about the old index, I forgot to mention that.

BlizzardHQ
24 Dec 2007, 06:38
How does this stop someone from using the site though? If they follow in a thread link, they can still access the site. I use something like this for my site, but I have it coded inside of turn board off/on message template.

Marco van Herwaarden
24 Dec 2007, 11:37
Not a modification, moved to articles section.

PS the most effective way to block access to the site during maintenance is to use a .htaccess file to redirect to a maintenance page, except for those IP-addresses that need to access the board for the maintenance.

Hornstar
24 Dec 2007, 11:53
Thanks this is a good start!

How does this stop someone from using the site though? If they follow in a thread link, they can still access the site. I use something like this for my site, but I have it coded inside of turn board off/on message template. Can you share this with me? or the community? I am interested in something like you have. Thanks.

ChU v2
30 Dec 2007, 00:03
It's more designed for when your upgrading vB, when you overwrite your original config file with the new one you get that DB error, with this you wont. For most it takes us 10 seconds to edit the new config, but for others it may not. That's the purpose.


Can you share this with me? or the community? I am interested in something like you have. Thanks.


Use the search, I'm sure something will turn up.

XxBuLLeTz
30 Dec 2007, 17:22
looks good...i'll use it next time i need to update my vbulletin :)