您在這裡

聊天室phpfreechat

Drupaler's 的頭像
Drupaler (未驗證) 在 2007-06-08 (週五) 01:21 發表

我的會出現錯誤
等一下po錯誤訊息

I believe I have a fix for this problem. Go to the pfcglobalconfig.class.php file in sites/all/modules/phpfreechat/phpfreechat/src/. This is where the serverid is set - clearly it has not been set in the params["serverid"] array so set it needs to be set manually as follows:
找到params["serverid"] ,
大約在147 行
將:
<?php // check the serverid is really defined
if (!isset($params["serverid"]))
$this->errors[] = _pfc("'%s' parameter is mandatory by default use '%s' value", "serverid", "md5(__FILE__)");
$this->serverid = $params["serverid"];
?>// check the serverid is really defined
改成
<?php if (!isset($params["serverid"])){
//$this->errors[] = _pfc("'%s' parameter is mandatory -- so using default: '%s' value", "serverid", "md5(__FILE__)");
$params["serverid"]= md5(__FILE__);
$this->serverid =$params["serverid"];
}
else
$this->serverid = $params["serverid"];
?>

The above is a code fragment that replaces the equivalent lines in the file. You then need to go to each content type and enable it for chat as required. I have noticed that it all works very well with IE 6 but Firefox (latest) seems to have a number of issues that need fixing e.g. excessive ajax posts from the xajax.js script ; BOLD is not working properly for chat data and a flickering logo on hover. The latter need some more investigation. In IE the results are great and many thanks to those who developed this code.

##########
http://www.micfeng.com
新聞大聯播
#########