How do you do this? I'm trying to display the user badges specifically next to the users who are online in the "Who's Online?" block of the user.module. Basically, I just want it to see who is online and then put the badges next to their names according to their user roles. Any ideas?
| Comment | File | Size | Author |
|---|---|---|---|
| screen_0.jpg | 212.83 KB | theunraveler |
Comments
Comment #1
heine commentedThis is more a question of adapting drupal, then an issue about the module. What you need to do is copy the functionality of the Who's online block. Easiest is to simply copy & adapt the code from user.module (line 545, user_block, case 3) into a php block for example.
You need to adapt the code from line 568:
into something like:
Comment #2
(not verified) commentedComment #3
BradM commentedCan anyone help with the code for drupal 5.x? This code doesn't work with this version.
I'd like to implement this but I think the code has change a bit... and I'm not much of a coder to begin with, so I've tried but can't figure it out.
Comment #4
heine commentedPlease open a new issue.
Comment #5
(not verified) commented