Jump to content

Marketplace

Rocket.Chat Online Users 1.5.0

   (1 review)

3 Screenshots

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.

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.5.x
  • IPB: 4.5.x
  • PHP: 7.2.x

593549b4e36f0_Screenshot2017-06-0514_06_13.thumb.png.815a9cd2ae3acd1ceb1b8cd32075c0d6.png

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:

image.png.838ba34e32927f0a90dbd9c05293d42e.png

The widget is refreshed every 60 seconds.

Edited by ossipetz
updated versions and instructions


What's New in Version 1.2.9   See changelog

Released

Update logout API call to use POST instead of GET.

If you see a message like this in your Rocket.Chat logs:

Warning: Default logout via GET will be removed in Restivus v1.0. Use POST instead.
    See https://github.com/kahmali/meteor-restivus/issues/100

Please use 1.2.9 (or later) of this widget.

Tested with Rocket.Chat: 0.71.0

 


User Feedback

You may only provide a review once you have downloaded the file.


jmw253

   1 of 1 member found this review helpful 1 / 1 member

On 4.2.5 editing any setting causes the widget to crash a large chunk of Invision Community and have to disable plugin for forum to start working again:

Error: Class 'IPS\tfrocketchat\widgets\Exception' not found (0)
#0 C:\inetpub\wwwroot\applications\tfrocketchat\widgets\tfRocketChatWhosOnline.php(167): IPS\tfrocketchat\widgets\_tfRocketChatWhosOnline->readJsonFromUrl('https://chat.si...', Array, Array)
#1 C:\inetpub\wwwroot\system\Widget\Widget.php(731): IPS\tfrocketchat\widgets\_tfRocketChatWhosOnline->render()
#2 C:\inetpub\wwwroot\uploads\template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(14808): IPS\_Widget->__toString()
#3 C:\inetpub\wwwroot\system\Theme\SandboxedTemplate.php(56): IPS\Theme\Cache\class_core_front_global->widgetContainer('sidebar', 'vertical')
#4 C:\inetpub\wwwroot\uploads\template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(12460): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array)
#5 C:\inetpub\wwwroot\system\Theme\SandboxedTemplate.php(56): IPS\Theme\Cache\class_core_front_global->sidebar('right')
#6 C:\inetpub\wwwroot\uploads\template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(5420): IPS\Theme\_SandboxedTemplate->__call('sidebar', Array)
#7 C:\inetpub\wwwroot\system\Theme\SandboxedTemplate.php(56): IPS\Theme\Cache\class_core_front_global->globalTemplate('1fa89c086a6a3d0...', '\n<div class='ip...', Array)
#8 C:\inetpub\wwwroot\system\Dispatcher\Dispatcher.php(166): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#9 C:\inetpub\wwwroot\system\Dispatcher\Standard.php(103): IPS\_Dispatcher->finish()
#10 C:\inetpub\wwwroot\system\Dispatcher\Front.php(556): IPS\Dispatcher\_Standard->finish()
#11 C:\inetpub\wwwroot\system\Dispatcher\Dispatcher.php(148): IPS\Dispatcher\_Front->finish()
#12 C:\inetpub\wwwroot\index.php(12): IPS\_Dispatcher->run()
#13 {main}

Worked before 4.2.5, so wondering what's up?

Response from the author:

as of 1.2.2 this issue should have been gone. If it still occurs please try the latest version and let me know in the Support Topic.

Link to comment
×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy