Mentions 2.0 — the @mention plugin, revived for PHP 8 and e107 v2

 Jimako    14 Jun 2026
 None    Admin area

mentions.jpg

Mentions turns usernames written with an `@` (like `@admin`) in comments, chatbox posts and forum posts into links to the matching user profile. It also pops up a username auto-completion list as you type `@`, and can notify mentioned users by e-mail.

Mentions turns usernames written with an @ (like @admin) in comments, chatbox posts and forum posts into links to the matching user profile. It also pops up a username auto-completion list as you type @, and can notify mentioned users by e-mail.

The original plugin by Arun S. Sekher (v1.6.4) had stopped working on modern setups — among other things it threw a fatal error on the admin page under PHP 8. We've adopted and updated it. Mentions 2.0 runs on PHP 7.4–8.4 and current e107 v2.

Highlights of this release

  • Security: the auto-complete endpoint is hardened — input length capped, values escaped with toDB(), LIKE wildcards neutralized, result count limited in SQL, and banned users excluded. Debug logging no longer writes plaintext usernames or e-mail content into a web-accessible folder; it is off by default and writes to the protected e107 system log when enabled.
  • Fixed the PHP 8 fatal error when opening the plugin admin page
  • Comment notifications now actually register (a string-vs-integer comparison meant the check was always false)
  • Event callbacks for chatbox, comment and forum converted to static entry points — were unreliable/fatal on PHP 8
  • Notification e-mail loop rewritten (no more skipped users or "undefined array key" warnings); PHP 8.1+ deprecations cleaned up

Tested on e107 Lite 2.4.0, in: chatbox, chatbox menu, forum quick answer, and comments.

Two limitations inherited from upstream: non-latin usernames are not matched by the parser, and an @word inside a forum title can affect the rest of the thread's rendering.

Get it

Install via GithubSync, or download directly from the repository:
https://github.com/Jimako-e107-plugins/e107-mentions-plugin

Thanks

Big thanks to Arun S. Sekher for the original Mentions plugin.


0 Comments

Account

Right Sidebar



  • Jimako
    Jimako  5 months ago

    Here is new chatbox plugin (not new, just updated and fixed)

  • Jimako
    Jimako  2 years ago

    @kreossino Hi, yes, everything is ok.

  • kreossino
    kreossino  2 years ago

    heyyy tutto ok????? ...!!!!

  • Jimako
    Jimako  2 years ago

    Thanks for testing. And next funny thing - I forgot to uninstall APOS plugin, so it still created welcome post for you in forum, but forum is not installed... Just a reminder to look at it.

  • Tgtje
    Tgtje  2 years ago

    @Jimako just info : 1st activ. mail not received (2 day wait), resend ok (20 seconds) wink .

  • Jimako
    Jimako  2 years ago

    test first message biglaugh confused

  • Jimako
    Jimako  3 years ago

    @Alex try this one: https://cookie-script.com/

  • Jimako
    Jimako  3 years ago

    In fact, I have never notice this because with WP plugin it is free. I will see what it does after free trial.

  • Alex
    Alex  3 years ago

    Well it's nice but 10 dollar a month for a business use pro domain... that costs more than the hosting frown

  • Jimako
    Jimako  3 years ago

    And yes, it works very nicely... I use it long time. Just first or second time used on e107 site.


Smart move on repo setup Using similar with langua [more ...]
Tgtje 2 years ago
Updated path where download this older version.
Jimako 2 years ago
Now I see that I need to fix comments layout for 2 [more ...]
Jimako 3 years ago
Thx Jimako, the website should look outdated, that [more ...]
Alex 3 years ago
Themes are next on list. I use it mainly for swit [more ...]
Jimako 4 years ago
Nice one J, so if i understand this right i could [more ...]
Alex 4 years ago

Jimako 1 week ago
kreossino 3 months ago
mr 4 months ago
gandsnut 5 months ago
hersul8007 6 months ago
Martin 1 year ago
belr 1 year ago
FloKysLo 1 year ago
Viktor 1 year ago
Allan 1 year ago