you're welcome
you have to expand and repeat the inner if-clause:
PHP Code:
if (in_array($forumid,array(2,3,4))) {
$threadcount=$DB_site->query_first("SELECT COUNT(*) AS count FROM thread WHERE forumid=$forumid");
if($threadcount[count]>=50 and $forumid==2) show_nopermission();
else if($threadcount[count]>=150 and $forumid==3) show_nopermission();
else if($threadcount[count]>=20 and $forumid==4) show_nopermission();
}