Skip to:

autocomplete on custom plugin

  • hey everyone
    I wanned to do autocomplete in my own plugin which is more or less “compose message” -I coppied the form but to send message i used messages_new_message.
    id and name for input field is the same as in compose message thou it seems that autocomplete doesn’t work – it works only when im in compose message and have opened my plugin simultaneously on one page.
    What do I have to include in order to get autocomplete working with my plugin????

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Michal,
    I’ve the same issue. Did you solve it?



    You’ll have to enqueue the Javascript files in bp-messages/js/autocomplete and the css file in bp-messages/css/autocomplete. There’s also some inline JS that needs to be included, which you can find in bp-messages/bp-messages-cssjs.php.

    The file paths above are for BP 1.5. Not sure, but could be slightly different for lower versions.

    Thanks a lot ! ill try it out today – let you know if i managed to make it work

    Time permitting, i’m hoping to abstract this a bit in BuddyPress 1.6 (or 1.7, if I run out of time).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘autocomplete on custom plugin’ is closed to new replies.
Skip to toolbar