Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Search is case senitive


Burt Adsit
Participant

@burtadsit

oldskoo1! Howdy partner.

Ok. in bp we have the ability to search blogs, groups and members.

/mu-plugins/bp-blogs/bp-blogs-classes.php search_blogs()

/mu-plugins/bp-groups/bp-groups-classes.php search_groups()

/mu-plugins/bp-friends/bp-friends-classes.php search_users()

In all cases you’ll probably have to uppercase or lowercase the search term $filter and the field(s) in the sql statement itself.

strtolower($filter) then something like:

WHERE LOWER(value) LIKE $filter

I don’t think I’ve ever used the bp search stuff. Thanks for finding this. :) I created a ticket on this: https://trac.buddypress.org/ticket/570

Search should be case insensitive.

Skip to toolbar