Code:
<if condition="!is_member_of($bbuserinfo, 5, 6, 7, 10, 12) AND !in_array($forumid, array(145,113,103,10,114,117,164,9,144,158))">
CPA LEAD
</if>
you might also want the thread starter to not see the gateway, in which case use:
Code:
<if condition="!is_member_of($bbuserinfo, 5, 6, 7, 10, 12) AND !in_array($forumid, array(145,113,103,10,114,117,164,9,144,158)) AND $thread['postuserid'] != $bbuserinfo['userid']">
CPA LEAD
</if>