Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Send 503 error "Service Temporarily Unavailable" header on MySQL error! 3.6.x & prior Details »
Send 503 error "Service Temporarily Unavailable" header on MySQL error! 3.6.x & prior
Mod Version: 1.0.0, by Milad (Coder) Milad is offline
Developer Last Online: Feb 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.x Rating: (1 vote - 5.00 average) Installs: 4
Released: 28 Apr 2008 Last Update: Never Downloads: 4
Not Supported Code Changes Translations  

Brought to you by Syrian Medical Society & Milado

Introduction & Description:
Sometimes, for a reason or another, MySQL server halts and vBulletin prints the MySQL error!

But Google will still index your pages even if they contain that error rather than the actual content!

What if that error lasts for many hours? many pages will get indexed during this breakdown, and will be replaced (if already indexed) with a no-content-but-a-MySQL-error page!

Here is a solution which will work for all vBulletin versions through the three generations (3.0 3.5 and 3.6)!

We will send a 503 error "Service Temporarily Unavailable" header, and Google will understand the message, and refrain from indexing your pages.

Installation for 3.7.x:
No need! this is already implemented in 3.7.x generation!

Installation for 3.5.x and 3.6.x:
In includes/class_core.php find:


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

Add before it the following:


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


Installation for (3.0.x):
In includes/db_mysql.php find:


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

Add before it the following:


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


A comment:
It won't be simpler! no way to do this via plug-ins, as the MySQL error probably will prevent vBulletin from getting the plug-ins from the database!
To check how many database errors had been indexed by Google, use the following query:

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

replace syrianmeds.net with your site domain name!



Change log:
  • 1.0.0 first public release, on April, 28 2008
Click install to receive support & updates.

You like it? nominate it.

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.
Comments
  #2  
Old 28 Apr 2008, 12:31
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Real name: Christian
looks simple!
Reply With Quote
  #3  
Old 28 Apr 2008, 12:36
Milad's Avatar
Milad Milad is offline
 
Join Date: May 2005
Real name: Milad
Originally Posted by KURTZ View Post
looks simple!
But clever again!
Reply With Quote
  #4  
Old 28 Apr 2008, 13:11
Rickeo's Avatar
Rickeo Rickeo is offline
 
Join Date: Jan 2007
Real name: Richard
This is really genius actually simple but really handy installed and nominated

Rick
__________________
SpiritualBB.com
The Online Multi Faith, Unexplained & Paranormal Bulletin Board
Reply With Quote
  #5  
Old 28 Apr 2008, 14:00
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
Sounds like a Great SEO mod. Thanks.
Reply With Quote
  #6  
Old 28 Apr 2008, 14:22
testebr testebr is offline
 
Join Date: Jan 2004
Milad,

Please read this http://www.vbulletin.com/forum/showthread.php?t=268710

Cya
Reply With Quote
  #7  
Old 28 Apr 2008, 15:32
Milad's Avatar
Milad Milad is offline
 
Join Date: May 2005
Real name: Milad
I already suggested this a while ago http://www.vbulletin.com/forum/showthread.php?t=230053

It had been implemented in 3.7

I'm happy!
Reply With Quote
  #8  
Old 29 Apr 2008, 10:45
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Thank you very much
__________________
games
Forum Nokia
Reply With Quote
  #9  
Old 29 Apr 2008, 11:42
killerkraft's Avatar
killerkraft killerkraft is offline
 
Join Date: Mar 2006
Brilliant.

Thank you.
Reply With Quote
  #10  
Old 09 May 2008, 16:20
myown myown is offline
 
Join Date: Jan 2007
thanks for this sure will be installing soon.
__________________
http://pak.net
Urdu Forums - Articles, Jokes, Poetry and lots more
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 00:48.

Layout Options | Width: Wide Color: