{"id":1124,"date":"2020-12-03T21:33:04","date_gmt":"2020-12-03T21:33:04","guid":{"rendered":"https:\/\/html5-chat.com\/blog\/?p=1124"},"modified":"2020-12-03T21:33:04","modified_gmt":"2020-12-03T21:33:04","slug":"how-to-add-html5-chat-into-vbulletin","status":"publish","type":"post","link":"https:\/\/html5-chat.com\/blog\/how-to-add-html5-chat-into-vbulletin\/","title":{"rendered":"How to add html5-chat into Vbulletin ?"},"content":{"rendered":"\n<p><strong>Vbulletin <\/strong>is a very popular forum system for your website.<br>Here are the steps to integrate Html5-cjat into vbulletin<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?php\n<em>session_start<\/em>();\nrequire_once('.\/global.php'); \n$user = array(\n   'id'      =>$vbulletin->userinfo['userid'],\n   'username' =>$vbulletin->userinfo['username'],\n   'gender'   =><em>strtolower<\/em>($vbulletin->userinfo['field5']),\n   'country'  =>$vbulletin->userinfo['field2'],\n   'birthday' =>$vbulletin->userinfo['birthday'],\n   'role'    =>$vbulletin->userinfo['usergroupid'],\n);\n\/\/die($user['role']);\nif ($vbulletin->userinfo['avatarrevision']>0) {\n   $user['image'] = \"https:\/\/exbb.redclouds.com\/customavatars\/avatar\".$vbulletin->userinfo['userid'].\"_\".$vbulletin->userinfo['avatarrevision'].\".gif\";\n}\n\n$encoded = file_get_contents(\"https:\/\/jwt.html5-chat.com\/protect\/\".base64_encode($json));\n<\/pre>\n\n\n\n<p>you inject that encoded string into your JS script<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;script src=\"https:\/\/html5-chat.com\/script\/&lt;?=<strong>webmasterid<\/strong>?&gt;\/&lt;?=$encoded?&gt;\"&gt;&lt;\/script&gt;<\/pre>\n\n\n\n<p>And that\u2019s ALL. You can read more about full JWT integration:<br><a href=\"https:\/\/html5-chat.com\/blog\/jwt-a-quicker-and-simpler-version-using-the-html5-service\/\">https:\/\/html5-chat.com\/blog\/jwt-a-quicker-and-simpler-version-using-the-html5-service\/<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vbulletin is a very popular forum system for your website.Here are the steps to integrate Html5-cjat into vbulletin &lt;?php session_start(); require_once(&#8216;.\/global.php&#8217;); $user = array( &#8216;id&#8217; =>$vbulletin->userinfo[&#8216;userid&#8217;], &#8216;username&#8217; =>$vbulletin->userinfo[&#8216;username&#8217;], &#8216;gender&#8217; =>strtolower($vbulletin->userinfo[&#8216;field5&#8217;]), &#8216;country&#8217; =>$vbulletin->userinfo[&#8216;field2&#8217;], &#8216;birthday&#8217; =>$vbulletin->userinfo[&#8216;birthday&#8217;], &#8216;role&#8217; =>$vbulletin->userinfo[&#8216;usergroupid&#8217;], ); \/\/die($user[&#8216;role&#8217;]); if ($vbulletin->userinfo[&#8216;avatarrevision&#8217;]>0) { $user[&#8216;image&#8217;] = &#8220;https:\/\/exbb.redclouds.com\/customavatars\/avatar&#8221;.$vbulletin->userinfo[&#8216;userid&#8217;].&#8221;_&#8221;.$vbulletin->userinfo[&#8216;avatarrevision&#8217;].&#8221;.gif&#8221;; } $encoded = file_get_contents(&#8220;https:\/\/jwt.html5-chat.com\/protect\/&#8221;.base64_encode($json)); you inject that encoded string into your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1130,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1124","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/1124","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=1124"}],"version-history":[{"count":3,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/1124\/revisions"}],"predecessor-version":[{"id":1129,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/1124\/revisions\/1129"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media\/1130"}],"wp:attachment":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media?parent=1124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/categories?post=1124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/tags?post=1124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}