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 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
__________________ All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating. Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9) 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.
|
| |||
|
yeah...great mod
|
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Submit Antispam Addon v 0.1 | AnAlienHolakres3 | Pligg Modules | 24 | 11-23-2008 09:49 AM |
| invalid user when changing user name in 9.9.0 | yomimedia | Bug Report | 3 | 11-17-2008 01:57 AM |
| How do online user on sidebar with small avatar ? | flukenakrab | General Help | 0 | 08-12-2008 08:55 PM |
| Disable User and SpamkillUser and bugs. | sefs | General Help | 0 | 10-08-2007 08:43 AM |
| Suggestion: Friendlier urls for user page | revolver | General Help | 0 | 07-06-2007 12:44 PM |




Linear Mode

