How can I say to all visitors that the admin is online. I mean if the admin is online all the visitors, registered and none registered, will see this words “hello the admin is online…talk with me”… ?
Thank you
How can I say to all visitors that the admin is online. I mean if the admin is online all the visitors, registered and none registered, will see this words “hello the admin is online…talk with me”… ?
Thank you
You must be logged in to post a comment.
This should get you started. I’ve used a timeout of 5 minutes to allow for time sitting idle on the website. You could improve the accuracy with a script (if the current user is the admin) & pinging an AJAX request every few minutes to update the
admin_last_seen
timestamp.And in use: