anyone recommend a way to autocomplete usernames when using the 'mention' function in elgg?

i use the 'mentions' plugin on my site and no-one really understands how to use it intuitively. it would be much better if an autocomplete dropdown appeared in textboxes when the @ symbol is typed, just as wiretools currently allows within the wire's add box. does anyone know of a plugin that adds this feature to blog text, discussions and comments etc?

  • did you check the value of the hidden variable to make sure it actually is set to 'yes' and that there isn't some other weird JS issue?

    the AMD config hook that ismayil mentioned is listed in the documents' list of hooks as:

    config, amd
    Filter the AMD config for the requirejs library.
    so from that it sounds like it is possible to iterate through the AMD config and make changes to it in a useful way - though i haven't tested how to do that here.
  • did you check the value of the hidden variable to make sure it actually is set to 'yes'

    Of course I did.

    I have no idea how I can make use of the plugin hook here. It might help to have some example code to understand how this hook works exactly.

  • i just searched the entire sourcecode of my site for: 'config', 'amd'

    and found where the hook is triggered in getConfig(), plus where it is registered in ConfigTest.php, but those functions did not make it any clearer how to use the hook and it appears that this hook is not used in any of the plugins i have installed - so no examples that are any use.

  • You can pass data to AMD modules with server side AMD config hook.

    See #3 here: http://blog.novanet.no/4-strategies-for-passing-parameters-to-requirejs-modules/

    Also in the RequireJS docs, which I know aren't great.