Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Perfect 404 Error Page Details »
Perfect 404 Error Page
Mod Version: 1.00, by Arcade Fire (Member) Arcade Fire is offline
Developer Last Online: Aug 2017 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (2 votes - 4.50 average) Installs: 23
Released: 10 Oct 2009 Last Update: Never Downloads: 268
Not Supported Template Edits Additional Files Re-usable Code Translations  

Hi!

This is my first mod.

The common 404 error page, makes visitors close our website since it has no navigation. In this way we lose many users as our url has been changed wen remove vBseo, tFseo or other causes.

The modification is simple, create an error page with the internal browser and offer a google search box.

Step 1 - Add New Template
Title: custom_404

Template:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Edit:
  • http://YourSite.com - change for the url of your website two times
  • google_ad_client = "pub-***********YOUR ID***********"; Enter your PUB number or delete the following if you want to display advertising

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Step 2 - Upload 404.php file

Up the attachment to the root of your forum.


Step 3 - Add or change your .htaccess

If you have the file, add the following:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

if you do not, you can upload the attachment or create it with this content.


...........................................................................

Try to work accessing a non existing url
Example: http://www.YourSite.com/tsdsd


DEMO: Sorry, Remove.

INFO: http://www.google.com/support/webmas...41&ctx=sibling



Greetings!

Sorry about my English and if this mod is too simple

History:

Update 1: #16

XHTML Valid [Whithout tables]

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 10 Oct 2009, 10:46
Michael1337 Michael1337 is offline
 
Join Date: Oct 2009
Looks nice, gratz on first Mod (:
Reply With Quote
  #3  
Old 10 Oct 2009, 17:23
Medtech's Avatar
Medtech Medtech is offline
 
Join Date: Oct 2007
Thanks!!
Reply With Quote
  #4  
Old 10 Oct 2009, 17:40
PixelFx PixelFx is offline
 
Join Date: Dec 2002
thanks
Reply With Quote
  #5  
Old 11 Oct 2009, 05:05
segwayon segwayon is offline
 
Join Date: Mar 2008
Very nice!
Reply With Quote
  #6  
Old 12 Oct 2009, 16:13
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Great, I'm going to install this one, thank you! *Marked installed *
__________________
Greetings, Black Tiger
Reply With Quote
  #7  
Old 15 Oct 2009, 00:34
Mike08's Avatar
Mike08 Mike08 is offline
 
Join Date: Sep 2006
Reserved to install "Hamijo"

:elrisas:
Reply With Quote
  #8  
Old 15 Oct 2009, 01:09
CSS59 CSS59 is offline
 
Join Date: Nov 2004
looks good, I needed this!
__________________
http://webdirectoryforums.com/ Web Directory Forums
Linkage Plus - Link directory... please add a link
Reply With Quote
  #9  
Old 15 Oct 2009, 02:19
segwayon segwayon is offline
 
Join Date: Mar 2008
Is there any way of getting a report on what URL might have been requested in order to be redirected to this 404 page? After installing the mod I notice that the WhosOnline page will show this 404.php on occasion, and the page being viewed mentions 'Unknown Location.'

UPDATE: I notice that the online.php page gets listed as this 'Unknown Location -- forum/404.php' within the Who'sOnline. It will list myself as viewing the 404.php page, while I'm actually viewing the online.php page. Any idea on how to fix this bug?

Update2: Could the reason that the online.php page is being erroneously marked as 'Unknown Location - 404.php' is because my online.php page contains some modifications to its template?

Update3: Uninstalled. Hope everyone else's 404 mod is working okay. It looked very nice and did its job, but would cause erroneous 404 markers in the Who's Online page. If it gets a fix I'll be happy to revisit it.

Last edited by segwayon; 17 Oct 2009 at 02:29.
Reply With Quote
  #10  
Old 01 Nov 2009, 12:30
Arcade Fire's Avatar
Arcade Fire Arcade Fire is offline
 
Join Date: May 2008
Who's Online Modification

If you want to show who is browsing this new page of yours, just open up includes/functions_online.php and find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Below, add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.




Then find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Below add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #11  
Old 01 Nov 2009, 15:19
Delifed Delifed is offline
 
Join Date: Feb 2009
Cool looks nice i may have to use. Thanks,
Reply With Quote
  #12  
Old 01 Nov 2009, 15:25
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Does the page validate without errors? I haven't added it yet, but I'm planning to do so.

The DEMO is showing 57 errors: http://validator.w3.org/check?uri=ht...Inline&group=0
Reply With Quote
  #13  
Old 03 Nov 2009, 17:15
Arcade Fire's Avatar
Arcade Fire Arcade Fire is offline
 
Join Date: May 2008
Originally Posted by MagicThemeParks View Post
Does the page validate without errors? I haven't added it yet, but I'm planning to do so.

The DEMO is showing 57 errors: http://validator.w3.org/check?uri=ht...Inline&group=0
I try to fix this...
Reply With Quote
  #14  
Old 04 Nov 2009, 00:29
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Thanks Arcade Fire

Please let us know when it's fixed because this is a great mod and helps those folks just starting out.
Reply With Quote
  #15  
Old 06 Nov 2009, 09:47
Arcade Fire's Avatar
Arcade Fire Arcade Fire is offline
 
Join Date: May 2008
@ MagicThemeParks, try with this code:

Update:


XHTML Valid [Whithout tables]






Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Screenshot:

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 02:37.

Layout Options | Width: Wide Color: