I inserted the code so that the FB Like will only show in certain forums, but it continues to show in all forums. I have seen this code in two different ways in this thread. Is either one correct.
<vb:if condition="in_array($forum['forumid'], array(2,14))">Show this to forum 2 and 14</vb:if>
<vb:if condition="in_array($forum['forumid'],array(2,14))">
This is what I have and it doesn't just show these two forums:
PHP Code:
<vb:if condition="in_array($forum['forumid'], array(2,14))">
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.mydomain.com/forums/{vb:link thread, {vb:raw thread}}&layout=standard&show_faces=true&width=450&action=like&font=tahoma&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
<!-- / Facebook Like -->
</vb:if>