FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » member search fails in 2.7.4
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: member search fails in 2.7.4 [message #30610 is a reply to message #30379] Sat, 04 March 2006 19:38 Go to previous messageGo to previous message
Aonmaster is currently offline  Aonmaster   Russian Federation
Messages: 28
Registered: December 2003
Karma:
Junior Member
I found a reason.
MySQL 4.1.7, when given a query "LIKE 's%'" returned zero results.
I changed code to '%s%' and it worked.

Furthermore, I did a little code hack so that the User search would become case insensitive:
in fudforum_data/src/finduser.php.t:

if ($usr_login) {
// case sensitivity hack by MaximP
$usr_login1=strtoupper($usr_login);
$qry = 'UPPER(alias) LIKE '._esc(char_fix(htmlspecialchars(addcslashes('%'.$usr_login1.'%','\\')))).' AND';
// $qry = 'alias LIKE '._esc(char_fix(htmlspecialchars(addcslashes($usr_login.'%','\\')))).' AND';
} else {
$qry = '';
}
then don't forget to rebuild the theme.

Ilia, is it useful enough to be included into further versions?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SD: Invalid SMTP return code: 451 See http://pobox.com/~djb/docs/smtplf.html.
Next Topic: Collapsed/Compact/Open
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 11:32:24 GMT 2024

Total time taken to generate the page: 0.04086 seconds