Skip to:
Content
Pages
Categories
Search
Top
Bottom

Auto-complete stopped working


  • mmcomber
    Participant

    @mmcomber

    Hello,

    My auto-complete (to a friend) on message composition stopped working. I have BuddyPress 1.1.3 and WPMU 2.8.6 (www.threesheetsnw.com)

    I can still send messages by responding to earlier messages. Group notification, invites and other functionality seems fine.

    I have replaced all the bp-messages files — no luck.

    Disabled plugins — no luck.

    Seems like the proper js is loading based on looking at the page source.

    With firebug, I get this inspecting the Send To box:

    <input id="send-to-input" class="send-to-input ac_input" type="text" name="send-to-input" autocomplete="off"/>

    Any ideas?

Viewing 10 replies - 1 through 10 (of 10 total)

  • mmcomber
    Participant

    @mmcomber

    Okay, update. I noted the problem above on my computer at my dayjob. At home, the functionality seems to work. Is it possible that my network at work is preventing the js from working?

    Which browsers did you test with?


    mmcomber
    Participant

    @mmcomber

    IE 7 at work and Firefox 3.0 at work; IE8 and Firefox 3.5 at home.


    haloid
    Participant

    @haloid

    Is there supposed to be an auto complete feature in messaging? (i.e. for friend’s names) If there is, it certainly does not work on my installation.


    haloid
    Participant

    @haloid

    My bad as I just realised it only applies for Friends, and yes it worked fine. Sorry, I don’t mean to hijack, but is there a chance of seeing this feature applicable for all members and not only friends? Or does that translate to making everyone friends with each other?


    Boone Gorges
    Keymaster

    @boonebgorges

    haloid – I wrote a plugin for group invitations that uses the same autocomplete code as the messaging system to allow group mods to invite any member to a group: https://wordpress.org/extend/plugins/invite-anyone/. So it’s definitely possible to extend BP to do what you’re asking. I haven’t looked at the code for messaging, but if it’s anything like the invite code, it’d be pretty easy to do. A quick glance at bp-messages.php makes it look like you could probably alter BP to do what you want it to do by finding the function messages_ajax_autocomplete_results in bp-messages.php, commenting out the code that populates $friends, and replacing it with a list of all site members (you could use exactly the code I use in the Invite Anyone plugin).

    Better still would be to build it into a plugin. Wouldn’t be too hard. If I get a chance in the next few weeks, I might take a look at it.


    haloid
    Participant

    @haloid

    @Boone Gorges. Thanks for that, it gets the excitement in me going. As a matter of fact, I already have your plugin installed. If I have the chance I’ll try and see if I can alter the codes as you’ve described and report the results here.

    But it would be great if you could have it as a plugin, because I know some people just wanted to eliminate the Friends feature on their BP sites and yet still being able to do exactly the same as if all the members are friends with each other. This is definitely the case when you have a real-life community with everyone knowing each other. Thanks again.


    abcde666
    Participant

    @erich73

    Hey Boone,

    many thanks for writing this plugin !

    Is there also a way for the Group-Admin to invite people from outside ?

    Please see this ticket:

    https://trac.buddypress.org/ticket/1498

    Thanks again !


    Boone Gorges
    Keymaster

    @boonebgorges

    Not yet, Erich, but it’s next on my list of things to add to this plugin.


    abcde666
    Participant

    @erich73

    Hey Boone,

    I am not sure, but I guess your plugin is already providing this feature as per my request above ?

    Many thanks !

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Auto-complete stopped working’ is closed to new replies.
Skip to toolbar