• 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

2 Seperate Chat Windows

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

Post a reply
1 post • Page 1 of 1

Postby harryZ » Thu Feb 11, 2010 7:32 am

Hello

I currently have the full installation installed at

www/u/phpfreechat-1.2/

I have a file at

www/u/chat.php

where the code for chat.php is

<?php
require_once "phpfreechat-1.2/src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"] = md5('test'); // used to identify the chat

$chat = new phpFreeChat($params);


?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
</head>

<body>
<?php $chat->printChat(); ?>

</body>
</html>

I have another file at

www/other/chat2.php

where chat2.php has code

<?php
require_once "../u/phpfreechat-1.2/src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"] = md5('test'); // used to identify the chat

$chat = new phpFreeChat($params);


?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
</head>

<body>
<?php $chat->printChat(); ?>

</body>
</html>

But for some reason, if I go to one page and the try to go to the other page in another browser, one of them will hang at the 'Chat Loading' screen and not load. And then eventually both will hang. I essentially want to have 2 windows in different folders connect to the same chat.

I took a look at the demos, and one of them looked promising, hardcoding the URLs, but none of my combinations seem to work. I'm not sure how the server vs client relationship works. I mean for admins to use the 'other/chat2.php' and customers to use the 'u/chat.php'. Would this mean chat2.php is the server and chat.php is the client? Do I have to load the server page first?

Do I just provide hard url paths to the core installation inside chat2.php and chat.php?

Thanks for your help!
harryZ
New member
 
Posts: 2
Joined: Thu Feb 11, 2010 7:21 am
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 6 guests

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