https://github.com/candy-chat/mod_onlineusers
Displays the number of onlineusers on ejabberd
https://github.com/candy-chat/mod_onlineusers
Last synced: over 1 year ago
JSON representation
Displays the number of onlineusers on ejabberd
- Host: GitHub
- URL: https://github.com/candy-chat/mod_onlineusers
- Owner: candy-chat
- License: mit
- Archived: true
- Created: 2011-08-16T14:50:44.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-10-05T14:39:08.000Z (almost 15 years ago)
- Last Synced: 2025-02-16T15:15:13.306Z (over 1 year ago)
- Language: Erlang
- Homepage:
- Size: 89.8 KB
- Stars: 8
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mod_onlineusers
===============
Displays the number of online users via the http interface of ejabberd.
* To compile, clone it to the ejabberd-modules folder you checked out from [svn](http://www.ejabberd.im/ejabberd-modules) and call `./build.sh` (ignore the warning regarding LocalPath).
* After that, copy ebin/mod_onlineusers.ebin to your ebin folder of ejabberd.
* Then, edit ejabberd.cfg and add the following to your modules config: `{mod_onlineusers, []}`.
* Also in ejabberd.cfg, add to your http-listen configuration the following: `{request_handlers, [{["onlineusers"], mod_onlineusers}]}`
* Restart ejabberd
Usage
-----
Go to (http://example.com:5280/onlineusers) to see your currently online users. (Change *example.com* to your server & *5280* to your ejabberd http port).
**Be aware:** I just did it because I didn't find a better way to do it via a standard module from ejabberd. There may be bugs and there may be a better way to achieve it.