Hello,
i'm coding own community portal and on the same server i've installed ejabberd.
Now, i would like to blend "online users in chat" to my homepage. Are there any simple
ideas ?
Regards
To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
Hello,
i'm coding own community portal and on the same server i've installed ejabberd.
Now, i would like to blend "online users in chat" to my homepage. Are there any simple
ideas ?
Regards
If you can execute a command
If you can execute a command line program and get the result using PHP, you can installmod_ctlextra and do command line queries like 'status-list status'.
It's also possible to implement that call onmod_xmlrpc , so you could make XML-RPC queries to ejabberd and get the response. If you are interested in that addition, tell me.
users status on web
If you can execute a command line program and get the result using PHP, you can installmod_ctlextra and do command line queries like 'status-list status'.
It's also possible to implement that call onmod_xmlrpc , so you could make XML-RPC queries to ejabberd and get the response. If you are interested in that addition, tell me.
i have the same problem and tried mod_ctlextra
it works good in command line, but when i put in crontab a script like:
"ejabberdctl ejabberd@node connected-users > some.file"
it doesn't worked (very strange!)
php shell functions i've disabled for security reasons.
next module is mod_presence:
everything in this module works good. But i don't like, that user must be registered to it, because i want to know status of all users.
(
sorry of my bad english)
on site http://ralphm.net i
on sitehttp://ralphm.net i found exactly what i want.
presence_monitor is a script, that connects to jabber-server like a simple users. And when someone changed status, it updates information in mysql (or any sql) table.
I've added this user to all users roster, using shared_roster module, to get status of all connected users.