Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Custom HTTP Error Pages Details »
Custom HTTP Error Pages
Mod Version: 2.1.3, by JJR512 (Member) JJR512 is offline
Developer Last Online: Jun 2006 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.0 Rating: (4 votes - 4.50 average) Installs: 60
Released: 12 Oct 2005 Last Update: 28 Oct 2005 Downloads: 179
Not Supported Uses Plugins Template Edits Additional Files  

This is a re-write of a hack I made for vBulletin 2.x.

What this hack does is use vBulletin to generate HTTP error pages (such as the 404 - Not Found error). For those of you trying to get an all-vB-based-site, this addition will help complete your quest. Also for anyone who wants a nicer looking HTTP error message than the standard blah.

Note: Your website needs to be on a server that uses a .htaccess file, a file located in your root public directory. This may only be servers using the Apache HTTP server, I'm not sure if any other HTTP server, like Microsoft IIS, uses that or not. Some more notes on this are included in the instructions.txt file.

There are no vB files to modify. There is one file to upload, and one product to install, which will install several new templates and two plugins. The plugins are for Who's Online display. The templates contain the actual messages. No existing templates are modified.

Special thanks to KirbyDE for showing me how to group templates using a plugin rather than a code modification.

This hack has now been re-written to use phrases. If you have a previous version, here's what you can do to upgrade.
1. Upload the new httperror.php file.
2. Add the product-jjr512_httperr.xml, overwriting the existing. (All old non-used templates should be removed automatically. This version uses only two templates: HTTP_ERROR and http_error_bit.)

Download Now

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

Supporters / CoAuthors

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.
Similar Mod
Mod Developer Type Replies Last Post
Custom HTTP Error Documents JJR512 vBulletin 2.x Full Releases 43 19 Apr 2004 08:08

  #46  
Old 27 Oct 2005, 20:58
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Real name: Erik
Originally Posted by Delphiprogrammi
hi,

Yes the httperror.php is in the "webroot" i didn't tryed that yet (using an aboslute pathname or remoing the slash) will give that a shot and get back to you
just tryed this absolute path and no beginning "/" but the problem is elsewhere i think my apache error_log shows this

[Thu Oct 27 14:55:20 2005] [error] [client ********] File does not exist: /401.shtml
i'm on a dedicated server (cpanel) maybe that has anything todo with it i didn't configure the "errorpages" in my cpanel through
Reply With Quote
  #47  
Old 27 Oct 2005, 23:30
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Real name: Erik
well,

punch me but all of a sudden it started to work.All i did before it started to work is just access the page that would bring up that error page eg http://www.yourserver.com/httperror.php?e=401 and the line in my .htaccess for errorcode 401 is


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

also i found while searching on google that the leading "/" means to be a local document not a url
Reply With Quote
  #48  
Old 28 Oct 2005, 13:38
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Thanks a lot, it's great, it saved me lots of time
Reply With Quote
  #49  
Old 28 Oct 2005, 17:48
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Real name: Justin J. Rebbert
I will shortly be changing the instructions to not have the full URL to the file, just the local file name, as in Delphiprogrammi's code example in Post# 47. Maybe it only applies to the one type of error, maybe there are others, so just in case, I'm recommending that for all of them.
__________________
-Justin J. "JJR512" Rebbert
www.JJR512.com: Chat about anything!
Reply With Quote
  #50  
Old 03 Nov 2005, 18:23
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Originally Posted by JJR512
I will shortly be changing the instructions to not have the full URL to the file, just the local file name, as in Delphiprogrammi's code example in Post# 47. Maybe it only applies to the one type of error, maybe there are others, so just in case, I'm recommending that for all of them.
After I installed this a lot of my members complain that they keep seing it in pages that exist, especially on the home page of the site!
Reply With Quote
  #51  
Old 06 Nov 2005, 04:35
oglsmm's Avatar
oglsmm oglsmm is offline
 
Join Date: May 2004
Originally Posted by JJR512
If you don't have anthing in your .htaccess file, how is the hack working at all? Sure, if you go to www.yourdomain.com/forums/httperror.php?e=404 you'll see the error page, but what if you go to www.yourdomain.com/xkaooe3991.html, a file which probably doesn't exist on your server, do you get the error page from my hack then? Because as far as I'm aware, custom error pages need to be "pointed" to by the .htaccess file, otherwise you get the generic error page. And if I'm wrong about that, then I guess I need to be re-educated.
I meant there is nothing in there but the stuff from this hack.

