PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   changing the results message. (http://www.phpdig.net/forum/showthread.php?t=196)

jive 11-05-2003 08:14 AM

changing the results message.
 
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 11:36 AM

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!


All times are GMT -8. The time now is 02:22 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.