[drupal-devel] [feature] show online/offline status in theme('username')

moshe weitzman drupal-devel at drupal.org
Sun Aug 21 01:05:52 UTC 2005


Issue status update for 
http://drupal.org/node/29281
Post a follow up: 
http://drupal.org/project/comments/add/29281

 Project:      Drupal
 Version:      cvs
 Component:    theme system
 Category:     feature requests
 Priority:     normal
 Assigned to:  moshe weitzman
 Reported by:  moshe weitzman
 Updated by:   moshe weitzman
 Status:       patch (code needs review)
 Attachment:   http://drupal.org/files/issues/online.patch (9.41 KB)

add css class such that a theme can put nice online/offline indicators
when showing a username link.


i made sure the relevant queries in node, user, and tracker modules
were passing the $user->access parameter which triggers the addition of
this css class.


no added quries or JOINS needed.much of this patch is just moving the
'inactivity timer' pref from the Who's Online block config page to the
main admin/settings/user page.


would be nice if someone contributed small graphics for online offline
and added these to drupal.css. this would enhance our default
presentation. i'd like for this patch not to wait on that, if possible.




moshe weitzman




More information about the drupal-devel mailing list