PDA

View Full Version : How to put a particular users "online/offline dot" in a new place?


Conehead555
10-20-2010, 02:10 PM
That green light / no light next to the user name in posts, PMs, Friends list, etc.

I want to show if a particular user is online in a new place.

Just need a snip of code I can plug into FORUMHOME somewhere to make that user's 'on/off light' show up with the correct status for that user indicated.

I'm assuming this kind of thing is a no brainer for someone who knows what they're doing.

Thanks for reading.

Conehead555
10-21-2010, 02:59 PM
Someone???

IF
user:thisguy = online
<img src=on light>
ELSE
<img src=off light>

HELP!!!!

BirdOPrey5
10-23-2010, 12:24 AM
I don't think it's that easy because forumhome is outside a post, so you won't know what user is online or offline- it'a not like you give a function the username and it returns if they are online/offline... at least it doesn't work like that in a template- you'll need to write a plugin to get that info.

In the postbit the code is simply: {vb:raw post.onlinestatus}