[JDEV] Presence indicator for web page

Michael Brown michael at aurora.gen.nz
Fri Jul 19 09:52:43 CDT 2002


> I'd like to put a presence indicator on a web page (à la jeremie.com).
> Preferably this would be achieved by way of a PHP script. What is the best
> way to do this? Does anyone here have something like this that they're
> willing to share? Thanks!

I've been thinking about this, and I think the most efficient way is to
create an agent that you can subscribe to, that toggles an image file on a
webserver everytime it gets a presence packet from you.

This means that all you would have to do in any html that you want to
include a status indicator for, is link to the one image.  This simplifies
the web pages, and reduces the need for each page that you want to have your
status on - all you do is include the image - no additional scripts
required.  You can also include it is part of your email sig etc.  If you
want to be "invisible" to all websites, you just log off that agent.

Of course this means you must have access to a Jabber server that is also
running a webserver I guess...

Has anyone done anything similar?

Michael.




More information about the JDev mailing list