loveamit Posted April 20, 2014 Share Posted April 20, 2014 i am working on a proj i want that if someone else logged in then i want a dilog box should open for a while it shows the user is online and then dilog box dissappers after that please somebody help me.. Quote Link to comment https://forums.phpfreaks.com/topic/287900-online/ Share on other sites More sharing options...
ginerjm Posted April 20, 2014 Share Posted April 20, 2014 javascript perhaps? Quote Link to comment https://forums.phpfreaks.com/topic/287900-online/#findComment-1476771 Share on other sites More sharing options...
loveamit Posted April 20, 2014 Author Share Posted April 20, 2014 yes js and php plese help me or u cn say that how to reload different online user in a box Quote Link to comment https://forums.phpfreaks.com/topic/287900-online/#findComment-1476773 Share on other sites More sharing options...
kicken Posted April 20, 2014 Share Posted April 20, 2014 Whenever a user logs in, you'd record the time that they logged in at in your database. Then on your page you'd have a little JS that periodically queries the server for anyone who has logged in since the last check. If anyone meets that condition you'd send back their info and have your JS code show the dialog. Quote Link to comment https://forums.phpfreaks.com/topic/287900-online/#findComment-1476777 Share on other sites More sharing options...
loveamit Posted April 20, 2014 Author Share Posted April 20, 2014 i knw how to record the time but as u said use js truely i dnt knw after calculating time how to use js for getting info will u please elaborate Quote Link to comment https://forums.phpfreaks.com/topic/287900-online/#findComment-1476778 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.