I am pretty much a newbie here, so chances are I did something wrong and this is not a bug, but I did check all the documents and google the error message, to no avail.
The issue is that with frozen_nick = true I can not seem to connect more than one user, because the second user seems to first be connected under the nick of the first, and changing it fails. The debug log for this process is
- Code: Select all
handleResponse: nick-notallowed-MrBlue
handleResponse: connect-ko-MrGreen
handleResponse: nick-notallowed-MrBlue
sendRequest: /connect "MrGreen"
and the error message is
- Code: Select all
Chosen nickname is not allowed
I want to connect as MrGreen in this instance (from Safari), and MrBlue has been connected before (from Firefox). Cookies and caches have been cleared. In my testing environment (here the bare minimum page that produces the error) I am simulating dynamically generated pages by having two slightly different version of the same page on the server.
http://www.iqcicle.com/chat/chat_green.php (requested by FireFox on a Mac)
- Code: Select all
<?php
require_once "../phpFreeChat/src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"] = "Chat07"; // unique id for this chat
$params["isadmin"] = true; // for testing purposes, everyone is admin
$params["nick"] = "MrGreen"; // setup the intitial nickname
$params["frozen_nick"] = true; // do not allow to change the nickname
$params["dyn_params"] = array ("nick"); // just in case is matters; it does not
$params["debug"] = true; // activate debug console
$chat = new phpFreeChat($params);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>My Chat - #3</title>
<?php $chat->printJavascript(); ?>
<?php $chat->printStyle(); ?>
</head>
<body>
<?php $chat->printChat(); ?>
</body>
</html>
http://www.iqcicle.com/chat/chat_blue.php is almost the same, just the nick is different (this is requested by Safari on a Mac)
- Code: Select all
...
$params["nick"] = "MrBlue"; // setup the intitial nickname
...
Any help is much appreciated!!!