Small Widget to show a list of online users on a Rocket.Chat server.
Intended to be used along with the OAuth capabilities (like the one integrated or the OAuth Server application) that allows to login in a Rocket.Chat server using the forum credentials. This way the member-names can be matched and the widget can show member details from the forum.
Note: please have a look at the Support-Topic. We are looking for someone to continue to develop this widget, as we have switched to another chat solution and cannot properly do this anymore.
Instructions:
-
as of IPB 4.5 use the marketplace integration to install the application
- or download the .tar file and upload into the Applications in your AdminCP
- use the block edit mode to add the new widget, use the edit button to add the rocket.chat server url (no / at the end!) and a user that can access the REST API
The latest version of the widget was tested with
- Rocket.Chat up to 3.18.1 (not tested with 4.x)
- IPB 4.5.x & IPB 4.6.x
- PHP 7.3.x for IPB 4.5.x & PHP 7.4 for IPB 4.6.x
The rocket.chat username in this scenario will match the member name in the forum, so some nice profile links are possible.
If you configure a channel name for the widget and that channel has an announcement it will be shown in the widget too above the users list:
The widget is refreshed every 60 seconds.
Edited by ossipetz
Note added
What's New in Version 1.2.8 See changelog
Released
Fixed an issue where the user specified in the widget for the REST API calls would fill up with "authTokens" in mongodb.
If the widget behaves very slow you can empty the authTokens for that user (or maybe delete / recreate it?) in the users collection:
"resume": { "loginTokens": [] }
(I have used mongo-express to connect to the rockat.chat mongodb instance)
- Issues or Suggestions: support topic.
- Sources: GitHub.