Sorry for the confusion.
__________________
vBulletin - 3.6.1
Reply With Quote
  #52  
Old 06 Nov 2005, 04:37
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Originally Posted by Loukrhtia
After I installed this a lot of my members complain that they keep seing it in pages that exist, especially on the home page of the site!
*bump* :nervous:
Reply With Quote
  #53  
Old 07 Nov 2005, 14:46
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Real name: Justin J. Rebbert
Originally Posted by Loukrhtia
After I installed this a lot of my members complain that they keep seing it in pages that exist, especially on the home page of the site!
Sorry about that. I'm actually not really sure how to help you. The problem would seem to be with the webserver itself, since it's directing people to the error pages. It could be that the .htaccess file isn't configured properly or there is some other problem related to it.

You may want to ask your webhost technical support what's wrong with your .htaccess file. Explain to them you're trying to use custom error pages and show them what you put in that file.

If they are able to help you, please tell us here what they did. If they can't help you (or nobody else here can), then unfortunately you may need to uninstall and not use this hack.
__________________
-Justin J. "JJR512" Rebbert
www.JJR512.com: Chat about anything!
Reply With Quote
  #54  
Old 07 Nov 2005, 16:52
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Originally Posted by JJR512
Sorry about that. I'm actually not really sure how to help you. The problem would seem to be with the webserver itself, since it's directing people to the error pages. It could be that the .htaccess file isn't configured properly or there is some other problem related to it.

You may want to ask your webhost technical support what's wrong with your .htaccess file. Explain to them you're trying to use custom error pages and show them what you put in that file.

If they are able to help you, please tell us here what they did. If they can't help you (or nobody else here can), then unfortunately you may need to uninstall and not use this hack.
I already asked them and they said that everything is ok!
Btw this only happens at the home page of the site...
Are you sure it has nothing to do with the hack? Cause I read here that other members have it too and it only started happening after the install of it...
Reply With Quote
  #55  
Old 08 Nov 2005, 15:24
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Real name: Justin J. Rebbert
It's possible, but if it is, it's beyond my comprehension. It defies logic. The operation of this hack should be extremely simple. Either an error condition occurs, in which case you are directed to the appropriate page generated by this hack, or else there is no error condition and you get to the correct page on your site. I can't understand how someone would get to the error message without there being any error condition. I'm sorry.
__________________
-Justin J. "JJR512" Rebbert
www.JJR512.com: Chat about anything!
Reply With Quote
  #56  
Old 19 Nov 2005, 22:54
kadafi_alive kadafi_alive is offline
 
Join Date: Dec 2004
Hi JJR512,

great hack, it is working perfectly except in whoisonline, it shows when a user is seeing an error page: Unknown location instead of the phrase viewing error.

How do I fix this

Regards
Reply With Quote
  #57  
Old 20 Nov 2005, 18:11
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Real name: Justin J. Rebbert
Is the plugin active?
__________________
-Justin J. "JJR512" Rebbert
www.JJR512.com: Chat about anything!
Reply With Quote
  #58  
Old 25 Nov 2005, 09:57
Skyline_GT Skyline_GT is offline
 
Join Date: May 2003
I wonder how come the images are dead?
Where should I fix this?
http://www.gamerzplanet.net/adsd
__________________
Gamerzplanet.Net - The best place to get the latest cracks, hacks, cheats for all popular online games!!
GzP Upload.NET - Fast and Free Image Hosting!!
Online Flash Games - An online flash game with 10,000+ games!!
Reply With Quote
  #59  
Old 25 Nov 2005, 14:29
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
I don't see any broken images, it's working fine.
Reply With Quote
  #60  
Old 27 Nov 2005, 07:27
PennylessZ28 PennylessZ28 is offline
 
Join Date: Mar 2002
Real name: Mike
Glad to know I'm not alone, I've been using the old and new versions of this and everyone is EXPERINCING and error, even when they aren't.

WTF?
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 23:38.

Layout Options | Width: Wide Color: