Customizing SMF > SMF Coding Discussion
Search in none English
(1/1)
A.M.A:
as mentioned here : http://www.simplemachines.org/community/index.php?topic=9474.0
there seems to be a problem with Search.
I've looked at Search.php to find some fix but could not. The only thing that I've played with is the 'strtolower' function, but even if omitted search will not work right.
Search works here with no problem!! I guess other languages are stored in here by Unicode numbers :-\
I guess there is a a bug in Search.template.php , the simple search has:
--- Code: ---<input type="text" name="search" value="', !empty($context['search_params']['search']) ? ' value="' . $context['search_params']['search'] . '"' : '', '" size="40" />
--- End code ---
while advance has:
--- Code: ---<input type="text" name="search"', !empty($context['search_params']['search']) ? ' value="' . $context['search_params']['search'] . '"' : '', ' size="40" />
--- End code ---
the later is the correct one! right?
[Unknown]:
Nope, no mistakes there.
This forum is running more recent code than Beta 4.1. I messed with the search function, so I probably fixed it.
-[Unknown]
A.M.A:
Thanks
I'll wait for the next beta.
Navigation
[0] Message Index
Go to full version