Hello David,
the search function should only work if the search string has more than 2 signs. How can I do this?
Regards, Harry
Hello Harry,
You can prevent the search if the query is less than or equal to 2 characters quite easily. Near the top of search.php, look for the following code on line 12:
if ($q)
..and REPLACE this with:
if (strlen($q)>2)
Cheers, David.
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hello Harry,
You can prevent the search if the query is less than or equal to 2 characters quite easily. Near the top of search.php, look for the following code on line 12:
if ($q)
..and REPLACE this with:
if (strlen($q)>2)
Cheers,
David.