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
  #12  
Old 10-06-2005, 12:49 AM
Protoman's Avatar
Protoman Protoman is offline
 
Join Date: Jan 2005
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

zip updated. make sure you use the full image paths on your forum or you will have broken images depending where the error is generated.
Reply With Quote
  #13  
Old 10-06-2005, 01:22 AM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol me think i will use it also :P grt hack
Reply With Quote
  #14  
Old 10-06-2005, 01:50 AM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME...Thanks...fits perfectly with my site...lol
Reply With Quote
  #15  
Old 10-06-2005, 03:36 AM
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Location: Buenos Aires
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you broke it hahaha

thanks! i was planning to update it myself and came across this! =D
Reply With Quote
  #16  
Old 10-06-2005, 05:00 AM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey. Thanks for this!

Installed, and unfortunately working. lol...

[high]* Alien walks off to fix something.[/high]
Reply With Quote
  #17  
Old 10-06-2005, 08:20 AM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love it, using it.

However... a question... your screenshot kinda shows that $vboptions aren't getting through to the end page. If the password was wrong or something daft like that, you wouldn't have $vboptions.

It's probably best to advise people to hardcode their forum info and email into that error page and not rely on something that you might not have... in fact probably won't have... it is an error page afterall

Oh, and I remove $message from mine after accidentally leaking my database password to the web!
Reply With Quote
  #18  
Old 10-06-2005, 11:57 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hahah this is hilarious
Reply With Quote
  #19  
Old 10-06-2005, 05:06 PM
Koopa Koopa is offline
 
Join Date: Nov 2001
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll be using this, thanks
Reply With Quote
  #20  
Old 10-06-2005, 05:14 PM
MentaL's Avatar
MentaL MentaL is offline
 
Join Date: Jan 2003
Posts: 550
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

love it
Reply With Quote
  #21  
Old 10-06-2005, 05:23 PM
monstergamer's Avatar
monstergamer monstergamer is offline
 
Join Date: Feb 2003
Location: around the corner
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when i think about this, i think this should be HOTM LOL
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:31 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.05646 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
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)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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