Official plugin
There is an official html5-chat plugin made by oxwall team (Skalfa LLC)
https://developers.oxwall.com/store/item/1554
which does the job.
How to make it full screen ?
This plugin embeds the chat into the
<div class="owc_content">
and whose size can be too small for the chat. The idea would be to make it full screen (and just keep the header). For that you need to edit some files
in /ow_includes/config.php change the OW_DEV_MODE to false (this allows to empty cache), after the manipulation, you will set it back to true
define('OW_DEV_MODE', true);
in /ow_plugins/html5-chat-com/views/controllers/chat_index.html add these lines after {style}
{style} .ow_content { position: absolute; top: 69px; left: 0; bottom: 0; right: 0; height: 100%!important; } div.ow_footer { display:none; }
check it: if everything is ok, then set back the OW_DEV_MODE to false
define('OW_DEV_MODE', false);
To retrieve users roles in Oxwall, use:
$authService = BOL_AuthorizationService::getInstance(); $roles = $authService->findUserRoleList($userId);