Advertisement:

Author Topic: @mention members  (Read 160519 times)

Online aegersz

  • Sophist Member
  • *****
  • Posts: 1,183
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: @mention members
« Reply #560 on: January 11, 2018, 04:38:23 PM »
i expect so as mentioning yourself makes no sense
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline thunderchld

  • Semi-Newbie
  • *
  • Posts: 47
Re: @mention members
« Reply #561 on: January 12, 2018, 08:50:18 AM »
I have a generic account we use for posting some items, and i'm able to @Mention myself. I mostly do it so people have a quick, while reading, button to press to complete the action I'm asking of them.

Online aegersz

  • Sophist Member
  • *****
  • Posts: 1,183
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: @mention members
« Reply #562 on: January 12, 2018, 07:50:27 PM »
you can mention yourself from the same logon ?

doesn't work for me.
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline icarus911

  • Newbie
  • *
  • Posts: 3
Re: @mention members
« Reply #563 on: January 12, 2018, 11:41:07 PM »
 :-[
8: Undefined index: mentions
File: /var/www/html/Sources/Admin.php
Line: 199

Anyone else have this error?

For anyone who cares I fixed this by adding im ./Sources/Admin.php


                  'mentions' => array($txt['mentions']),

after                   // Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
Not before like the parse for 2.0.15 suggest


Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: @mention members
« Reply #564 on: January 13, 2018, 04:10:25 PM »
For anyone looking, I solved the ' problem with a different change to that which was suggested earlier.

Specifically for me on a test 2.0.15 install with this mod, edit Mentions.php:
Code: (find) [Select]
$names = array_unique(array_map('trim', $names));
Code: (add after) [Select]
foreach ($names as $k => $v) {
$names[$k] = $smcFunc['htmlspecialchars']($v, ENT_QUOTES);
}

Someone with more energy than me might want to check if 2.1 has the same problem and whether the same fix is relevant (odds are pretty good, Dragooon wrote the mod and then made it a core feature later)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.