• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Chat included on a page isn\'t loading

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
1 post • Page 1 of 1

Postby Trowa » Mon Jul 09, 2012 9:03 pm

Hi everyone,

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 ;)
Last edited by Trowa on Mon Jul 09, 2012 9:04 pm, edited 1 time in total.
Trowa
New member
 
Posts: 1
Joined: Sat Jul 07, 2012 7:00 pm
Top

Post a reply
1 post • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 27 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub