Assuming you already have it installed and working, follow these steps:
1.- After line 80 of 'header.php' add:
<link rel="stylesheet" type="text/css" href="chat/css/shoutbox.css" />
2.- After line 39 of 'index.php' add:
$allow_guests = false;
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;
}
if(!$pun_user['is_guest'] && !$allow_guests)
{
?>
<div class="blocktable">
<h2>Shoutbox</h2>
<div class="box"><div class="inbox">
<?php echo getShoutBoxContent(); ?>
</div></div>
</div>
<?
}
Now, that may look a bit weird. To make it blend with PunBB do this:
1.- Replace the contents of 'chat/css/shoutbox.css' with: http://pastehtml.com/view/090710FrvUlEpn.txt
2.- Replace the contents of 'chat/lib/template/shoutbox.html' with: http://pastehtml.com/view/090710oXl9RDlD.txt
By the way, I disabled guest access to the shoutbox. To enable it, change '$allow_guests = false;' to ''$allow_guests = true;' on the chunk of code above.
Hope that helps