vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Custom error-handler based on vBulletin templates (https://vborg.vbsupport.ru/showthread.php?t=65013)

AlexanderT 05-10-2004 09:00 PM

Custom error-handler based on vBulletin templates
 
What this hack does?
---------------------------

UPDATE: Improved instruction.txt, fixed for those who use external style sheets

This hack adds a custom error-handler to your site using the vBulletin template engine to display the appropriate errors (e.g. 404 File not Found, 403 Forbidden, etc).

Demo
-------
Go to my site and enter some non-existing url. E.g. Random 404 Error. Or try to access my /cgi-bin path to receive a 403 error.

What to do?
----------------
queries to run: 0
templates changed: 0
templates added: 1 (ERROR_SHELL)
files changed: 1 (.htaccess)
files added: 1 (error.php)

Time needed to install
----------------------------
< 5 mins

Boofo 05-11-2004 05:46 PM

Ahhh, a new toy for me to play with. Thank you very much, sir. ;)

[high]* Boofo clicks the install button continuously![/high]

sabret00the 05-11-2004 05:52 PM

beautiful :)

Intex 05-11-2004 06:28 PM

Nice work. I'll add to my install list :cool:.

Boofo 05-11-2004 06:39 PM

I'm having a strange problem with my style background not showing as well as the alt1 and alt2 variables. :(

Preech 05-11-2004 07:39 PM

I can't get this to work. I know it has something to do with how I'm doing the htaccess file.

FleaBag 05-11-2004 08:33 PM

Same here. When I install it every page get's a 500 error. Everything is in my root folder, I commented out the chmod line but to no avail.

Boofo 05-11-2004 08:38 PM

Quote:

Originally Posted by Boofo
I'm having a strange problem with my style background not showing as well as the alt1 and alt2 variables. :(

If the error.php file is accessed from my forums directory, it looks like it is supposed to. If it is accessed from my home page, that is where I have the problem with the background of my styles not showing and making the page look wierd. Anyone have any ideas how to fix this? ;)

Dankinit 05-11-2004 08:40 PM

You might want to take out custom code in that error.php and re-release it...

Also a side note to anybody installing it, if you haven't put absolute paths to your navbar links, you'll see they point to incorrect files.

Dankinit 05-11-2004 08:42 PM

Quote:

Originally Posted by Boofo
If the error.php file is accessed from my forums directory, it looks like it is supposed to. If it is accessed from my home page, that is where I have the problem with the background of my styles not showing and making the page look wierd. Anyone have any ideas how to fix this? ;)

Sounds like it's looking in the wrong place for the css file. I think i had to hack my board to give it an absolute path for the css file...can't remember though, it was awhile ago. ;)


All times are GMT. The time now is 02:26 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.02045 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)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