I would like to call an online icon to show on user avatars to indicate if they are online or not, how can this be done?

Comments

dman’s picture

Status: Active » Closed (won't fix)

No.
Imagecache will generate the status once only, and retain that image from then on. For that reason it is inappropriate to use for realtime status. You don't really want to be rebuilding images each time either

What you do instead is generate both avatar images, then use code (theme code would do) to choose which one to use, based on status at the page build time

Try that.

Also, as I get so many requests for things like this that imagecache fundamentally will not do - but imageapi looks like it could be able to do - we really should start a new project for on the fly image generation . .. Some day

BeaPower’s picture

So what is the code for showing the two images of online status?

BeaPower’s picture

anyone?