Advertisement:

Author Topic: @mention members  (Read 197587 times)

Offline moyack

  • Semi-Newbie
  • *
  • Posts: 64
  • Gender: Male
  • Bootstrap FTW!!
Re: @mention members
« Reply #620 on: May 03, 2020, 10:08:08 AM »
Hi:

I just found this small bug. In Mentions.english.php it's needed to add $scripturl global variable to avoid log errors.

Code: (find) [Select]
global $txt, $context;
Code: (replace) [Select]
global $txt, $context, $scripturl;

Offline Sectomy

  • Semi-Newbie
  • *
  • Posts: 88
Re: @mention members
« Reply #621 on: July 13, 2020, 08:18:35 AM »
hi,

i also have the Advanced Editor, in one thread theres a code you need to add to the mention mod, but i dont now where or which file, maybe anyone could help:

Code: [Select]
$('textarea[name=message]').add($('body.rich_editor', $('iframe#html_message').contents())).add($('body.advanced_editor', $('iframe#iframe_smfpacks_advanced_editor').contents())).add('#smfpacks_advanced_editor').atwho(mentions_config);

Offline North East Man

  • Semi-Newbie
  • *
  • Posts: 43
Re: @mention members
« Reply #622 on: September 30, 2020, 05:31:34 PM »
I realise this is no longer supported but does anyone know how to make the pop up suggestion list have more items on it.  It shows me 10 possible members but I have 5000 members and with popular names like John or Gill, it isn’t showing all the possible matches.

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 3,766
  • Gender: Male
  • Learning more every day!
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: @mention members
« Reply #623 on: September 30, 2020, 08:46:17 PM »
You should reduce the number of matches as you apply more characters and I am not sure if it impacts negative this however it should change in file ../Themes/default/scripts/mentions.js line 17 just in case do not use very large values.


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2020
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Offline North East Man

  • Semi-Newbie
  • *
  • Posts: 43
Re: @mention members
« Reply #624 on: October 01, 2020, 04:40:22 AM »
Hi Rock Lee,

Thanks for that pointer.  I have now changed that number to 25 so now have up to 25 suggestions on the list - not enough to cover the most popular name, but covers most members.  Just had to clear the browser cache After making the change.


Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 3,766
  • Gender: Male
  • Learning more every day!
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: @mention members
« Reply #625 on: October 01, 2020, 02:00:14 PM »
I was testing with a local website of mine and it could support up to 50 references, but without traffic and it is a small database, so depending on the type of host have up to 30 should work without problems. Sorry I forgot to mention the cache is something normal that many times does not allow you to see the modifications made.


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2020
Ayudas - Aportes - Tutoriales - Y mucho mas!!!