This is how I was intending the conditions to be used.... Let's say forumid 168 and 169 are for the New Advert Button and forumid 1 and 2 are for the New Ticket Button:
HTML Code:
<if condition="!in_array($foruminfo[forumid], array(168,169,1,2))">
New Thread Button
<else />
<if condition="in_array($foruminfo[forumid], array(168,169))">
New Advert Button
<else />
New Ticket Button
</if>
</if>
As for the button code, you can basically copy the New Thread Button code and change the image source and link url.