vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - vB Error Pages 1.0 (https://vborg.vbsupport.ru/showthread.php?t=132337)

Spikeman 11-23-2006 10:00 PM

vB Error Pages 1.0
 
This was requested here https://vborg.vbsupport.ru/showthread.php?t=131172

What Hack does:-

When a user receives an error message they will be served one of the appropriate error pages within your vBulletin site.

Why?

More often when a user hits an error message on a site they will hit the back button and leave, this way the user is already on your site and can navigate into your site.

Creates pages for 400, 401, 403, 404 & 500 error messages
Installation:-

Important your server must be able to support .htaccess file.

1. Unzip
2. Upload the contents of forum folder to your forum folder.
2. Add the contents of text file to your .htaccess file at the root of the server, you may need to edit and or rename the paths to suit your setup.
3. Import the product file.
4. You are done.

v1.0 - First Release

If you use it please install it

Spikeman 11-24-2006 05:52 AM

Reserved for additional content

This is an initial release more will be added to this including more error codes and more infomation on diplaying page.

AsianKid 11-24-2006 06:00 AM

First Install :)

projectego 11-24-2006 07:18 AM

Just what I was looking for... Thank you!

rsj1 11-24-2006 08:31 AM

Looks great!
*installs*

redlabour 11-24-2006 09:35 AM

Great thx !

But please use phrasing at next Update and/or a Way to change Messages via AdminCP.

MaestroX 11-24-2006 12:11 PM

This is great! Thanks for sharing

redlabour 11-24-2006 01:35 PM

Another Suggestion :

1. WOL Locations are missing

2. Phrases and/or customazible Messages through AdminCP Menu.

COBRAws 11-24-2006 01:35 PM

Quote:

Originally Posted by redlabour (Post 1124154)
Great thx !

But please use phrasing at next Update and/or a Way to change Messages via AdminCP.

That would be great.

Spikeman 11-24-2006 02:10 PM

Quote:

Originally Posted by redlabour (Post 1124228)
Another Suggestion :

1. WOL Locations are missing

2. Phrases and/or customazible Messages through AdminCP Menu.

WOL is in next update

Phrases will also be added

bashy 11-24-2006 03:18 PM

Hi

Could this be done for the database errors?

Gizmo5h1t3 11-24-2006 03:29 PM

am i missing something, or are the 2 demo pages showing errorsthat are unconnected to this hacks generated pages???

BWAHAHAHAHHA....how ironic is THAT?

akanevsky 11-24-2006 03:30 PM

Quote:

This Account Has Exceeded Its CPU Quota
lol. What a lame error message. And it's BlueHost once again (not the hack author's fault). That provider should be shut down.

Spikeman,
very nice hack. It would be even nicer if it used standard_error instead of separate pages.

TheBlackPoet 11-24-2006 03:39 PM

Quote:

Originally Posted by Psionic Vision (Post 1124291)
lol. What a lame error message. And it's BlueHost once again (not the hack author's fault). That provider should be shut down.

Spikeman,
very nice hack. It would be even nicer if it used standard_error instead of separate pages.

i use Bluehost.com also... and lately, i have been getting that same lame msg.. i figured out it was my shoutbox that was causing the error.. apparently, bluehost servers cant handle the load..and crashes... this was making my site look so bad... that i took the shoutbox out..... so far... no more crashes


oh.... and this hack.... is greatly appreciated.... it makes my site more uniform....now, even my errors are seamless

Spikeman 11-24-2006 03:40 PM

Quote:

Originally Posted by Psionic Vision (Post 1124291)
lol. What a lame error message. And it's BlueHost once again (not the hack author's fault). That provider should be shut down.

Tell me about it, I am trying to get it all moved now, how pathetic, 14 users and quota error, does not help that i got a load of script kiddies trying to exploit flashchat ;) but still bluehost are history with me!
Quote:

Spikeman,
very nice hack. It would be even nicer if it used standard_error instead of separate pages.
There are alot of changes been made for next release that will be one.

Spikeman 11-24-2006 03:42 PM

Quote:

Originally Posted by TheBlackPoet (Post 1124296)
i use Bluehost.com also... and lately, i have been getting that same lame msg.. i figured out it was my shoutbox that was causing the error.. apparently, bluehost servers cant handle the load..and crashes... this was making my site look so bad... that i took the shoutbox out..... so far... no more crashes

I have had the quota errors all week, never had one before, but enough is enough.

Quote:

oh.... and this hack.... is greatly appreciated.... it makes my site more uniform....now, even my errors are seamless
Glad you like it

