I've coded up an FreeChat integration module for the PostNuke CMS. The basic process works (ie: the chat is intialized properly, looks OK and the buttons (control buttons + smilies) work). I can type in my chat message but when I submit it, it never shows up in the chat. Callin up phpFreeChat directly results in the working demo page(s).
The code which creates the chat is quite simple:
- Code: Select all
require_once ('modules/pnFreeChat/includes/phpFreeChat/src/phpfreechat.class.php');
$params = array();
$params['serverid'] = md5(__FILE__); // calculate a unique id for this chat
$params['title'] = 'Chat';
$params['language'] = 'en_US';
$params['nick'] = utf8_encode(pnUserGetVar('uname'));
$params['frozen_nick'] = true;
$chat = new phpFreeChat($params);
$pnRender = new pnRender('pnFreeChat', false);
$pnRender->assign ('chatJS', $chat->printJavascript(true));
$pnRender->assign ('chatStyle', $chat->printStyle (true));
$pnRender->assign ('chatBody', $chat->printChat(true));
return $pnRender->fetch('pnfreechat_user_view.html');
The resulting HTML page has the phpFreeChat JS and Style files correctly added to the page header and like I said above, everything *looks* ok.
Does anybody have any ideas what could be causing this?
Greetings/Thanks
R