Phpbb3 display online chat users Fehler
Verfasst: 08.03.2013 22:17
Hey,
ich wollte diese Mod installieren: https://github.com/Frug/AJAX-Chat/wiki/ ... chat-users
Leider erhalte ich folgende Fehlermeldung nach dem Upload:
Dies entspricht dieser Funktion:
und dieser Zeile:
Ich habe die Snippets entsprechend der Anleitung eingebaut, außer bei dieser Anweisung:
Finde
Füge davor ein:
Wenn ich genau so einbaue erhalte ich ebenfalls eine Fehlermeldung... allerdings eine andere, also habe ich es wiefolgt eingebaut:
Finde:
Ersetze mit
Bin ich da auf dem richtigen Weg und bin ich jetzt völlig falsch...
Ich danke euch im Voraus für eure Hilfe.
LG
Andreas
ich wollte diese Mod installieren: https://github.com/Frug/AJAX-Chat/wiki/ ... chat-users
Leider erhalte ich folgende Fehlermeldung nach dem Upload:
Code: Alles auswählen
Fatal error: Call to undefined function getChatInterface() in /mnt/web8/b2/62/52909362/htdocs/aquarium-leipzig.de/includes/functions.php on line 5062
Code: Alles auswählen
function getChatOnlineUserIDs() {
return ($chatInterface = getChatInterface()) ? $chatInterface->getOnlineUserIDs() : array();
}
Code: Alles auswählen
return ($chatInterface = getChatInterface()) ? $chatInterface->getOnlineUserIDs() : array();
Finde
Code: Alles auswählen
? >
Code: Alles auswählen
if (!$ajaxChat) {
// URL to the chat directory:
if (!defined('AJAX_CHAT_URL')) {
define('AJAX_CHAT_URL', $phpbb_root_path . 'chat/');
}
// Path to the chat directory:
if (!defined('AJAX_CHAT_PATH')) {
if (empty($_SERVER['SCRIPT_FILENAME'])) {
$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'].$_SERVER['SCRIPT_URL'];
}
define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
}
// Validate the path to the chat:
if (@is_file(AJAX_CHAT_PATH.'lib/classes.'.$phpEx)) {
// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.'.$phpEx);
// Initialize the chat interface:
$ajaxChat = new CustomAJAXChatInterface();
}
}
return $ajaxChat;
}
function getChatOnlineUsers() {
$chatInterface = getChatInterface();
if($chatInterface) {
// Clean out any users who didn't log out properly by calling removeInactive()
// Not necessary but a good idea. You can take out this line if you want.
$chatInterface->removeInactive();
// Now get the online users:
return $chatInterface->getOnlineUsers();
}
else {
return array();
}
}
function getChatOnlineUserIDs() {
return ($chatInterface = getChatInterface()) ? $chatInterface->getOnlineUserIDs() : array();
}
Finde:
Code: Alles auswählen
return;
}
?>
Code: Alles auswählen
if (!$ajaxChat) {
// URL to the chat directory:
if (!defined('AJAX_CHAT_URL')) {
define('AJAX_CHAT_URL', $phpbb_root_path . 'chat/');
}
// Path to the chat directory:
if (!defined('AJAX_CHAT_PATH')) {
if (empty($_SERVER['SCRIPT_FILENAME'])) {
$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'].$_SERVER['SCRIPT_URL'];
}
define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
}
// Validate the path to the chat:
if (@is_file(AJAX_CHAT_PATH.'lib/classes.'.$phpEx)) {
// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.'.$phpEx);
// Initialize the chat interface:
$ajaxChat = new CustomAJAXChatInterface();
}
}
return $ajaxChat;
}
function getChatOnlineUsers() {
$chatInterface = getChatInterface();
if($chatInterface) {
// Clean out any users who didn't log out properly by calling removeInactive()
// Not necessary but a good idea. You can take out this line if you want.
$chatInterface->removeInactive();
// Now get the online users:
return $chatInterface->getOnlineUsers();
}
else {
return array();
}
}
?>
Ich danke euch im Voraus für eure Hilfe.
LG
Andreas