Hi,
I want to change the access rule, that getting number of online users is available for everyone without login.
Is that possible?
The best thing would be, if I could also get the number without the HTML-Layout around it (raw).
Or do I have to create a small module for that?
Cheers,
Michael
mweibel wrote: getting number
getting number of online users is available for everyone without login.
Is that possible?
The best thing would be, if I could also get the number without the HTML-Layout around it (raw).
Some ways to do it:
A) lynx:
1. write a shell script that calls lynx or wget to visit the admin page and output to a html file
2. then parse the output to extract the values.
3. add script to cron.
4. publish file with apache or mod_http_fileserver
B) ejabberdctl
1+2. ejabberdctl connected_users_number > /tmp/stats.txt
3+4. same as A)
C) in a jabber connection:
<iq id='49:427559' type='get' to='localhost'> <query xmlns='http://jabber.org/protocol/stats'> <stat name='users/online'/> <query> <iq> <iq from='localhost' to='user1qweqwew@localhost/tka1' id='49:427559' type='result'> <query xmlns='http://jabber.org/protocol/stats'> <stat name='users/online' units='users' value='638'/> <query> <iq>Hi, I saw something with ACLs
Hi,
I saw something with ACLs in the webadmin source file. Could I also change those ACLs to be available for everyone via the config? Or is that just an internal API?
For the moment, I created a very lightweight plugin for it:
What do you think about this way?
mweibel wrote: I saw
I saw something with ACLs in the webadmin source file. Could I also change those ACLs to be available for everyone via the config? Or is that just an internal API?
The web admin pages may vary in newer versions, maybe to provide more information. If you don't want your users (or any other visitor) to access your current or any possible future content, then better to not grant free access to webadmin.
For the moment, I created a very lightweight plugin for it:
What do you think about this way?
That is a lot better than granting free access to webadmin. With your custom module you explicitly control what information to publish.