This code has to be part of a hack:
PHP Code:
if ($bbuserinfo['userid']!=0) {
if ($noshutdownfunc) {
$DB_site->query("UPDATE user SET views=views+1 WHERE userid='$bbuserinfo[userid]'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY user SET views=views+1 WHERE userid='$bbuserinfo[userid]'";
}
}
If you want to run that you need to add a views column to your user table. The alternative is to delete it or comment it out. The code above and below it is normal and will work.