vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Better looking database error screen (https://vborg.vbsupport.ru/showthread.php?t=97669)

Protoman 10-05-2005 10:00 PM

Better looking database error screen
 
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.

Dan 10-05-2005 10:56 PM

nice one :D I'll be using it :D

monstergamer 10-05-2005 11:07 PM

i like this alot, you broke it!

Allan 10-05-2005 11:24 PM

lol great job :p ;)

Andreas 10-05-2005 11:30 PM

IMHO it doesn't make too much sense to use $vboptions[bbtitle] ;)

Protoman 10-05-2005 11:34 PM

:p I just left that in there because it was in my original file. I just wanted to get people thinking by releasing this. You're free to make up your own or whatever :)

dieselpowered 10-05-2005 11:45 PM

HAHAHA I think I may use this...thanks!

Boofo 10-05-2005 11:49 PM

Quote:

Originally Posted by xtremeoff-road
HAHAHA I think I may use this...thanks!

PM me what you come up with. I have an idea it will be a doozy. ;)

jesus likes pie 10-06-2005 12:35 AM

ahahaha thanks vBCorolla. It is funnyness!

DS MrSinister 10-06-2005 12:42 AM

lmao nice job. :chinese:

Protoman 10-06-2005 12:49 AM

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.

Acers 10-06-2005 01:22 AM

lol me think i will use it also :P grt hack

jugo 10-06-2005 01:50 AM

AWESOME...Thanks...fits perfectly with my site...lol

COBRAws 10-06-2005 03:36 AM

you broke it hahaha

thanks! i was planning to update it myself and came across this! =D

Alien 10-06-2005 05:00 AM

Hey. Thanks for this!

Installed, and unfortunately working. ;) lol...

[high]* Alien walks off to fix something.[/high]

buro9 10-06-2005 08:20 AM

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!

Cyricx 10-06-2005 11:57 AM

Hahah this is hilarious :)

Koopa 10-06-2005 05:06 PM

I'll be using this, thanks :)

MentaL 10-06-2005 05:14 PM

love it :p

monstergamer 10-06-2005 05:23 PM

when i think about this, i think this should be HOTM LOL

Neal-UK 10-08-2005 09:27 AM

very good thankyou

OllieRocks 10-08-2005 10:30 AM

V. Good! Thanks :)

*Hopes I wont have to ever see this page :p*

dutchbb 10-08-2005 11:58 AM

http://www.dutchbodybuilding.com/for...rror_page.html

It's funny and better looking :)

vibe 10-10-2005 12:43 AM

lol he did it!

Kirk Y 10-10-2005 12:46 AM

Ha ha, that's awesome. With this error page, I'll actually want the database to go awry!

Avalon111 10-13-2005 06:06 AM

great! i love it!!!!

Boofo 10-13-2005 06:16 AM

Has anyone come up with a good error page they are willing to share? ;)

Kihon Kata 10-14-2005 02:42 PM

Quote:

Originally Posted by Dan
nice one :D I'll be using it :D

MakeupTalk Installed!

bobs409 10-22-2005 05:36 PM

Very nice, thanks.

Bob

*clicked installed*

seany1 12-06-2005 07:48 AM

lol thanks looks great

steven s 12-13-2005 04:24 PM

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.

futuredood 06-29-2006 04:40 PM

installed but how in the world do you test this?

Protoman 06-29-2006 07:34 PM

turn off mySQL via your console I suppose, that or make a PHP page that causes a mysql error

Rickie3 07-01-2006 12:09 AM

hahahahaha I love it suits me to a T my members call me sex fingers LOL

PoetJA-1975 09-28-2006 10:08 PM

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.


All times are GMT. The time now is 12:30 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.01385 seconds
  • Memory Usage 1,779KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete