PDA

View Full Version : changing the results message.


jive
11-05-2003, 09:14 AM
hello, I have my search installed and it works great, I just have one problem. When I insert my search text box into my page, it also include the following phrase:

Please fill the search form field.

this is directly related to the <phpdig:result_message/> entry in the templates. Removing this, does remove the phrase above, however it also removes the results message after a search is performed (ex: Results 1-2, 2 total, on "pilot supplies" (0.11 seconds)

is there a way to remove the "Please fill the search form field." phrase without eliminating the result message after a search is performed.

I hope I made this clear...

druesome
11-05-2003, 12:36 PM
Sure thing!

Open up search_function.php and look for the line:

$result_message = phpdigMsg('no_query').'.';

That pertains to a line in a file inside the 'locales' folder,
en-language.php. Look for the line in that file:

'no_query' =>'Please fill the search form field',

and change/erase the words between the quotes as you please.

You may also just change in search_function.php:

$result_message = phpdigMsg('no_query').'.';

to:

$result_message = "";


Good luck!