$threadid=verifyid("thread",$threadid); $threadinfo=getthreadinfo($threadid);
if($threadinfo[forumid]==x and $bbuserinfo[posts]<y) show_nopermission;