Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Better looking database error screen Details »»
Better looking database error screen
Version: 1.01, by Protoman Protoman is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Version: 3.5.5 Rating:
Released: 10-05-2005 Last Update: 10-05-2005 Installs: 69
Code Changes  
No support by the author.

I thought the database error screen was ugly so I decided to make something more visually appealing (not much!) than the original screen.

Step 1)
Upload the 2 gif's to your includes directory (you can move them wherever you want if you edit the code)

Step 2)
Update the below template so the images are their full URL paths
(ie.. http://site.com/forum/images/blah.gif)


Step 3)
replace the contents of includes/database_error_page.html with:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>$vboptions[bbtitle] Database Error</title>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<style type="text/css">
	<!--
	blockquote { margin-top: 75px; }
	p { font: 11px tahoma, verdana, arial, sans-serif; }
	-->
	</style>
</head>
<body>
<table align="center" width="70%" border="0" cellpadding="0" cellspacing="0" bgcolor="#E7E7f7">
  <tr bgcolor="#395D94">
    <td colspan="5"><div align="center"><strong><font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">$vboptions[bbtitle] Error</font></strong></div></td>
  </tr>
  <tr>
    <td width="10" rowspan="3">&nbsp;</td>
    <td width="100" bgcolor="#F7F7FF"><div align="center"><img src="includes/signOops.gif" width="48" height="49" alt="Oops!" /></div></td>
    <td colspan="2" bgcolor="#F7F7FF">

    <blockquote>
			<blockquote>
				<p><strong>There seems to have been a problem with the $vboptions[bbtitle] database.</strong><br />
					Please try again by clicking the <a href="#" onclick="window.location = window.location;">Refresh</a> button in your web browser.</p>
				<p>An E-Mail has been dispatched to our <a href="mailto:$technicalemail">Technical Staff</a>, whom you can also contact if the problem persists.</p>
				<p>We apologise for any inconvenience.</p>

				$message

			</blockquote>
	</blockquote>

    </td>
    <td width="10" rowspan="3">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3" bgcolor="#F7F7FF"> <div align="right"><img src="includes/pointlaugh.gif" width="58" height="23" alt="funny" /></div>
      <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>You
        broke it!</strong></font></div></td>
  </tr>
  <tr>
    <td colspan="3">&nbsp;</td>
  </tr>
</table>

</body>
</html>
There you have it! A better looking error message when things go wrong.
You can customize the images, error message, and colors to your liking.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 12-13-2005, 04:24 PM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After recieving +100 error messages I thought about changing that page too.
A quick search came across this thread. Can't wait to install it.
I had no idea where that html page was.
Thanks.
Reply With Quote
  #33  
Old 06-29-2006, 04:40 PM
futuredood futuredood is offline
 
Join Date: Jan 2002
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed but how in the world do you test this?
Reply With Quote
  #34  
Old 06-29-2006, 07:34 PM
Protoman's Avatar
Protoman Protoman is offline
 
Join Date: Jan 2005
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

turn off mySQL via your console I suppose, that or make a PHP page that causes a mysql error
Reply With Quote
  #35  
Old 07-01-2006, 12:09 AM
Rickie3's Avatar
Rickie3 Rickie3 is offline
 
Join Date: Nov 2004
Location: Australia/Tasmania
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hahahahaha I love it suits me to a T my members call me sex fingers LOL
Reply With Quote
  #36  
Old 09-28-2006, 10:08 PM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by futuredood
installed but how in the world do you test this?
LOL - I was thinking the same thing - How in the HELL can I possibly test this without breaking something :P

At anyrate - hits install!

Thanx for the sharing!

Jacquii.
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 04:34 PM.


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.03803 seconds
  • Memory Usage 2,257KB
  • Queries Executed 20 (?)
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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete