This is weird, I am upgrading to 3.0 on my live site and during uninstall I cannot remove this from my index.template.php without my index page crashing, this happens on the default theme and my custom theme. Any ideas? Thanks in advance.
Find
function getChatInterface() {
global $scripturl;
static $ajaxChat;
if (!$ajaxChat) {
// URL to the chat directory:
if (!defined('AJAX_CHAT_URL')) {
define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));
}
// Path to the chat directory:
if (!defined('AJAX_CHAT_PATH')) {
define('AJAX_CHAT_PATH', dirname(__FILE__) . '/../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 chat interface:
$ajaxChat = new CustomAJAXChatInterface();
}
}
return $ajaxChat;
}
function getShoutBoxContent()
{
global $scripturl;
// Get the URL to the chat directory:
if (!defined('AJAX_CHAT_URL'))
{
define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));
}
// Get the real path to the chat directory:
if (!defined('AJAX_CHAT_PATH'))
{
define('AJAX_CHAT_PATH', dirname(__FILE__) . '/../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;
}
function getChatOnlineUserIDs() {
return ($chatInterface = getChatInterface()) ? $chatInterface->getOnlineUserIDs() : array();
}
?>Replace with
?>
EDIT: I got it sorted, the Top Stats MOD was interfering with something.