{"id":587,"date":"2019-07-18T22:05:13","date_gmt":"2019-07-18T22:05:13","guid":{"rendered":"https:\/\/html5-chat.com\/blog\/?p=587"},"modified":"2020-08-29T09:35:09","modified_gmt":"2020-08-29T09:35:09","slug":"oxwall-and-html5-chat-integration","status":"publish","type":"post","link":"https:\/\/html5-chat.com\/blog\/oxwall-and-html5-chat-integration\/","title":{"rendered":"Oxwall and html5-chat integration"},"content":{"rendered":"<h3>Official plugin<\/h3>\n<p>There is an official html5-chat plugin made by oxwall team (<strong>Skalfa LLC)<\/strong><\/p>\n<p><a href=\"https:\/\/developers.oxwall.com\/store\/item\/1554\">https:\/\/developers.oxwall.com\/store\/item\/1554<\/a><\/p>\n<p>which does the job.<\/p>\n<h3>How to make it full screen ?<\/h3>\n<p>This plugin embeds the chat into the\u00a0<!--?prettify linenums=true?--><\/p>\n<pre class=\"prettyprint\">&lt;div class=\"owc_content\"&gt;<\/pre>\n<p>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<\/p>\n<p>in <strong>\/ow_includes\/config.php<\/strong> change the OW_DEV_MODE to <strong>false<\/strong> (this allows to empty cache), after the manipulation, you will set it back to true<\/p>\n<pre>define('OW_DEV_MODE', true);<\/pre>\n<p>in <strong>\/ow_plugins\/html5-chat-com\/views\/controllers\/chat_index.html<\/strong> add these lines after<strong> {style}<\/strong><\/p>\n<pre>{style}\n\n.ow_content {\n    position: absolute;\n    top: 69px;\n    left: 0;\n    bottom: 0;\n    right: 0;\n    height: 100%!important;\n}\n\ndiv.ow_footer {\n    display:none;\n}<\/pre>\n<p>check it: if everything is ok, then set back the OW_DEV_MODE to false<\/p>\n<pre>define('OW_DEV_MODE', false);<\/pre>\n<p>To retrieve users roles in Oxwall, use:<\/p>\n<pre>$authService = BOL_AuthorizationService::getInstance();\n$roles = $authService-&gt;findUserRoleList($userId);<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>how to integrate html5-chat into oxwall CMS ?<\/p>\n","protected":false},"author":1,"featured_media":589,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[24,69],"class_list":["post-587","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms","tag-cms","tag-oxwall"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/comments?post=587"}],"version-history":[{"count":4,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":1069,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/587\/revisions\/1069"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media\/589"}],"wp:attachment":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media?parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/categories?post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/tags?post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}