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(
    '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

13 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

  4. Hi, if I enter the above codes into WoWonder, will everything get deleted whenever the developers release an update?

    Regards.

    Pl

  5. A little misstake in the above script.

    The rewrite rule in .htacces is:

    RewriteRule ^html5-chat$ index.php?link1=html5-chat [NC,QSA]

    Sow the link to the chat is: https://www.yoursite.com/html5-chat

    Without the “.php”.

    Now it works perfect with my wowonder. 😀

    You can put this link in the left menu. Search for it 😀

  6. I am usin this documentation , and I can login in chat from my wowonder script, but the issue is, I get just the desktop version, if I login from mobile phone I get the desktop version, not the mobile responsive theme.
    Any solution!?

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.