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
How or where to find webmasterid and password ?
this is the essential data you get when you create an account !
Regards
account but where ?
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?
just take the “.php” away:
https://www.yoursite.com/html5-chat
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
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
Any progress regarding this.
Hi, if I enter the above codes into WoWonder, will everything get deleted whenever the developers release an update?
Regards.
Pl
404 error no matter what I do.
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 😀
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!?
awaiting the same solution
Do you need a php script to automate the connection to html5-chat using the wowonder login and profile? I i can provide you with the necessary files. This includes:
1. the index.php file
2. .htaccess file and nginx.conf file
3. the videochat.php file (which will connect your users to html5- chat with wowonder logins and profiles)
4. the stats.php and statsroom.php files, which let your visitors see who’s in the chat and in the living rooms.
Demo
https://my.cocochat.eu
https://my.cocochat.eu/sources/stats.php.php
https://my.cocochat.eu/sources/statsroom.php
i can Configure your html5-chat to suit your needs
Further information: [email protected]