Making autocomplete work for all users
We have a very small member base (160 users) and we all know each other in the real world. As such, “Friends” doesn’t do much for us. All it does is allow you to filter your stream and autocomplete names when composing a private message. Since we only have 160 users and we all know each other, if would be great if autocomplete worked for ALL members… not just your the people on your friend list. I know you can type the username and it will work… but then you have to remember or look up usernames. And there’s no feedback that you remembered and typed the name correctly. I’d like to fix that.
The autocomplete code starts at line 539 in /buddypress/bp-themes/bp-default/_inc/ajax.php. On line 547 you see that a local $friends variable is declared and uses an existing function (friends_search_friends()) to populate this variable with an array of all your friends. It should be a simple matter of setting $friends to be an array of ALL users rather than just your friends, but I can’t figure it out. Does anyone have any ideas? I’m sure this would be useful for any site with a small user base.
- The topic ‘Making autocomplete work for all users’ is closed to new replies.