Searching for users just within username and display name
-
Hi,
When starting a message, and searching for a user to send to, I’m finding the results are too broad and bringing back the wrong users. This is because my users mention each other in their extended profile fields. Is there any way to restrict the members search to just search in the username and display name fields?
As far as I can tell, the whole process uses
BP_User_Query
and this doesn’t seem to provide a way to not search all the xprofile fields. Is there a way around this?I’ve tried adding a hook to
bp_members_suggestions_get_suggestions
but this is too late in the process as the results have already come back and been reduced to the first results found.Thanks,
Jemima
- The topic ‘Searching for users just within username and display name’ is closed to new replies.