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).
<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!
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!