I recently discovered PhpFreeChat and I'm trying to include it on my website. I can lunch the chat with the index.php included on the zip but not when I include it on my page. All the page of my site are included on the index and are selected with two GET parameters. My code come from the demo6_in_french.php file, but I only have the "Chat is loading... please wait". I initialize the chat with my other includes :
- Code: Select all
- $params["serverid"] = md5(__FILE__); // used to identify the chat
 $params["language"] = "fr_FR";
 $params["debug"] = true;
 $chat = new phpFreeChat($params);
In the header I call the methods printJavascript() and printStyle() and finally, I included this code on the body of my page :
- Code: Select all
- <?php
 $chat->printChat();
 
 if (isset($params["isadmin"]) && $params["isadmin"]) { ?>
 <p style="color:red;font-weight:bold;">Warning: because of "isadmin" parameter, everybody is admin.
 Please modify this script before using it on production servers !</p>
 <?php } ?>
I also do a var_dump of params and it only contains my own parameters, no other ones. Someone have an issue to make the chat working ?
Thanks for answering ^^.
PS : Sorry for the grammar mistakes, my english isn't fluent


