Jump to content

Rocket.Chat Online Users 1.6.1

   (1 review)

4 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.15.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

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.5.0   See changelog

Released

  • as of plugin version 1.5.0 the widget is build with ipb 4.5.0

 

 

 Share


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 review
×
×
  • Create New...