wowonder

html5 chat and wowonder script

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 'html5-chat':
    include('sources/html5-chat.php');
    break;

 

create sources/html5-chat.php  :

 

<?php if (empty($wo['user'])) {
    header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
    exit();
}
$webmasterid = YOUR_WEBMASTERID;
$password = 'YOUR_SCRIPT_CHAT_PASSWORD';
$user = array(
    'id'=>$wo['user']['user_id'],
    'username'=>$wo['user']['username'],
    'image'=>base64_encode($wo['user']['avatar']),
    'gender'=>$wo['user']['gender'],
    'role'=>($wo['user']['admin']==1)?'admin':'user',
    'password'=>$password
);
$encrypted = file_get_contents("https://html5-chat.com/protect/".base64_encode(json_encode($user)));
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Chat</title>
</head>
<body>
    <script src="https://html5-chat.com/script/<?=$webmasterid?>/<?=$encrypted?>"></script>
</body>
</html>
<?php exit();?>

Just change these 2 parameters:

YOUR_WEBMASTERID : your script webmasterid

YOUR_SCRIPT_CHAT_PASSWORD : your script password

then navigate to : https://www.yoursite.com/html5-chat.php

Regards

7 thoughts to “html5 chat and wowonder script”

  1. How do we have the chat script link to their wowonder profile page?

    Also I followed the directions but when I go to mysite.com/html5-chat.php it returns a 404 page.

    If I go to mysite.com/?link1=html5-chat then the sources/html5-chat.php loads?

    Any suggestions?

  2. why not working

    Fatal error: Uncaught Error: Call to undefined function Wo_SeoLink() in /var/home/pintarin/public_html/html5-chat.php:2 Stack trace: #0 {main} thrown in /var/home/pintarin/public_html/html5-chat.php on line 2

  3. It doesn’t work and has syntax errors, I asked both support here and wowonder. The guys a wowonder and my dev friends said its a code issue on html5 chat. I asked support he told me to hire a free lancer. I thought this was supported. Also I made a webview app and can’t login

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.