
04-23-2010, 07:10 AM
|
|
|
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by TimberFloorAu
Option 2 to hide specific forums.
Code:
<!-- Facebook Like -->
<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))">
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.yourDomain.com/{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>
</vb:if>
</vb:if>
<!-- / Facebook Like -->
Dont forget if your forum is in folder [forum] change the above code to:
Code:
<!-- Facebook Like -->
<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))">
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.yourDomain.com/forum/{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>
</vb:if>
</vb:if>
<!-- / Facebook Like -->
The code
Code:
<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))">
This displays this MOD in these forum ID's
The code
Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
Displays only in first post
To show in only ONE forum:
Replace
Code:
<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))">
use this
Code:
<vb:if condition="$forum[forumid] == x">Show this if forum id is x</vb:if>
Change x to the forum id of the forum you want this mod to display in.
|
confusing..the display and hide are both the same?
how do you combine these conditions?
show in forum
Code:
<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))">
with
Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
thx
|