Chciałbym dodatkowo umieścić chat w formie shoutbox'a, jednak już pierwsze informacje z instrukcji sprawiają, że nie wiem o co chodzi :/
W instrukcji jest napisane:
Gdzie konkretnie powinienem to wkleić? Do stylów czy jak? Nie jestem za bardzo ogarnięty w kwestii budowy phpBB a samo .php znam miernie i ta instrukcja za dużo mi nie mówi :/Add the following line to the stylesheet (CSS) of all pages displaying the shoutbox:
@import url("http://example.org/path/to/chat/css/shoutbox.css");
Replace http://example.org/path/to/chat/ with the URL to the chat.
Modify css/shoutbox.css to your liking.
Dalsza instrukcja to:
Gdzie dać ten fragment?Add the following function to your PHP code:
<?php
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;
}
?>
Make sure AJAX_CHAT_URL and AJAX_CHAT_PATH point to the chat directory.
I jak rozumiem ostatni fragment (poniżej) powinien trafić do "root/index.php"?
<div style="width:200px;"><?php echo getShoutBoxContent(); ?></div>