ich habe mir folgenden Chat installiert: https://blueimp.net/ajax
Jetzt wollte ich, wie beschrieben eine Shoutbox einbauen, dazu habe ich in meiner index_body.html ein Plätzchen für:
Code: Alles auswählen
<div style="width:200px;"><?php echo getShoutBoxContent(); ?></div>
Code: Alles auswählen
'SHOUTBOX' => getShoutBoxContent(),
Code: Alles auswählen
function getShoutBoxContent() {
// URL to the chat directory:
if(!defined('AJAX_CHAT_URL')) {
define('AJAX_CHAT_URL', './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;
}
Was mache ich falsch? Der Pfad des Chats ist: forum/chat
Der Chat selber funktioniert, nur eben die Shoutbox will sich einfach nicht anzeigen lassen. Wäre toll, wenn mir da wer helfen könnte. Danke schonmal.