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:


All times are GMT. The time now is 01:48 AM.

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.01249 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete