Version: 1.00, by AlexanderT
Developer Last Online: Jul 2021
Version: 3.0.0
Rating:
Released: 05-10-2004
Last Update: Never
Installs: 34
No support by the author.
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
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
Where would I have to give the path for that at? Do you remember?
What's wierd is that my home page doesn't have a problem with it.
Ok, I updated the hack with improved instruction. Please download again.
@Boofo: Error.php is now copied to your forums path; please re-download the hack. I assume you store CSS stylesheets as files, this is why it didn't work correctly for you.
@Preech/FleaBag: Check the new instruction. Perhaps you need to ask your webhost for assistance.
@Dankinit: Ok, I moved the custom error handling specific to my site to /example/. I included it first place to help people further customizing their error responses.
Ok, I updated the hack with improved instruction. Please download again.
@Boofo: Error.php is now copied to your forums path; please re-download the hack. I assume you store CSS stylesheets as files, this is why it didn't work correctly for you.
Greets
Alex
Didn't chnage anything. I still get the same thing on the home page. If I select NO for stylesheets as files, it works fine. But I like to have them as files.
Boofo did you read the new instruction? Earlier you said yourself that "if the error.php file is accessed from my forums directory, it looks like it is supposed to" ?!
Edit: Ahh I think i understand your problem now. I must think again if it is at all possible to support external style sheets like in your case then. Perhaps if you copy the style sheets to your root path, but that would be a pain. Lemme think about it.
Edit2: Could you add <base href="http://www.yoursite.com/yourforum/" /> to the <head> section of the ERROR_SHELL template and see if it does any difference?
Edit2: Could you add <base href="http://www.yoursite.com/yourforum/"> to the <head> section of the ERROR_SHELL template and see if it does any difference?
Greets
That fixed it! Thank you, sir.
Do I need to put a closing </base> anywhere with that?
That fixed it! Thank you, sir.
Do I need to put a closing </base> anywhere with that?
Cool. I have updated the instruction accordingly. <base> is an empty tag, or a standalone tag, that doesn't use a </base> endtag. The /> at the end is sufficient to make the code xhtml 1.0-valid.