vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Integrated HTTP Errors (https://vborg.vbsupport.ru/showthread.php?t=287936)

liamwli 09-16-2012 10:00 PM

Integrated HTTP Errors
 
1 Attachment(s)
I have made this nice mod :)

This mod will redirect users to a nicely vbulletin formatted error page if they encounter a http error.

It handles:
  • 401 errors
  • 403 errors
  • 404 errors
  • and 500 errors.

See the screenshot to see what I mean :)

This mod requires 2 files to be uploaded. PLEASE READ THE INCLUDED README FILE IN THE ZIP. IT CONTAINS IMPORTANT INSTALL INFO.

One file is a modified .htaccess file. This will need to be renamed after upload. Please remember to backup your old .htaccess file.

There is a screenie below :) (Look at the circled items)

Any issues, just reply to the thread :)

Please mark as installed and consider nominating, and thanks for reading!

liamwli 09-17-2012 05:55 PM

Reserved

ahobilam 09-18-2012 02:27 PM

Installed.
How to check it?
And
Is there a way to customize the error messages
with some graphics?

liamwli 09-18-2012 02:30 PM

Quote:

Originally Posted by ahobilam (Post 2366439)
Installed.
How to check it?
And
Is there a way to customize the error messages
with some graphics?

To check it just go to a non existent folder/page on your forum to get a 404 error.

The error messages are provided via phrases, just search in the phrase manager for the error text, and then you can use standard HTML to add images etc.

The {1} item in the phrase is the url the person tried to visit.

Adem GEN? 09-18-2012 10:00 PM

Installed, a nice mod, thanks

autoescala 09-19-2012 09:27 AM

works fine with vbseo ?
Regards

liamwli 09-20-2012 05:05 AM

Quote:

Originally Posted by autoescala (Post 2366640)
works fine with vbseo ?
Regards

It should do, although I haven't tested it with vbseo.

You may have to manually add the htaccess error documents to the vbseo htaccess file.

ahobilam 09-20-2012 01:53 PM

Quote:

Originally Posted by liamwli (Post 2366440)
To check it just go to a non existent folder/page on your forum to get a 404 error.

The error messages are provided via phrases, just search in the phrase manager for the error text, and then you can use standard HTML to add images etc.

The {1} item in the phrase is the url the person tried to visit.

Sir,
I am getting the error as below, I doubt this mod is working for me?
No more option is found in settings other than Active - Yes - No, I made it yes only.
https://vborg.vbsupport.ru/

liamwli 09-20-2012 02:24 PM

Quote:

Originally Posted by ahobilam (Post 2367006)
Sir,
I am getting the error as below, I doubt this mod is working for me?
No more option is found in settings other than Active - Yes - No, I made it yes only.
http://dl.dropbox.com/u/24348664/images/error.JPG

Please could you tell me the steps you took to get that? And did you rename the htacess file?

TheSupportForum 09-23-2012 06:30 PM

anyone that doesnt have this working ensure you just add

Code:

RewriteEngine on
ErrorDocument 401 /errors.php?do=401
ErrorDocument 404 /errors.php?do=404
ErrorDocument 403 /errors.php?do=403
ErrorDocument 500 /errors.php?do=500

to .htaccess

that it


All times are GMT. The time now is 03:55 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.01420 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete