You are here

Drupal: "who's online" not showing who's online

Updated 4 September 2012. Created by janroe 21 December 2011.

drupal core who's online
drupal core 6.22 and much earlier

Main function:
Should tell you who's online and who's not online.

Example function:
A block can be configured and it tells you the number of registered users and number of guests online. Registered users are listed with username.

Manage:
This is part of standard core, no need for modules. To activate:
Site building > Blocks > List > [Theme name]. Find the block "Who's online" under heading disabled blocks. Choose the location of the block in select box. Save blocks.

Configure the block. User activity: default = 30 sec. That seems short, I've increased it to 5 minutes. User list length: default 10. Custom title: you might want to change that to "Who's active"!

Issue:
The "Who's online" block does not show who is online !!!

Instead, it shows who is active. Someone can be logged in and currently not active so the user is shown to be not online. You'll notice that people (even yourself) will suddenly disappear from being online, even when you are logged into your own site. I would suggest for Drupal to align the proper wording to the correct behaviour, or offer a choice between both options, which are then presented with different words.

Suggestion:

"Who's online" = who's online = who's logged in + unauthenticated (guests)
"Who's active" = who's active

and not, as now, apparently:

"Who's online" = who's active

Other sources:
http://drupal.org/node/255156
http://drupal.org/node/138935

modifying, styling Who's Online

The h3 for "Online Users" is cumbersome. Also need to change the bullet list of users to horizontal listing. Some tips:
Drupal php and css: http://drupal.org/node/148911.
General override css for local.css: http://stackoverflow.com/questions/4200258/how-to-override-css-style-lis...