if ($bbuserinfo['posts'] >= X) { $DB_site->query(" UPDATE user SET usergroupid='Y' WHERE userid='$bbuserinfo['userid'] }