If you’re referring to this https://cloudup.com/cmbgottNhQf — yes, that particular autocomplete script is awful (the other at-mention auto-complete used elsewhere throughout a site are better). Sorry. 🙁
I am not sure what you want, however. This autocomplete script is added to the screen via the messages_autocomplete_init_jsblock
function. If you look at jquery.autocomplete.js, maybe there’s an option you could use, or initialize it differently.
A different, maybe better approach than the hell that is this 2007-era jquery.autocomplete.js script, is to replace it with the other autocomplete script we use throughout BuddyPress. I forget why we haven’t done it yet; it may just be a lack of time, or perhaps there’s some complexity I’m forgetting as I write this message.
— If this sounds interesting, let me introduce you to what we’re calling BP Nouveau — a replacement for the BP Classic set of templates. It’s not done yet for production use, but take a look at this specific function: https://github.com/buddypress/next-template-packs/blob/master/bp-templates/bp-nouveau/js/buddypress-messages.js#L524
I am 99% sure that unhooking messages_autocomplete_init_jsblock
and instead adding a copy of that JS function from BP Nouveau will switch over the auto-complete for the “Send Messages To” field. There may be further tweaks needed to make this work out-of-the-box, but it seems to work well in BP Nouveau, so dig arounds its CSS if something looks off.
Hope this helps
Thanks, I’ve never got hold of working with core functionalities and thus I have failed miserably with some technical matters. Given there’s a lot of undocumented but feature rich functionality in BuddyPress this puts me in no mans land.
I’m looking forward to BP-Nouveau for now I will work with what’s available and what you have written here.