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
  #2  
Old 04-11-2012, 06:18 AM
gezuvor gezuvor is offline
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved.
Reply With Quote
  #3  
Old 04-12-2012, 01:10 PM
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really interesting, Just downloaded but feel it is difficult to work with .htaccess. Will try this well I have more free time.
Thanks,
Reply With Quote
  #4  
Old 04-12-2012, 01:17 PM
Emeralda's Avatar
Emeralda Emeralda is offline
 
Join Date: Oct 2011
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I have to first create the .htaccess file, but I dunno how >.<
Reply With Quote
  #5  
Old 04-12-2012, 01:51 PM
gezuvor gezuvor is offline
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately, vBulletin does not have a built-in error capturing system, hence we have to rely on other internet technologies to solve this problem.

Working with .htaccess can be daunting to the uninitiated, but once you get the hang of it they are very powerful files.

There are lots of resources on the web that address .htaccess and a quick search will lead to any number of helpful tutorials.

I would offer to help further, but it's been sliced & diced 1,000 different ways already...
Reply With Quote
Благодарность от:
sweetpotato
  #6  
Old 04-14-2012, 02:33 PM
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use Vbulletin .htaccess file and added these lines:
Code:
ErrorDocument 400 /400.php
	ErrorDocument 401 /401.php
	ErrorDocument 403 /403.php
	ErrorDocument 404 /404.php
	ErrorDocument 500 /500.php
Just installed and see it works. I will report if these is any problem.
Thank you for the nice mod. Really useful because I don't want user to see some error such as database errors.
Reply With Quote
  #7  
Old 04-15-2012, 11:17 AM
Emeralda's Avatar
Emeralda Emeralda is offline
 
Join Date: Oct 2011
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is vBulletin's .htaccess file stored? I haven't found one myself >.<
Reply With Quote
  #8  
Old 04-15-2012, 11:23 AM
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the do_not_upload--->Rewrite--->Apache2
Reply With Quote
  #9  
Old 04-15-2012, 03:49 PM
Emeralda's Avatar
Emeralda Emeralda is offline
 
Join Date: Oct 2011
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And where do I later put it in?
Reply With Quote
  #10  
Old 04-15-2012, 04:40 PM
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In apache2 folder you will see .htaccess file. Just open it by notepad and copy and paste these lines at the end of .htaccess file:

Code:
        ErrorDocument 400 /400.php
	ErrorDocument 401 /401.php
	ErrorDocument 403 /403.php
	ErrorDocument 404 /404.php
	ErrorDocument 500 /500.php
Finally, upload the .htaccess to your forum root.
It works fine for me for the time being. I will report if there is any problem.
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 07:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05692 seconds
  • Memory Usage 2,328KB
  • Queries Executed 27 (?)
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_code
  • (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
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (6)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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