[standards-jig] Web display of presence

Sami Haahtinen ressu at ressukka.net
Tue Sep 10 14:33:39 CDT 2002


On Tue, Sep 10, 2002 at 01:07:41PM +0100, Julian Bond wrote:
> 1) Some simple way of showing presence information on a website. This 
> would typically be a small two-state icon that reflects your current 
> presence. It would be coded in html something like
> <img src="http://myjabberserver/presence/myjid/small.gif">
> I guess this would either need to be added into the status.webhop.net 
> presence code or some standard extension to jabberd. I've suggested this 
> to the status.webhop.net but I didn't manage to convince him to do it.

this could be done in 2 ways, depending on your needs, wether you need a
dynamic or partly static method of doing this.

as you are referring to a .gif file you are thinking about partly static
way, where you have a component or a bot that collects the presence from
the users and alters the files accordingly. 

other way would be to fetch the data dynamically from the server, with
a script, that logs in to the server and fetches the current presence of
the user.

the first has been implemented in many ways.. one of them is b9Presence
(http://b9presence.black9.com). the second one has been done many many
times too, for one example try the PHPJabberClass Demos. (search for
phpjabberclass in jabberstudio.org)

> Right now I need a baby gif of about 15*15 to represent a Jabber JID I'm 
> sure there's a little light bulb somewhere but I haven't been able to 
> find one. Can anyone point me at one?

check the PHPJabberClass status demo images if those suit your needs,
they have been borrowed from the gabber project.

> To see examples of something similar to this, take a look at 
> http://www.ecademy.com I've implemented this for all the other IM 
> systems (although they don't all show live presence) but I'm stuck on 
> Jabber.

the difference between jabber and other IM systems is that jabber does
not have a common server which would maintain the presence for all
users, but it has been distributed to multiple servers and those servers
communicate with each other. 

you will need to set up a presence bot of your own or talk with some
server admin to use their presence system. (i don't think this is
required, but it would be polite =)

Sami

-- 
			  -< Sami Haahtinen >-
      -[ Notify immediately if you do not receive this message ]-
	-< 2209 3C53 D0FB 041C F7B1  F908 A9B6 F730 B83D 761C >-



More information about the Standards-JIG mailing list