first of chad please remove the file you can't post full vb files just don't want you to get in trouble

second find this:
PHP Code:
$gettotalpoint=mysql_query("SELECT uid, newthread, reply, admin_mod, morereply from storepoint where uid=$bbuserinfo[userid]");
replace it with this:
PHP Code:
$gettotalpoint = $DB_site->query_first("SELECT uid, newthread, reply, admin_mod, morereply FROM storepoint WHERE uid='$bbuserinfo[userid]'");
see if that works regards...
g-force2k2