PDA

View Full Version : Member just connected


gtacommunity
08-24-2017, 05:17 AM
Is there a way when a user logs onto the site that an admin or moderator can get a in forum pop up saying user (member name) just logged into the site (ip address)

Dave
08-24-2017, 11:21 AM
Yes that's possible. By doing something like:
1. When user logs in, insert entry into some table with info about who logged in.
2. When an admin/moderator is logged in, make them poll a script (using JavaScript) every few seconds that checks if new users logged in.
3. If any users logged in, return the result and read at the client side.
4. Show popup.

gtacommunity
08-26-2017, 02:05 AM
Yes that's possible. By doing something like:
1. When user logs in, insert entry into some table with info about who logged in.
2. When an admin/moderator is logged in, make them poll a script (using JavaScript) every few seconds that checks if new users logged in.
3. If any users logged in, return the result and read at the client side.
4. Show popup.



Gotcha.


Hey could someone possible point me in the right direction of how to get this accomplished or possibly make the code?