Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Nice bit of code for error.html...

Quote Reply
Nice bit of code for error.html...
Just thought I'd share this. Not sure how many people wanna use it... but I found it handy on my site (which uses mod_rewrite, so invalid categories are picked up via page.cgi).

Code:
<%if error contains 'seem to have a category'%>
<font color=green>Sorry, this category no longer
exists on our site. Please
<a href="<%build_root_url%>">click here</a>
to go to our main page.</font>
<BR><BR>
<%else%>
Oops, we had the following problem:<br><%error_font%><b><%error%></b></font></font>
<%endif%>

Basically, it lets you show a custom error message, if the error being reported looks like it's gonna show a "category not found" error.

Enjoy!

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Nice bit of code for error.html... Andy 1891 Sep 2, 2004, 6:01 AM
Thread Re: [Andy] Nice bit of code for error.html...
HyperTherm 1730 Sep 8, 2004, 1:36 AM
Post Re: [HyperTherm] Nice bit of code for error.html...
Andy 1748 Sep 8, 2004, 1:48 AM