Displaying error messages

Post Reply
mjacobson
Posts: 204
Joined: Fri Feb 08, 2002 3:35 pm

Displaying error messages

Post 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?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Displaying error messages

Post 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.
Post Reply