Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Integrated HTTP Errors Details »»
Integrated HTTP Errors
Version: 1.2, by liamwli liamwli is offline
Developer Last Online: Dec 2019 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 09-16-2012 Last Update: 10-06-2012 Installs: 26
Additional Files Translations  
No support by the author.

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!

Download Now

File Type: zip Integrated-HTTP-Errors-1.2.zip (3.4 KB, 144 views)

Screenshots

File Type: jpg vbulletin.jpg (63.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
CrossWind

Comments
  #12  
Old 09-24-2012, 03:32 PM
liamwli liamwli is offline
 
Join Date: May 2012
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by simonhind View Post
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
Which basically what the modified htaccess file is

I, however, do not know how to use it with nginx. I have only ever used nginx once
Reply With Quote
  #13  
Old 09-24-2012, 04:57 PM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by liamwli View Post
Which basically what the modified htaccess file is

I, however, do not know how to use it with nginx. I have only ever used nginx once
Code:
error_page   401  =  /errors.php?do=401;
error_page   404  =  /errors.php?do=404;
error_page   403  =  /errors.php?do=403;
error_page   500  =  /errors.php?do=500;
for nginx
Reply With Quote
Благодарность от:
liamwli
  #14  
Old 10-07-2012, 10:53 AM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok lets see the changed

Integrated-HTTP-Errors-1.2.zip

1) license field & check URL added ( not needed )
this is a simple URL redirect script for http errors

2) link to your website ( branded option )
i think we would not want to show something like this on a redirect script to be honest it doesnt make it look professional

this mod has not been updated at all accept for 1 extra field entry and a license check URL

so its not worth the download for me
Reply With Quote
  #15  
Old 10-07-2012, 10:56 AM
liamwli liamwli is offline
 
Join Date: May 2012
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by simonhind View Post
ok lets see the changed

Integrated-HTTP-Errors-1.2.zip

1) license field & check URL added ( not needed )
this is a simple URL redirect script for http errors

2) link to your website ( branded option )
i think we would not want to show something like this on a redirect script to be honest it doesnt make it look professional

this mod has not been updated at all accept for 1 extra field entry and a license check URL

so its not worth the download for me
Which is why I said optional update.

TBH - It would have made sense to not send the update email, I know.
Reply With Quote
  #16  
Old 10-07-2012, 11:00 AM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by liamwli View Post
Which is why I said optional update.

TBH - It would have made sense to not send the update email, I know.
the problem with this is your licence url it informing you of all who has installed it
rather than the other way round

this option need to be active only if they enter a key
otherwise it breaches many laws

1) your website URL does not work http://liamwli.co.uk/
2) you need to have a policy on your website that indicate that you collect IP addresses from customers who download your mods, and why you collect them, due to this being a paid option and the fact you use a remote file to get Users IP address
Reply With Quote
  #17  
Old 10-07-2012, 11:05 AM
liamwli liamwli is offline
 
Join Date: May 2012
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by simonhind View Post
the problem with this is your licence url it informing you of all who has installed it
rather than the other way round

this option need to be active only if they enter a key
otherwise it breaches many laws

1) your website URL does not work http://liamwli.co.uk/
2) you need to have a policy on your website that indicate that you collect IP addresses from customers who download your mods, and why you collect them, due to this being a paid option and the fact you use a remote file to get Users IP address
It doesn't collect any IP addresses, actually.

If you really want to know how it works, check the extra plugin.

P.S

My URL does work
Reply With Quote
  #18  
Old 10-07-2012, 11:08 AM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by liamwli View Post
It doesn't collect any IP addresses, actually.

If you really want to know how it works, check the extra plugin.
yes it does i know it does

the second you install your product it called this

Code:
$url = 'http://liamwli.co.uk/liccheck.php';
$fields = array(
            'key' => urlencode($vbulletin->options['liam_bfkey']),
            'url' => urlencode($_SERVER['HTTP_HOST']),
        );
your licence key file will display a callback and show the Domain and URL and the licence key, i know this coz i use the same technique
Reply With Quote
  #19  
Old 10-07-2012, 11:26 AM
liamwli liamwli is offline
 
Join Date: May 2012
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by simonhind View Post
yes it does i know it does

the second you install your product it called this

Code:
$url = 'http://liamwli.co.uk/liccheck.php';
$fields = array(
            'key' => urlencode($vbulletin->options['liam_bfkey']),
            'url' => urlencode($_SERVER['HTTP_HOST']),
        );
your licence key file will display a callback and show the Domain and URL and the licence key, i know this coz i use the same technique
That code is only executed if the license key is set. If there is no key set, then that code isn't run.
Reply With Quote
  #20  
Old 10-07-2012, 11:51 AM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by liamwli View Post
That code is only executed if the license key is set. If there is no key set, then that code isn't run.
in which case you still need to inform your customer by law that this information is held by you, it must be shown on your website policy, if not it breaches laws
Reply With Quote
  #21  
Old 10-16-2012, 08:33 PM
Naijasite's Avatar
Naijasite Naijasite is offline
 
Join Date: Mar 2012
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its not working with my vbseo .It still showing me my default Vbulletin error page. www.naijafinder.com

i add this to my .htacess file
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

But still not working
Reply With Quote
Reply

Thread Tools

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:44 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.05052 seconds
  • Memory Usage 2,345KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (8)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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