{"id":535,"date":"2019-03-25T14:49:10","date_gmt":"2019-03-25T14:49:10","guid":{"rendered":"https:\/\/html5-chat.com\/blog\/?p=535"},"modified":"2022-09-05T10:21:52","modified_gmt":"2022-09-05T10:21:52","slug":"html5-chat-and-wowonder-script","status":"publish","type":"post","link":"https:\/\/html5-chat.com\/blog\/html5-chat-and-wowonder-script\/","title":{"rendered":"html5 chat and wowonder script"},"content":{"rendered":"<p>How to integrate html5 chat with social <a href=\"https:\/\/codecanyon.net\/item\/wowonder-the-ultimate-php-social-network-platform\/13785302\">wowonder<\/a> script ?<\/p>\n<p>Edit <strong>.htaccess<\/strong> and add that line<\/p>\n<pre>RewriteRule ^html5-chat$ index.php?link1=html5-chat [NC,QSA]<\/pre>\n<p>Edit <strong>index.php<\/strong> and add these lines<\/p>\n<pre>case 'html5-chat':\n    include('sources\/html5-chat.php');\n    break;<\/pre>\n<p>create sources\/html5-chat.php\u00a0 :<\/p>\n<pre>&lt;?php if (empty($wo['user'])) {\n    header(\"Location: \" . Wo_SeoLink('index.php?link1=welcome'));\n    exit();\n}\n$webmasterid = YOUR_WEBMASTERID;\n$password = 'YOUR_SCRIPT_CHAT_PASSWORD';\n$user = array(\n    'username'=&gt;$wo['user']['username'],\n    'image'=&gt;base64_encode($wo['user']['avatar']),\n    'gender'=&gt;$wo['user']['gender'],\n    'role'=&gt;($wo['user']['admin']==1)?'admin':'user',\n    'password'=&gt;$password\n);\n$encrypted = file_get_contents(\"https:\/\/html5-chat.com\/protect\/\".base64_encode(json_encode($user)));\n?&gt;\n&lt;!doctype html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;title&gt;Chat&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;script src=\"https:\/\/html5-chat.com\/script\/&lt;?=$webmasterid?&gt;\/&lt;?=$encrypted?&gt;\"&gt;&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n&lt;?php exit();?&gt;<\/pre>\n<p>Just change these 2 parameters:<\/p>\n<p><strong>YOUR_WEBMASTERID<\/strong> : your script webmasterid<\/p>\n<p><strong>YOUR_SCRIPT_CHAT_PASSWORD<\/strong> : your script password<\/p>\n<p>then navigate to : https:\/\/www.yoursite.com\/html5-chat.php<\/p>\n<p>Regards<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to integrate html5 chat with social wowonder script ? Edit .htaccess and add that line RewriteRule ^html5-chat$ index.php?link1=html5-chat [NC,QSA] Edit index.php and add these lines case &#8216;html5-chat&#8217;: include(&#8216;sources\/html5-chat.php&#8217;); break; create sources\/html5-chat.php\u00a0 : &lt;?php if (empty($wo[&#8216;user&#8217;])) { header(&#8220;Location: &#8221; . Wo_SeoLink(&#8216;index.php?link1=welcome&#8217;)); exit(); } $webmasterid = YOUR_WEBMASTERID; $password = &#8216;YOUR_SCRIPT_CHAT_PASSWORD&#8217;; $user = array( &#8216;username&#8217;=&gt;$wo[&#8216;user&#8217;][&#8216;username&#8217;], &#8216;image&#8217;=&gt;base64_encode($wo[&#8216;user&#8217;][&#8216;avatar&#8217;]), &#8216;gender&#8217;=&gt;$wo[&#8216;user&#8217;][&#8216;gender&#8217;], [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":539,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[133],"class_list":["post-535","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms","tag-wowonder"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/535","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=535"}],"version-history":[{"count":6,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/535\/revisions"}],"predecessor-version":[{"id":966,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/535\/revisions\/966"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media\/539"}],"wp:attachment":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media?parent=535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/categories?post=535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/tags?post=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}