still a little flaky here in determining who is actually online...I basically cloned the code Who's Online block which uses a threshold for testing "lastaccess" time. This module has it's own threshold (need to add to settings/config) Regardless - it seems to not be working too well.
I'm thinking of using the last time of actual IM actions (like sending a message, or starting a conversation) and maybe using the javascript polling to help determine who's really on line.
Comments
Comment #1
pahariwalla commentedI think it's actually working properly. It can be out of sync with the "Who's Online" Drupal core user block, but I'm pretty sure it's because the "timeout" parameter in that is fixed, whereas IM is configurable. This timeout is compared to the Sessions table entry for "Last Accessed". So you may see a user in the Friend Pricker after they've logged out, but the timeout period has not expired.
I don't know if there is a way to determine whether a user is actually logged in.
So I'm marking this one fixed.