![]() |
Custom HTTP Error Pages
1 Attachment(s)
About this hack:
This hack allows you to use vBulletin template driven pages for 400, 401, 403, 404 and 500 webserver error pages that will perfectly match your own forum's design. Five custom pages are added to your forum by this hack. You can then instruct your webserver to use these pages for it's error pages. Features:
Installation information on hack:
<URL OF YOUR FORUM HOME>/400_forum.phpNext you will need to edit your webserver's configuration file or add lines into an .htaccess file. .................................................. .......... If your forum directory is the same as your website's document root, add these lines: Code:
ErrorDocument 400 /400_forum.php If your forum is located in a directory within your website's document root, you'll need to replace <forum_directory> with the directory of your forum in these lines: Code:
ErrorDocument 400 /<forum_directory>/400_forum.php
Updates: Version 1.0 (03/05/09):
MAKE SURE YOU CLICK INSTALL! Screenshots: These show the five error pages in vBulletin's default style. |
Perfect mod, thanks :)
|
That's awesome, thanks.
|
thanks
|
SIMPLY PERFECT!!! :p
Thank you! :up: :up: |
I installed but some reason its not really working for me like i want it to redirect to the error pages but mistyping a link it still doesnt send me there
|
Just Keeps Going Up!
Good work.. I go to test it.. |
Quote:
Are you using the ErrorDocument lines in an .htaccess file or in your webserver's configuration file? Thanks, James |
Great hack. I will surely use it. No need to modify CSS for custom pages now to match it with forum skin
|
Installed, Great looking mod. keep up the good work.
Thanks, |
Nice addition. One note is that it only works properly if the Store CSS Stylesheets as Files? option is set to No. When yes, the style is ignored, and it looks horrible. Would be great if you could integrate the usage of CSS Stylesheet files as well.
|
Quote:
I'm not sure I completely understand the problem and why you are having trouble. :confused: Thanks, James |
Must conflict with something else. >>uninstalled<<
|
Installed didnt work using the .htaccess file set in server settings.
nice mod. |
Nice hack, very useful :up:
Any reason why lots (nearly half) of my active members would be shown in the Who's Online listing as this: Unknown Location /forum/404_forum.php I'm really stumped. |
Quote:
Unknown Location /forum/404_forum.php on the Who's Online page as well as member profiles :confused::confused: |
Quote:
I just looked at a forum with about 500 people online and didn't see anything out of the ordinary and I didn't see any viewing these custom error pages. I suggest you check for other mods you may have installed that might effect the Who's Online list. Thanks, James |
Quote:
I just notice that this didn't start happening until I installed your plugin, and am very confused why it would be showing your 404_forum.php page as the current location. I even totally uninstalled your mod, but the online location still shows as 404_forums.php. |
Fixed it. It seems the problem was being caused by session variables.
For others who might notice the same issue, simply add the following line near the top of 404_forums.php: Code:
define('SKIP_SESSIONCREATE', 1); |
Quote:
|
Templates need to be cached - also, WOL support would be nice :)
|
1 Attachment(s)
Italian Language for 1.00
|
1 Attachment(s)
Russian translation for this useful mod.
|
wol support is a must but I have to say it didn't work for me either, I can get to the pages manually but when hitting real error none of the error pages show.
I use this in my .htaccess ErrorDocument 400 /400_forum.php ErrorDocument 401 /401_forum.php ErrorDocument 403 /403_forum.php ErrorDocument 404 /404_forum.php ErrorDocument 500 /500_forum.php it did not work. I can add it to my docs on my server (it is my server) but how exactly do I do that please? |
James since I installed and uninstalled your product and deleted all the error.php pages my shtml error pages will no longer work (at least they use to work) can you please help and tell me what to do.
I think there is something left over in the database that is now preventing my shtml pages from working, can you please help? |
the code does not fully load in safri
|
great mod.thanks :):)
|
Quote:
Running vB 3.8.2 and vBA CMPS v3.2.0 Also, the header, navbar and footer links are not pointing to the correct pages...from the error pages. |
Uninstalled...until all the bugs are sorted.
|
If theres one for vbulletin 3.7 it would be great :up:
|
Installed & Notaminated , Great looking mod. keep up the good work.
Thanks, |
ErrorDocument 401 /401_forum.php Not Working on vb 3.8.2
|
a bug found in these scripts: by default they don't modify http header your server gives out with the page so for any of these errors the header will contain 200 OK instead of corresponding error. found this accidentally while trying to find out why google doesn't want to authorize me for my website. :)
this is easily enough fixed by adding the following line near the top of script: Code:
header("HTTP/1.0 404 Not Found"); |
Installed, works perfectly :)
Do I put header("HTTP/1.0 404 Not Found"); near the top of the file "404_forum.php" |
Sc00by22,
i'd recommend you to do so. in my experience, 404 is one of the most important error codes and giving out 200 OK when a page is not found can be very misleading for search engines. their crawlers don't actually read pages content, you know, they rely on http status codes. |
Nice, thanks.
|
I get a white page with the http errors on it...
|
Quote:
Quote:
|
is this going to be modded for vb4.0
|
Will this work on vbuleltin 4 series lol
|
All times are GMT. The time now is 07:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|