Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Support: Creating & Extending

Existing and new plugins/components and themes.

autocomplete on custom plugin (5 posts)

Started 8 months, 3 weeks ago by: amilius123

  • Profile picture of amilius123 amilius123 said 8 months, 3 weeks ago:

    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????
    Michal

  • Profile picture of socialj socialj said 8 months, 1 week ago:

    Hello Michal,
    I’ve the same issue. Did you solve it?
    Thanks
    Giuseppe

  • Profile picture of Travel-Junkie Travel-Junkie said 8 months, 1 week ago:

    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.

  • Profile picture of amilius123 amilius123 said 7 months ago:

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

  • Profile picture of Paul Gibbs Paul Gibbs said 7 months ago:

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