Hello,
I have been using PFC for a couple of years, but I keep having some recurrent problems.
First, the data:
PFC Version: 1.3
PHP Version: 5.2.17
Shared or Dedicated Hosting: dedicated (virtual server on pair.com)
Link to your website: Sorry, you need a login to enter
Are you able to reproduce the issue on the official demo: No
Parameters:
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["serverid"] = md5(__FILE__.$grupo); // calculate a unique id for this chat
$params["nick"] = iconv("ISO-8859-1", "UTF-8", $nick);
$params["max_nick_len"] = 35;
$params["title"] = "My own Chat";
// $params["frozen_nick"] = false;
$params["height"] = "323px";
$params["language"] = 'es_ES';
// $params["timeout"] = 1000*60*120;
if($nick=='Carlo Andreoli') $params['isadmin']=true;
$params['admins'] = array('Carlo' => 'pass_here');
$params["max_msg"] = 20;
$params["quit_on_closedwindow"] = true;
$params['output_encoding'] = 'ISO-8859-1';
$params["container_type"] = 'mysql';
$params["container_cfg_mysql_host"] = 'localhost';
$params["container_cfg_mysql_database"] = 'something_here';
$params["container_cfg_mysql_table"] = 'phpfreechat';
$params["container_cfg_mysql_username"] = 'user_32';
$params["container_cfg_mysql_password"] = 'dbpsw';
$chat = new phpFreeChat( $params );
1) First problem is that if someone exits or goes down, then he can't go into the chat again, because he gets the "Chosen nickname is not allowed" message. The others in the chat can see his nick in the list, as if he never left, and the admin can't even kick him. Is there anything that can be done to solve this situation, even as late as when it happens? Is there any parameter telling me if a nickname is already in use, so that if someone with the same nick tries to login I can modify by code his nick?
2) *Sometimes* people goes into the room and does not see the others, nor the others can see them. I verified that $params["serverid"] is the same for everybody.
3) In IE 8, the list of nicknames of people in the room doesn't show on the right like in FF, but it's on a layer on the left, over the nickname of the user. My screen is set at 1024x768.
4) Is the whole conversation logged anywhere? In the leafvalue field in the phpfreechat table I can find only some of the messages sent and some of the events that happened.
5) Why in the official demo there are so many emoticons and I have so few of them and so little?
6) I used the pre-index page trick to set a variable $_SESSION['grupo']=$_GET['grupo']. Then I put a header('location:index.php'); But then, in the index $_SESSION['grupo'] is empty (!) while the session elements set before are correct. Any idea what I do wrong?
Thank you in advance for your help and any hint you can give me. Regards;
Carlo.