Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB4 Error Pages Details »»
vB4 Error Pages
Version: 1.0.0, by gezuvor gezuvor is offline
Developer Last Online: Jul 2020 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 04-10-2012 Last Update: 04-15-2012 Installs: 53
Uses Plugins
Re-useable Code Additional Files Translations  
No support by the author.

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.

I modified JamesAB's Custom HTTP Error Pages hack for vB3.8, so credit is due him for the original coding!

Features:
  • Error pages will still work even if your forum is turned off in the AdminCP.
  • Admin CP option to automatically redirect to your forum's main page after the error page is shown for 5 seconds.
  • Admin CP option to show or hide notices on error pages.

Files: 5
Templates: 5
Time: 10 minutes
Compatible: 4.x.x

The templates are very basic and are designed to work with the default style. You may need to tweak them for your forum. They are grouped together under HTTP Error Templates.

The errors messages are fully phrased, but pretty generic. I encourage you to edit them to best suit your site. Each page uses three different vBulletin phrases:
  • navbit
  • title
  • message

I include a modified copy of the vBulletin default .htaccess file in the mod. If you are not already using .htaccess, or if your existing file is the default vbulletin one, you are welcome to simply upload this to the root of your webserver and/or replace the existing file.

DO NOT DO THIS if you have made changes to the default file or if you have a custom file!

Please mark Installed and let me know if there are any issues or suggestions!

Download Now

File Type: zip product-vb4_error_pages.zip (63.4 KB, 346 views)

Screenshots

File Type: jpg 400.jpg (64.4 KB, 0 views)
File Type: jpg 401.jpg (53.1 KB, 0 views)
File Type: jpg 403.jpg (46.5 KB, 0 views)
File Type: jpg 404.jpg (49.1 KB, 0 views)
File Type: jpg 500.jpg (47.4 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
iiioroh, RichieBoy67

Comments
  #22  
Old 10-02-2012, 05:36 AM
qpurser qpurser is offline
 
Join Date: Jul 2011
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by simonhind View Post
ok so ensure that there is no white spaces for

ErrorDocument 400 /forums/400.php
ErrorDocument 401 /forums/401.php
ErrorDocument 403 /forums/403.php
ErrorDocument 404 /forums/404.php
ErrorDocument 500 /forums/500.php

&

# Send hardcoded ipa scores to arcade instead
RewriteCond %{QUERY_STRING} act=Arcade [OR]
RewriteCond %{QUERY_STRING} autocom=arcade
RewriteRule ^index.php arcade.php [L,QSA]

there should be no spaces before or after

you dont need to type anything for the errors

as long as you have this mod active and fopr example

if you type

blahblah.php it will show the appropriate error
the redirects are auto

see if you type

http://mydomain.com/~tcmasorg/forums/

it works
Thanks for the reply.
As mentioned I had no issues with the new error page showing up.
I am just confused why there is a need for the immediate redirection to the main forum page.

Michael
Reply With Quote
  #23  
Old 10-02-2012, 06:43 AM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by qpurser View Post
Thanks for the reply.
As mentioned I had no issues with the new error page showing up.
I am just confused why there is a need for the immediate redirection to the main forum page.

Michael
you have set that to your homepage which is why it will redirect to your homepage
Reply With Quote
  #24  
Old 10-16-2012, 07:56 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I totally forgot to comment on this mod It's awesome! Saved me the hassle of creating each page myself, thank you
Reply With Quote
  #25  
Old 10-16-2012, 08:35 PM
Naijasite's Avatar
Naijasite Naijasite is offline
 
Join Date: Mar 2012
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i like this mod but it dosen't work with my vbseo ..it still showed vbulletin default page
Reply With Quote
  #26  
Old 11-05-2012, 04:38 AM
gezuvor gezuvor is offline
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm working on this a bit more now. I updated to 4.2.0 PL2 and it's not functional, with or without vbSEO installed.

Will update as soon as I can get it running again!
Reply With Quote
  #27  
Old 11-23-2014, 03:10 PM
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any updates on this mod for 4.2.2 PL2

Reason I ask....

The pages display with the error, but on re-direct instead of going to my forum home it goes to:

https://www.toronto-subaru-club.com/forums/blogs/all/


How can I get it to go to: https://www.toronto-subaru-club.com/forums/forums.php


D.
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 06:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06532 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (2)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete