if ($bbuserinfo['userid'] == 0) { print_no_permission(); }
if ($bbuserinfo['userid'] == 0 and $forumid != X) { print_no_permission(); }