Hi!,
I installed Ajax Chat in a testing site wihout problem and it's working at:
http://mascahierro.es/chat/I tried to create a shoutbox and messages are shown but input field from the shoutbox does not work:
http://mascahierro.es/chateando.phpAll messages published from the chat at
http://mascahierro.es/chat/ are showed but there's no way to publish anything from the shoutbox.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<link href="chat/css/shoutbox.css" media="screen" type="text/css" rel="stylesheet">
</head>
<body>
<?php
function getShoutBoxContent() {
// URL to the chat directory:
if(!defined('AJAX_CHAT_URL')) {
define('AJAX_CHAT_URL', '
http://mascahierro.es/chat/');
}
// Path to the chat directory:
if(!defined('AJAX_CHAT_PATH')) {
define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
}
// Validate the path to the chat:
if(@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {
// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.php');
// Initialize the shoutbox:
$ajaxChat = new CustomAJAXChatShoutBox();
// Parse and return the shoutbox template content:
return $ajaxChat->getShoutBoxContent();
}
return null;
}
?>
<div style="width:400px;"><?php echo getShoutBoxContent(); ?></div>
</body>
</html>
Can you help about this. Is there something I'm missing?.
Thanks in advance,
Rafa