![]() |
Custom HTTP Error Pages
This is a re-write of a hack I made for vBulletin 2.x.
What this hack does is use vBulletin to generate HTTP error pages (such as the 404 - Not Found error). For those of you trying to get an all-vB-based-site, this addition will help complete your quest. Also for anyone who wants a nicer looking HTTP error message than the standard blah. Note: Your website needs to be on a server that uses a .htaccess file, a file located in your root public directory. This may only be servers using the Apache HTTP server, I'm not sure if any other HTTP server, like Microsoft IIS, uses that or not. Some more notes on this are included in the instructions.txt file. There are no vB files to modify. There is one file to upload, and one product to install, which will install several new templates and two plugins. The plugins are for Who's Online display. The templates contain the actual messages. No existing templates are modified. Special thanks to KirbyDE for showing me how to group templates using a plugin rather than a code modification. :) This hack has now been re-written to use phrases. If you have a previous version, here's what you can do to upgrade. 1. Upload the new httperror.php file. 2. Add the product-jjr512_httperr.xml, overwriting the existing. (All old non-used templates should be removed automatically. This version uses only two templates: HTTP_ERROR and http_error_bit.) |
Ive been waiting for somethign similar to this
thanks :) |
Quote:
Hook template_groups PHP Code:
Use phrases for the Text, so users can easily use it with other Languages too. |
wow, works great, i didnt make the file edit though
|
'e' should be a TYPE_UINT.
|
Quote:
Ok using your code above doesn't work. I have tested this and it doesn't group the templates. Thanks, Itworx4me |
Worked like a charm. Thanks :)
[high]* Omega Prime clicks Install[/high] |
It does work, just leave out the s I added accidently ;)
|
been waiting for this 3.5 port too
Thank you sir --EDiT-- Phrases please, that would be very nice. |
great work! i love it!!!
|
All times are GMT. The time now is 12:27 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|