hi, i have a problem with this chat on modx.
my page show me only that:
Chat loading ...
Please wait
and the ajax call generate an error, it try to call this url that not exist:
http://mysitename/document.parser.class.inc.php?id=47&pfc_ajax=1&f=loadChat
I think the correct url should be this:
http://mysitename/manager/includes/document.parser.class.inc.php?id=47&pfc_ajax=1&f=loadChat
but i tried all combinations on my snippet but the url never change...
i also try to watch the html code of the page with the chat and there is this code for include js:
<script type="text/javascript" src="../../assets/snippets/phpfreechat/data/public/js/compat.js"></script>
it should not be without the "../../" ?
this is my snippet:
<?php
/*
::::::::::::::::::::::::::::::::::::::::
Snippet name: PHPFreeChat
Short Desc: Allows PHP Free Chat (http://www.phpfreechat.net) to be used within MODx
Version: 1.0
Author: Al B
Date: 22nd January, 2007
::::::::::::::::::::::::::::::::::::::::
global $modx;
$snipPath = $modx->config["base_path"]."assets/snippets/";
include_once($snipPath . "phpfreechat/src/phpfreechat.class.php");
// You can configure PHP Free Chat by setting variables below. See the PHP Free Chat
// documentation for options.
$params = array();
$params["client_script_path"]="manager/includes/document.parser.class.inc.php";
$params["title"] = "Chat Room";
$params["refresh_delay"] = 2000; // 2000ms = 2s
$params["nick"] = "guest".rand(1,1000); // setup the intitial nickname
$params["isadmin"] = true; // just for debug ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$chat = new phpFreeChat( $params );
// register chat javascript and css
$modx->regClientStartupScript($chat->printJavascript());
$modx->regClientCSS($chat->printStyle());
return $chat->printChat();
?>
thank to all
and sorry for my english