Spikeman 11-24-2006 03:46 PM

Quote:

Originally Posted by projectego (Post 1124117)
Just what I was looking for... Thank you!

Quote:

Originally Posted by MaestroX (Post 1124201)
This is great! Thanks for sharing

Glad you like it, but hit the install guys this will be updated soon ;)

redlabour 11-24-2006 04:27 PM

I am glad that you will make the Changes. Thx ....

redlabour 11-24-2006 05:24 PM

Quote:

Originally Posted by redlabour (Post 1124335)
I am glad that you will make the Changes. Thx ....

Another Suggestion - is it possible to give a 301 back at 404 Errors to forum/index.php ?

Best was if this was changeable at AdminCP to forum/cmps_index.php for the ones that use vBadvanced.

Spikeman 11-24-2006 05:43 PM

Quote:

Originally Posted by redlabour (Post 1124365)
Another Suggestion - is it possible to give a 301 back at 404 Errors to forum/index.php ?

well, 301=moved permanently, auto redirect? I will look into that, i checked w3.org whilst I was writing the hack, and opted to leave out alot of codes for the reason of doing more research for compliance.
Quote:

w3.org. If 301 is received by a request other than GET or HEAD, the user agent MUST NOT automatically redirect unless confirmed by user, since this may change the conditions which request was issued.
That could bring in a 410(gone) if the server knows, through some internal configurable script that it has permantly unavailable and has no forwarding address...... and it goes on and on as you may know.... there are a few things to look into, but it will take some time I believe. I will get wol and phrases done first and then take it from there.

Quote:

Best was if this was changeable at AdminCP to forum/cmps_index.php for the ones that use vBadvanced.
Yes I think all of these will need to go through AdminCp so they can be turned on and off or as you say redirect for the vBa users on cmps_index.php

redlabour 11-24-2006 05:46 PM

Quote:

Originally Posted by Spikeman (Post 1124376)
well, 301=moved permanently, auto redirect? I will look into that, i checked w3.org whilst I was writing the hack, and opted to leave out alot of codes for the reason of doing more research for compliance. That could bring in a 410(gone) if the server knows, through some internal configurable script that it has permantly unavailable and has no forwarding address...... and it goes on and on as you may know.... there are a few things to look into, but it will take some time I believe. I will get wol and phrases done first and then take it from there.

Yes I think all of these will need to go through AdminCp so they can be turned on and off or as you say redirect for the vBa users on cmps_index.php

Great .... ;)

Genjuro-Sensei 11-24-2006 05:58 PM

How can i use this on host that not allow htaccess files ?

Thx !

Spikeman 11-24-2006 06:03 PM

Quote:

Originally Posted by Genjuro-Sensei (Post 1124381)
How can i use this on host that not allow htaccess files ?

Thx !

My apologies, I did forget to put in the header that you need .htaccess file. It is not posssible to run this hack without.

I presume you are on windows?

Snake 11-24-2006 06:09 PM

Thanks for this! :)

dilbert 11-24-2006 06:18 PM

Quote:

Originally Posted by Spikeman (Post 1124385)
I presume you are on windows?

Does this mean Windows folks can't run this mod?

Spikeman 11-24-2006 06:18 PM

Quote:

Originally Posted by redlabour (Post 1124365)
Another Suggestion - is it possible to give a 301 back at 404 Errors to forum/index.php ?

Thinking about this, it will need some db work for storage of urls on the redirect, input through acp for example.

redirect 301 /product.php to http://domain.com/productlist.php
redirect 301 /download.php to http://domain.com/downloadhacks.php

is this more what you had in mind?

Spikeman 11-24-2006 06:33 PM

Quote:

Originally Posted by dilbert (Post 1124394)
Does this mean Windows folks can't run this mod?

You can not run files on windows that start with a . so unfortunatly not.

However, I do know there is alot of talk about windows, apache and .htaccess on the net, but this is mainly down to password use. Maybe you can find a solution. try here this is a web host writing about windows and apache with .htaccess http://customersupport.websiteprovid...ials/htaccess/

Spikeman 11-24-2006 06:39 PM

Quote:

Originally Posted by bashy (Post 1124285)
Hi

Could this be done for the database errors?

vB already has database error reporting built in reported by email as you probably now, generally when you get a db error the only place you are going is refresh or back.:)

voteforbird 11-24-2006 07:08 PM

Hm? can't get it to work right. It shows properly for my root directory, ex:
http://www.volconvo.com/asdf
?but my forums directory still shows a plain "Page not found" message, ex:
http://www.volconvo.com/forums/asdf

