nicht wirklich zusammen zu arbeiten.
Loggt sich ein User im Forum ein und geht dann in den AJAX Chat erhält er folgende Fehlermeldung:
Code: Alles auswählen
ChatBot: Fehler: Verbindungsstatus: 500
Code: Alles auswählen
ChatBot: Fehler: Verbindungsstatus: 500
Warning: Failed opening 'http://forum.mini-aussies.com/common.php' for inclusion (include_path='') in /.../lib/custom.php on line 18
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', '/phpBB3/chat/');
// Path to the chat directory (absolute path including the trailing slash):
define('AJAX_CHAT_PATH', 'http://huchinotte.km20116-01.keymachine.de/phpBB3/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.
Code: Alles auswählen
// Database connection values:
$config['dbConnection'] = array();
// Database hostname:
$config['dbConnection']['host'] = 'localhost';
// Database username:
$config['dbConnection']['user'] = 'xxxxx';
// Database password:
$config['dbConnection']['pass'] = 'xxxxx';
// Database name:
$config['dbConnection']['name'] = 'xxxx';
// Database type:
$config['dbConnection']['type'] = 'mysql';
// Database link:
$config['dbConnection']['link'] = null;
in lib/config.php sollte dies helfen:Speedway51 hat geschrieben:ich hätte gerne nur ein chat raum und nicht die ganzen bereiche aus dem forum.
Code: Alles auswählen
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(0);
ich muss mich korrigieren. Das funktioniert irgendwie nicht ;(Das machst du in der Methode getChannels() in lib/class/CustomChat.php:
Code:
// Default channel, public to everyone:
$this->_channels['Public'] = $this->_params['defaultChannelID'];
// Another channel, public to everyone:
$this->_channels['Another_channel'] = 101;
// And another channel, public to everyone:
$this->_channels['Another_channel_again'] = 102;
101 und 102 sind die Channel ID's, die eindeutig sein müssen (max. 1000000000).
hallo..plACEbo hat geschrieben:Hi,
in lib/config.php sollte dies helfen:Speedway51 hat geschrieben:ich hätte gerne nur ein chat raum und nicht die ganzen bereiche aus dem forum.mfgCode: Alles auswählen
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null: $config['limitChannelList'] = array(0);