Notification when my username is typed
-
@Arc took a vacation in a nice remote island. He asked me to say you don't need to worry about him. He won't be communicating much because there isn't Internet or phones there.
-
@candlejack said:
I would like a notification system, that alerts me whenever a user type my name. That should happen before the user clicks the submit button.
You'll have to be more specific. Do you want this to happen in the composer, in chat messages, anywhere on the site, etc... ?
Do you want the notification in the logs, email, your forum alerts, etc..?
-
@candlejack Notifications are almost near instant when you're still on the site. I really don't see the point of this (Infact, I got a notification while writing this post)
-
@candlejack It's definitely doable as a plugin.
You would create a socket event in the server code to send you a notification.
In the client script, you could use a generic jQuery selector to catch the input event of all editable fields and check the value against a regex, then fire the socket event if there is a match. It would notify you near instantly. Then set a boolean in the tag so it doesn't fire multiple times.
If you wanted to be really sneaky, you could add a timeout for a few seconds so that it sends the post/message they were typing, logs them out, and changes their email and password so they can't login.
Just saying.
-
Yikes. Why? Lol. I already have more than enough notifications from users who actually spend time writing proper posts and tagging me
-
With this idea in place, I could have spam notified 30 users in this post and nobody but those users would know about it
-
Oh, I knew about that the whole time. Still tempted to make it real for the lolz.