The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB404 Error Page Details »» | |||||||||||||||||||||||||
Time To Install: 1 Minute
Live Demo: http://www.digitaltoxicity.net/URL-THAT-DOESN'T-EXIST What Is it?: vB404 is a very simple yet effective alternative to using the stock web server 404 redirect pages. This extention uses your vbulletin board, to display the 404 error, and also give the user an option of doing a search on your site only within google, as well as your forum search. This hack is only one template addition, and one file upload, and one file creation, or edit. You MUST have either .htaccess support, or some other 404 page redirect supported by your web server. Install Directions: 1. Upload 404.php to your forums directory. 2. Add the following template to your forums style: Name: 404_error Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <if condition="$show['search_noindex']"> <meta name="robots" content="noindex,follow" /> </if> $headinclude <title>$pagetitle</title> $headinsert </head> <body> $header <if condition="$navbar"> $navbar <else /> <br /> <br /> <br /> </if> <table cellspacing="0" cellpadding="4" border="0" width="100%" valign="top"> <tr> <td class="thead">Sorry, the page you requested could not be found.</td> </tr> <tr> <td width="100%" class="alt1"> Please check the URL for proper spelling and capitalization. If you're having trouble locating a destination on my site, try going to <a href="/">the main page</a>. Also, you may find what you're looking for if you try searching below. <br> <br> <table width="400" border="0" align="center" cellpadding="5" cellspacing="0"> <tr> <form action="http://www.google.com/search" name="searchbox" method="get" style="margin-left: 2em;" /> <input type="hidden" name="hl" value="en" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="hidden" name="sitesearch" value="$domain" /> <td nowrap>Search The Site on Google:</td> <td><input maxlength="256" size="40" name="q" class="bginput" value="" /></td> <td><input type="submit" value="Search" name="btnG" class="button" /></td> </form> </tr> </table> <table width="400" border="0" align="center" cellpadding="5" cellspacing="0"> <tr> <form action="$vboptions[bburl]/search.php" method="post"> <input type="hidden" name="do" value="process" /> <input type="hidden" name="showposts" value="0" /> <input type="hidden" name="quicksearch" value="1" /> <input type="hidden" name="s" value="" /> <td align="right" nowrap>Search The Forums:</td> <td><input maxlength="256" size="40" class="bginput" name="query" value="" /></td> <td><input type="submit" value="Search" class="button" /></td> </form> </tr> </table> <br></td> </tr> </table> <if condition="!$show['enableforumjump']"> <!-- forum jump --> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td>$forumjump</td> </tr> </table> <!-- / forum jump --> </if> <br /> $footer </body> </html> Code:
# "404 Not Found", ErrorDocument 404 /path/to/404.php ErrorDocument 404 /forums/404.php 4. Click the Install Button! Show Your Support
|
Comments |
#2
|
|||
|
|||
Good idea
|
#3
|
||||
|
||||
Nice, but i think someone has already made somthing like this
|
#4
|
|||
|
|||
|
#5
|
|||
|
|||
Great Idea!! Installed!
One problem though.. "Search The Forums" doesn't work on mine and it doesn;t seem to work on yours either? |
#6
|
|||
|
|||
I see why. You need to put the full path to your forums directory in. I'll fix this in a minute and re upload.
|
#7
|
|||
|
|||
Fixed.... Also my hack is different then the one pointed out because it has the search features.
|
#8
|
||||
|
||||
Not a bad idea, very useful for those bigger sites where urls might get moved and such.
|
#9
|
||||
|
||||
There's already a hack like this but I prefer this one. Thanks!
|
#10
|
|||
|
|||
Suggest using phrases maybe? So that its easier to apply to different sites....especially for the message maybe use the {1} and {2} phrases?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|