<vb:if condition="$foruminfo['forumid'] == 50"> <!-- no ads--> <vb:else /> ad code here </vb:if>
<vb:if condition="$foruminfo['forumid'] != '50' AND $show['guest']"> ad code here </vb:if>