Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search is case senitive


  • oldskoo1
    Participant

    @oldskoo1

    Hello,

    I see the search in BP (the one in the header) is case sensitive. I would like to change it so it isn’t case sensitive.

    Does anyone know what file the search uses?

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)

  • 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.


    oldskoo1
    Participant

    @oldskoo1

    Thank you sir!


    Burt Adsit
    Participant

    @burtadsit

    bp can’t have case insensitive searches built into the core oldskoo1. unicode. Andy only fixed part of that ticket and I wondered why till just now. It occurred to me that we use unicode. Case conversions are language dependent. php up/low fns for strings trash unicode strings.

    You can do that kind of thing but bp can’t release something that doesn’t adhere to localization possibilities.


    oldskoo1
    Participant

    @oldskoo1

    No worries – the hack is easy enough :)

    Thanks for letting me know

    cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search is case senitive’ is closed to new replies.
Skip to toolbar