Well, you can just leave the thread and not doube post. I too thought the issue was resolved.
That include code can go in functions.php, search for this:
if($settings['gzipoutput'] != "no")
{
$contents = gzipencode($contents, $settings['gziplevel']);
}
echo $contents;
And under it add:
include($DOCUMENT_ROOT.'/robotstats/robotstats.inc.php');
You will also have to edit:
global $db, $querytime, $debug, $templatecache, $templatelist, $htmldoctype, $mybb, $mybbuser, $maintimer, $globaltime, $settings, $mybbgroup;
[/coide]
Replacing it with:
[code] global $db, $querytime, $debug, $templatecache, $templatelist, $htmldoctype, $mybb, $mybbuser, $maintimer, $globaltime, $settings, $mybbgroup, $DOCUMENT_ROOT;
For that bit to work too