Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Redirect Incase of mySQL problem Details »
Redirect Incase of mySQL problem
Mod Version: 1.00, by Harley77 (Member) Harley77 is offline
Developer Last Online: Jan 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 16
Released: 18 Mar 2005 Last Update: Never Downloads: 4
Not Supported  

If someone has posted something like this before, I couldn't find it.

What this does:
It will redirect visitors to a static webpage of your choosing incase a connection to the mySQL server could not be established.

Every so often, The SQL server of our host becomes unresponsive, usually only for a few minutes, but, it's still annoying to try and load the site and have it take forver then be finally be greeted with a lovely SQL error. So, now people can get a nice friendly error page instead.

Feel free to modify and mess with it however you choose.


UPDATED


Trigunflame has provided a more elegant, sitewide solution that effectivly does the same exact thing.


Installation:

1. open includes/db_mysql.php
2. find the code below in the connect() function


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3. Replace that with


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Just replace the url with where ever you want it to goto.

I'm leaving the original file availible to download as it might be useful for other administrative purposes.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
PhotoPlog 1337 Thumbs (Just incase basic templates bore you.) SHANE-D-PAIN vBulletin 3.5 Add-ons 84 08 Jun 2009 03:24

  #16  
Old 31 Mar 2005, 14:26
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
nice addon.. thanks
Reply With Quote
  #17  
Old 31 Mar 2005, 14:35
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
This looks good but how will members know theres a problem if they auto get forwarded to a new site?
__________________
TopDollarMall
Reply With Quote
  #18  
Old 03 Apr 2005, 23:47
-=Sniper=-'s Avatar
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
you can forward them to a page instead, saying the site will be back in a bit or something like that,
Reply With Quote
  #19  
Old 15 Apr 2005, 21:43
wirewolf's Avatar
wirewolf wirewolf is offline
 
Join Date: Jun 2004
Real name: John
Originally Posted by venomx
This looks good but how will members know theres a problem if they auto get forwarded to a new site?
Just make up a page for your site similar to this (I have a sister site (different host) that I redirect to in-case my forums' site goes down - either the sql database or the entire server):
Server Down Message
Reply With Quote
  #20  
Old 18 Apr 2005, 15:13
Harley77 Harley77 is offline
 
Join Date: Jul 2002
I like mine :-)

http://www.demopolislive.com/sqldown.html
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 14:44.

Layout Options | Width: Wide Color: