Brauche Hilfe beim einbau Shoutbox (Ajax Chat-Shoutbox)
Verfasst: 30.10.2007 13:40
Hallo Leute ich möchte mir gerne noch die Shoutbox installieren die es beim Chat gibt...nur weis ich ned wo das hier rein muss.... mein englisch ist doch mieserabel...LÖL
der Chat ist von hier: http://www.phpbb.com/community/viewtopi ... 0&t=551409
wäre nett wenn einer weis wo das hin muss oder mir sagen kann wie ich das genau machen muss...
stehe auf dem schlauch...
der Chat ist von hier: http://www.phpbb.com/community/viewtopi ... 0&t=551409
Code: Alles auswählen
Shoutbox:
=========
AJAX Chat is also usable as shoutbox - this is a short guide on how to set it up:
1. Chat initialization
----------------------
Put the following code fragment into your PHP script, before any output is sent to the browser:
<?php
// URL to the chat directory (relative or absolute URL including the trailing slash):
define('AJAX_CHAT_URL', 'http://example.org/path/to/chat/');
// Path to the chat directory (absolute path including the trailing slash):
define('AJAX_CHAT_PATH', '/document_root/path/to/chat/');
// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');
// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');
// Initialize the chat:
$ajaxChat = new CustomAJAXChatShoutBox();
?>
Remove the line which includes the custom libraries if they have already been included in your script.
2. Stylesheet inclusion
-----------------------
Put the link to the shoutbox stylesheet in the head section of your (X)HTML output:
<link rel="stylesheet" type="text/css" href="http://example.org/path/to/chat/css/shoutbox.css" title="AJAX Chat Shoutbox Style"/>
3. Shoutbox output
------------------
Display the shoutbox in the body section of your (X)HTML content using the following code fragment:
<div style="width:200px;"><?php echo $ajaxChat->getShoutBoxContent(); ?></div>
The surrounding (X)HTML content limits the width of the chat - the height is set in the shoutbox stylesheet.
stehe auf dem schlauch...