heres the fix for that
in global.php remove all the old code you added from this hack and do the following
Find:
PHP Code:
// parse css, header & footer ##################
and below it add:
PHP Code:
$viewcounter=$DB_site->query_first('SELECT COUNT(*) AS hits FROM counterplus');
$totalhits=number_format($viewcounter['hits']);
eval("\$hitbit .= \"".gettemplate('hitcounterplus_counter')."\";");
then find:
and above add
PHP Code:
if ($script='') {
$script=basename($PHP_SELF);
}
if ($bbuserinfo['userid']!=0) {
$DB_site->query("INSERT INTO counterplus (viewid,userid,username,dateline,script,action,ipaddress) VALUES (NULL,'$bbuserinfo[userid]','$bbuserinfo[username]',".time().",'".addslashes($script)."','$action','$REMOTE_ADDR')");
}
that should sort it out