![]() |
|
Mod Options |
![]() |
|||||||||
This modification is in the archives.
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
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Custom HTTP Error Documents | JJR512 | vBulletin 2.x Full Releases | 43 | 19 Apr 2004 08:08 |
#31
|
||||
|
||||
The first thing I originally tried, which is the bit of code you said is wrong, does actually work.
Well, let me rephrase that. It works without using the construct_phrase function. This is what I'm using, and it works, and is about to be uploaded:
No members have liked this post.
Last edited by JJR512; 14 Oct 2005 at 23:34. |
#32
|
||||
|
||||
The hack is now updated to use phrases for, I believe, all text displayed.
If you have an earlier version, upgrade instructions are now in the hack description above. No members have liked this post.
|
#33
|
||||
|
||||
Originally Posted by Dark Visor
Hmm, why should it be wrong?
@JJR512 Wasn't the previous version a product as well? Then you don't have to worry about old templates or such; product management will take care of that. The User just has to reimport the XML ![]() No members have liked this post.
Last edited by KirbyDE; 15 Oct 2005 at 06:50. |
#34
|
||||
|
||||
I didn't realize that. So when you import a product, using the overwrite, it will also remove any templates with that product's name that are not in the new version of the product? Wow. Great stuff!
![]() No members have liked this post.
|
#35
|
||||
|
||||
Note: The product file has been updated to correct the "refresh" and "back" messages be actual links that will refresh the page or go back to the previous page. The links were accidentally converted to text when I was converting the original templates into phrases.
If you had the 2.1.0 version, you only need to re-add the product file, overwriting the previous version. For any other earlier version, download the new httperrors211.zip file and follow the same instructions already posted for upgrading to 2.1.0. No members have liked this post.
|
#36
|
||||
|
||||
I also am getting a lot of people reported as "Viewing HTTP Error" on the Who's Online page, when i know they are not seeing an error. I don't have anything in my .httaccess file either.
__________________
vBulletin - 3.6.1 No members have liked this post.
|
#37
|
||||
|
||||
Same here!
No members have liked this post.
|
#38
|
|||
|
|||
installed no problem found so far
No members have liked this post.
|
#39
|
||||
|
||||
It's working all fine now. Thanks again.
![]() No members have liked this post.
|
#40
|
||||
|
||||
Originally Posted by Aftermath
Did you do anything to fix the problem?
No members have liked this post.
|
#41
|
||||
|
||||
Originally Posted by Avalon111
Originally Posted by oglsmm
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.
![]() No members have liked this post.
|
#42
|
||||||||
|
||||||||
hi people,
it looks like this is not working for error code 401 (autorization requirerd) the screen that comes up if you try to login to restricted area with the wrong login information.My apache error_log shows this
for this error code it must be a local document so ......
should do it but nope ... No members have liked this post.
|
#43
|
||||
|
||||
Assuming that your httperror.php is in the web root (meaning not in a forums subfolder), did you try it without the beginning slash? Try it using a path name instead of a URL?
No members have liked this post.
|
#44
|
|||
|
|||
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 No members have liked this post.
|
#45
|
||||
|
||||
Originally Posted by JJR512
Nah actually it was just a silly mistake I've made. I forgot to upload the product XML file via the admincp. The hack's working just fine!
![]() No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:13.