Page 1 of 1

Displaying error messages

Posted: Tue Aug 10, 2004 10:42 am
by mjacobson
I would like to display to the user when they try to search for a term that is less than qminwordlen allowed. I see these messages in the vortex.log file and they are also included in html comment tags.

I really don't want to show all messages but I think this one would help users. Is there an easy way of doing this, or do I need to loop through all of the query terms looking for the the string length before the search is done?

Displaying error messages

Posted: Tue Aug 10, 2004 11:09 am
by mark
In the search script look for <a name=putmsg> . That's where messages are intercepted and can be handled. You'll see some similar to what you want. Just look for the text of the error you care about and print a message.