Why is this?

bashy 11-24-2006 07:29 PM

Thats a shame, the standard db error page is pretty pants, would be better if it showed the error on a page inside the forum :(

Quote:

Originally Posted by Spikeman (Post 1124408)
vB already has database error reporting built in reported by email as you probably now, generally when you get a db error the only place you are going is refresh or back.:)


redlabour 11-24-2006 08:02 PM

Quote:

Originally Posted by Spikeman (Post 1124395)
Thinking about this, it will need some db work for storage of urls on the redirect, input through acp for example.

redirect 301 /product.php to http://domain.com/productlist.php
redirect 301 /download.php to http://domain.com/downloadhacks.php

is this more what you had in mind?

Yes ! :)

Spikeman 11-24-2006 08:08 PM

Quote:

Originally Posted by voteforbird (Post 1124423)
Hm? can't get it to work right. It shows properly for my root directory, ex:
http://www.volconvo.com/asdf
?but my forums directory still shows a plain "Page not found" message, ex:
http://www.volconvo.com/forums/asdf

Why is this?

Looking at you forum, i see that you are using vbseo, which rewrites the urls from php to html, is this interfering with the calling of the 404.php? Never used or looked at vbseo so i do not know if there are any settings to be changed? There is no reason I can see why this is not working as it works on you index page.

Yorixz 11-25-2006 08:59 AM

You can slap me if I'm getting this wrong, but when I enter some random url on your website the error returned is simply the default 'Not Found
The requested URL /forums/billie.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. ' is served to me, instead of a nice-looking page, hopefully you can help me understand that ;)

Spikeman 11-25-2006 09:20 AM

Quote:

Originally Posted by Yorixz (Post 1124713)
You can slap me if I'm getting this wrong, but when I enter some random url on your website the error returned is simply the default 'Not Found
The requested URL /forums/billie.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. ' is served to me, instead of a nice-looking page, hopefully you can help me understand that ;)

No this was all me, I have just spent the last 10hours moving servers from that joke company called bluehost and the only thing i forgot to do was put the .htaccess back in place :) but all is good now.

Yorixz 11-25-2006 09:25 AM

Quote:

Originally Posted by Spikeman (Post 1124721)
No this was all me, I have just spent the last 10hours moving servers from that joke company called bluehost and the only thing i forgot to do was put the .htaccess back in place :) but all is good now.

Allright, thanks. This indeed looks a lot better than the default errors, installed ;)

dcasux 11-27-2006 03:54 AM

Quote:

Originally Posted by Spikeman (Post 1124402)
You can not run files on windows that start with a . so unfortunatly not.

However, I do know there is alot of talk about windows, apache and .htaccess on the net, but this is mainly down to password use. Maybe you can find a solution. try here this is a web host writing about windows and apache with .htaccess http://customersupport.websiteprovid...ials/htaccess/

Hey Spikeman, you rawk!

Unfortunately, I'm in a WinBlows environment, so, alas, I cannot use this. How I wish I could!

Thanks for the great work! Keep it up!

redlabour 11-28-2006 08:45 PM

Quote:

Originally Posted by Spikeman (Post 1124439)
Looking at you forum, i see that you are using vbseo, which rewrites the urls from php to html, is this interfering with the calling of the 404.php? Never used or looked at vbseo so i do not know if there are any settings to be changed? There is no reason I can see why this is not working as it works on you index page.

Works with vBSEO !

hoangminh 11-29-2006 02:31 AM

Try: http://www.internetwatchers.co.uk/fo...est/billie.php and you'll find all link is incorrect.

This will helpfull for any resource that caused error under forum folder only, sub-folder will make it trouble

4yBak 11-30-2006 06:06 PM

Quote:

Originally Posted by hoangminh (Post 1127789)
Try: http://www.internetwatchers.co.uk/fo...est/billie.php and you'll find all link is incorrect.

This will helpfull for any resource that caused error under forum folder only, sub-folder will make it trouble

and see next:
HTML Code:

Warning: main(./global.php): failed to open stream: No such file or directory in /home/interne/public_html/forums/errorpages/404.php on line 26

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/interne/public_html/forums/errorpages/404.php on line 26


Spikeman 12-01-2006 12:48 AM

This error was generated as I installed vBSEO and it appears that it takes over the 404 errors, so i need to look in to that ;)


All times are GMT. The time now is 05:49 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
  • Page Generation 0.01476 seconds
  • Memory Usage 1,842KB
  • 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_html_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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