Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Maintenance Page
ChU v2
Join Date: May 2007
Posts: 396

 

Chicago
Show Printable Version Email this Page Subscription
ChU v2 ChU v2 is offline 12-23-2007, 10:00 PM

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
Attached Images
File Type: jpg maintenance.jpg (66.5 KB, 0 views)
Attached Files
File Type: php maintenance.php (788 Bytes, 51 views)
Reply With Quote
  #2  
Old 12-24-2007, 02:00 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 12-24-2007, 02:03 AM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
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.
Reply With Quote
  #4  
Old 12-24-2007, 04:38 AM
BlizzardHQ BlizzardHQ is offline
 
Join Date: Dec 2007
Location: Fort Wayne Indiana
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 12-24-2007, 09:37 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 12-24-2007, 09:53 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks this is a good start!

Quote:
Originally Posted by BlizzardHQ View Post
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.
Reply With Quote
  #7  
Old 12-29-2007, 10:03 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 12-30-2007, 03:22 PM
XxBuLLeTz XxBuLLeTz is offline
 
Join Date: May 2006
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks good...i'll use it next time i need to update my vbulletin
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:35 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.08358 seconds
  • Memory Usage 2,280KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete