[jdev] web presence
Hal Rottenberg
halr9000 at gmail.com
Thu Mar 9 08:39:03 CST 2006
Like Florian, we've been using a script to do this for some time.
Edgar the Bot is written in PHP and it uses the class.jabber.PHP
library.
http://edgar.netflint.net
To do the opt-in thing you have to add the bot to your roster. Once
he knows your presence, you can build a URL and specify one of several
iconsets. This is explained in the howto:
http://edgar.netflint.net/howto.php
An example URL is:
http://edgar.netflint.net/status.php?jid=hal@jabber.rocks.cc&type=image&iconset=stellar
A page with several of these:
http://psi-im.org/authors
Anyway, I see two ways to do web presence:
1) a bot which has no direct interaction with a server aside from normal C2S.
Benefits: can use with any jabber server, no changes required on server
Drawbacks: requires user to authorize the bot, possible scaling
issues, especially if you hit karma limits (it takes many minutes for
Edgar to login and get the presence straight after a script restart)
2) a component or other built-in method which connects directly to a server
Benefits: better integration, scales with server
Drawbacks: requires server changes, only works with the server where
you install the component
--
Psi webmaster (http://psi-im.org)
im:hal at jabber.rocks.cc
http://halr9000.com
More information about the JDev
mailing list