vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   vB Maintenance Page (https://vborg.vbsupport.ru/showthread.php?t=166015)

ChU v2 12-23-2007 10:00 PM

vB Maintenance Page
 
1 Attachment(s)
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

SEOvB 12-24-2007 02:00 AM

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 12-24-2007 02:03 AM

Quote:

Originally Posted by FRDS (Post 1408052)
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 12-24-2007 04:38 AM

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 12-24-2007 09:37 AM

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 12-24-2007 09:53 AM

Thanks this is a good start!

Quote:

Originally Posted by BlizzardHQ (Post 1408107)
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 12-29-2007 10:03 PM

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.

Quote:

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 12-30-2007 03:22 PM

looks good...i'll use it next time i need to update my vbulletin :)


All times are GMT. The time now is 11:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01929 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete