I think it would be kewl to display if a user is currently online, or logged into your site. Anyone have any idea how to do this? Maybe by using $user_lastlogin?
Thanks!
-bergs


![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| I think it would be kewl to display if a user is currently online, or logged into your site. Anyone have any idea how to do this? Maybe by using $user_lastlogin? Thanks! -bergs |
| ||||
| I haven't looked into this, but I wrote a function for a social net platform I created which compared their last "activity" date/time to the current date/time. By last activity, it means whenever they actually went to another page on the site. The problem with using the login date/time field is that not everyone actually clicks the Logout button. So essentially they'll remain "logged" in until they really log back in and that field is updated. The formula I used basically said if the difference in time was less than 5 minutes, they are "Online." If the difference is greater than 10 minutes they are "Idle." This Idle period continued up to 30 minutes like "Idle XX minutes." After 30 minutes, they were considered to be "Offline." In order to actively track them, there would need to be 2 additional fields added to the database and their record would need to be updated at every page request. I could possibly write something if a lot of users request it. I was thinking of writing it for a current pligg project we're working on, but its not high on my priority list. Best, Cent Last edited by cent; 03-09-2007 at 01:57 PM. |
| ||||
| Cent it would be great to see the Mod - waiting for this to be released. |
| |||
| I would also be interested in a mod like this. |
| ||||
| Great idea... I need this mod...I´m here for help. |
| |||
| Yes, this would be great! |
| ||||
| it can't suck... j/k - im sure this would be as well received as your other mods cent! |
| |||
| Oh, it would be great to have this mod. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Submit Antispam Addon v 0.1 | AnAlienHolakres3 | Free Modules | 36 | 12-29-2009 11:37 PM |
| Admin Panel for 1.0 and above | mismeflight | Wiki Articles | 0 | 03-04-2009 10:04 AM |
| invalid user when changing user name in 9.9.0 | yomimedia | Questions and Comments | 3 | 11-17-2008 01:57 AM |
| How do online user on sidebar with small avatar ? | flukenakrab | Questions and Comments | 0 | 08-12-2008 08:55 PM |
| Disable User and SpamkillUser and bugs. | sefs | Questions and Comments | 0 | 10-08-2007 08:43 AM |