Ich nutze das pbpbb3 in Version 3.0.4 zusammen mit dem Board 3 Portal. http://www.planet-phoenix.de/phpBB3/portal.php
Jetzt habe ich den Ajax Chat installiert https://blueimp.net/ajax/
Dieser funktioniert auch sehr gut nur ich hätte den Ajax Chat gerne im Portal in einen extra Block.
Eine Funktion um einen eigenen Block im Portal zu erstellen ist vorhanden.(in HTML oder BB CODE)
Nur mir wird die Shoutbox dann nicht angezeigt.
Eingegeben habe ich diesen Code:
Code: Alles auswählen
function getShoutBoxContent()
{
global $phpEx, $phpbb_root_path;
// Get the URL to the chat directory:
if (!defined('AJAX_CHAT_URL'))
{
define('AJAX_CHAT_URL', $phpbb_root_path . 'chat/');
}
// Get the real 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 shoutbox:
$ajaxChat = new CustomAJAXChatShoutBox();
// Parse and return the shoutbox template content:
return $ajaxChat->getShoutBoxContent();
}
return null;
}

Könnte mir jemand sagen wie ich das Problem lösen kann ?
Danke im vorraus.