Skip to:
Content
Pages
Categories
Search
Top
Bottom

autocomplete on custom plugin

  • Avatar of amilius123
    amilius123
    Member

    @amilius123

    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

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

    Avatar of Travel-Junkie
    Boris
    Participant

    @travel-junkie

    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.

    @Travel-Junkie
    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)

You must be logged in to reply to this topic.