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
vB404 Error Page Details »»
vB404 Error Page
Version: 1.00, by DeMiNe0 DeMiNe0 is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 05-17-2006 Last Update: 05-17-2006 Installs: 18
Template Edits
Additional Files  
No support by the author.

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>
3. Create or edit an .htaccess file in the very root of your site, and add the following lines:
Code:
#    "404 Not Found",
ErrorDocument  404  /path/to/404.php
Replace path/to with your forums path. For example, mine reads:
ErrorDocument 404 /forums/404.php

4. Click the Install Button!

Show Your Support

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

Comments
  #2  
Old 05-18-2006, 06:06 PM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good idea
Reply With Quote
  #3  
Old 05-18-2006, 06:10 PM
melefire's Avatar
melefire melefire is offline
 
Join Date: Dec 2005
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, but i think someone has already made somthing like this
Reply With Quote
  #4  
Old 05-18-2006, 06:29 PM
Jon_Simmonds Jon_Simmonds is offline
 
Join Date: Nov 2005
Location: UK
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

aye - https://vborg.vbsupport.ru/showthread.php?t=98243
Reply With Quote
  #5  
Old 05-18-2006, 06:42 PM
camoman camoman is offline
 
Join Date: Oct 2004
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Idea!! Installed!

One problem though.. "Search The Forums" doesn't work on mine and it doesn;t seem to work on yours either?
Reply With Quote
  #6  
Old 05-18-2006, 07:00 PM
DeMiNe0 DeMiNe0 is offline
 
Join Date: Jun 2004
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 05-18-2006, 07:12 PM
DeMiNe0 DeMiNe0 is offline
 
Join Date: Jun 2004
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed.... Also my hack is different then the one pointed out because it has the search features.
Reply With Quote
  #8  
Old 05-18-2006, 07:17 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not a bad idea, very useful for those bigger sites where urls might get moved and such.
Reply With Quote
  #9  
Old 05-18-2006, 08:25 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's already a hack like this but I prefer this one. Thanks!
Reply With Quote
  #10  
Old 05-19-2006, 03:57 AM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Suggest using phrases maybe? So that its easier to apply to different sites....especially for the message maybe use the {1} and {2} phrases?
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 03:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05202 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
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
  • (2)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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