dopetalk
Technology => SMF Forum Code Modifications => Topic started by: Chip on January 04, 2016, 07:38:19 PM
-
http://custom.simplemachines.org/mods/index.php?mod=3860
installed and tested.
just add @username in a post to notify (tag) the user.
an email will be sent but you can disable that.
-
an example:
@Z
@andrew, msg_text
@DeadCat
@Griffin
-
Adds a new permission enabling membergroups to be granted permission to mention others.
now enabled for everyone
-
note: the membername is also selectable and takes you to their profile.
-
To accommodate @Z, i made a Javascript code change (courtesy of Simple Machines) in ./Themes/default/scripts/mentions.js
from:
if (query.length < 2)
to:
if (query.length < 1)
my first Javascript change ... note when implementing Javscript code modifications - clear the browser cache afterwards to reload the script because (this may help somebody else as novices like me (there must be others out there)) I have just learned that website scripts run in one of two places [source: http://www.codeconquest.com/website/client-side-vs-server-side/]:
JavaScript is an example of the client side (also called the front-end) and PHP is an example of the server side (also called the back-end).
The client of a website refers to the web browser that is viewing it. The server of a website is, of course, the server that hosts it
-
manual use:
[member=1675]andrew[/member]
-
Testing:
@smfadmin testing 1,2,3