1:
<if(checkpermissions("can_rate_thread")==1 && $board['allowratings']==1 && !$thread['isvoted'])>
<if(checkpermissions("can_rate_thread")==1 && $board['allowratings']==1 && !$thread['isvoted'] && $threadstarter!=1)>