SMFHacks.com

Modifications/Themes => Modifications Talk => Topic started by: redpotato on January 17, 2011, 12:19:31 pm

Title: Searching in SMF with no searching words
Post by: redpotato on January 17, 2011, 12:19:31 pm
Hello,

I am trying to search by no search text which mean if I search by no search word, it should give me all.
I have modified file Search.php.
It actually has some other criteria that I have inserted.

if (!isset($search_params['search']) || $search_params['search'] == ''){
   //$context['search_errors']['invalid_search_string'] = true;
so it does not give me the error message but I don't think it does not give me correct information.

is there any part I need to modify?? to have correct search result information with no search word.

please give me some tips!

thanks!