For some reason this snippet crash IE but run fine in FF. Do you have any pointer on why that is? Thanks
echo "Calling phpFreeChat Snippet";
// Define default module path
//$modulePath = ’assets/modules/chat’;
$modulePath = ’../chat’;
// Include required file
require_once rtrim($modulePath, ’/’)."/src/phpfreechat.class.php";
// Define necessary parameters for phpFreeChat
$params = array();
$params["nick"] = "guest".rand(1,10); // setup the intitial nickname
$chat = new phpFreeChat($params);
// Outputing necessary html to the page
$modx->regClientStartupScript($chat->printJavascript(true), true);
$modx->regClientStartupScript($chat->printStyle(true), true);
$chat->printChat();