Hi,
I tryed to use this snippet but I always have this error :
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: unlink(/homepages/XX/d18XXXXXX/htdocs/assets/snippets/phpfreechat/src/../data/private/cache/pfcglobalconfig_c7019df98c3d8191006c7c575328d336) [function.unlink]: No such file or directory
Error type/ Nr.: Warning - 2
File: /homepages/XX/d18XXXXXX/htdocs/assets/snippets/phpfreechat/src/pfcglobalconfig.class.php
Line: 156
Line 156 source:
With this snippet :
require_once $modx->config['base_path']."/assets/snippets/phpfreechat/src/phpfreechat.class.php";
$params = array();
$params["nick"] = ($modx->getLoginUserID()) ? $modx->getLoginUserName() : "guest".rand(1,10); // setup the intitial nickname
//$params["language"] = "ru_RU"; // english by default
$params["clock"] = false; // true by default
$params["showwhosonline"] = false; // true by default
$params["showsmileys"] = false; // true by default
$params["title"] = "My Chat";
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$chat = new phpFreeChat( $params );
$js = $chat->printJavascript(1);
$st = $chat->printStyle(1);
$ch = $chat->printChat(1);
return $js.$st.$ch;
and /phpfreechat/data/public and /phpfreechat/data/private directories with CHMOD 777
I’m using phpfreechat-1.0-beta8 and MODx 0.9.5 RC3
If I test /phpfreechat/index.php or /phpfreechat/demo/demoXX... it’s working