Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Add/Modify error page for beta.

Quote Reply
Add/Modify error page for beta.
I like how there is an error page if someone tries to add a link without selecting a category first. However, this error page also pops up when someone tries to modify a link from the homepage, which I don't think makes sense, especially with the following error message:

"Please first visit the category you wish to add your link to, then click on Add."

Is there an easy way to disable the error page for the modify.cgi script? I'll have a look myself, but if anyone could point it out, that would be great. =)

Thanks,



Rob Bartlett
AAA Internet Publishing, Inc.
http://www.AAAInternet.com
Quote Reply
Re: Add/Modify error page for beta. In reply to
I found this too.

I think you just need to change the error message passed to the error template at the begining of the scripts.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: Add/Modify error page for beta. In reply to
Yes, I will have to have a search for that. Although it is kind of awkward having to go to a category to modify a link. It might be nice if someone wanted to stay in the same category to allow the old listing info to be loaded into the form automatically via a search if it is loaded from the homepage.

But, a well written error message should definitely do the trick!

I just did a search and it looks like the error message is located in the languange.txt file.


Rob Bartlett
AAA Internet Publishing, Inc.
http://www.AAAInternet.com
Quote Reply
Re: Add/Modify error page for beta. In reply to
You can change the error message in two places.

1) the language file, you can change the actual text of the message

2) the calling routine:

error => Links::language('MODIFY_NOURL')

This would create a return value $results->{'error'} that contains the value of the Links::language('MODIFY_NOURL') string, for example.

This calls the language subroutine in the Links.pm file. It seems two parameters are passed in, but it only seems to read the first one $code and ignore the $url.

You can probably add error messages.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