Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
After February 6, this site will no longer have Facebook, Twitter, or OpenID sign-in options. Read our announcement about social media SSO support in 2.8 for more info.

Make sure you have a current, valid email address set in your profile and set a password so you can login without it. If you get locked out after that time, you can choose "Forgot Password" to fix it as long as a valid email is on your account.

Making mentionslookup work with mentions+

This discussion is related to the MentionsLookup addon.
AaronWebsteyAaronWebstey Headband AfficionadoCole Harbour, NS ✭✭✭

Just an FYI of what I did to get usernames with spaces working in mentionslookup.

  1. Install/configure mentions+ as per that plugin's instructions
  2. in mentionslookup::query.js, in a few places where I saw that the mention was getting inserted, I changed

'@'+mention+' '


'@"'+mention+'" '

This of course assumes you're using double-quotes as your mentions+ delimiter; you would have to change it based on how you set up mentions+. Hacky, but works (seems to be my motto around here - I just barely have time to put out fires, let alone work on plugins :( ).

I think in my version of mentions+ (0.12), I did this or something like it on lines 386 (inputCaretInsertMention) and 402 (frameCaretInsertMention). There may be other places I should be editing, but it seems to work so far.



Sign In or Register to comment.