as7apcool
11-01-2011, 11:00 PM
Add like Button to 3.8.x for Threads >> direct and easy
1 - open VB control panel >> styles >> search in Templates for ( postbit ) Template >> open to edit
2 - search in ( postpit ) for
<!-- message -->
and after you find it .. add this code
<div id="post_message_$post[postid]">
<if condition="($post[postcount]==1)">
<div style="float: left; margin: 0 0 0px 0px;">
<iframe src="http://www.facebook.com/widgets/like.php?locale=en_US&href=http://www.YOURDOMAIN.com/vb/showthread.php$session[sessionurl]?t=$thread[threadid]&layout=button_count&show_faces=false&width=168&action=like&colorscheme=light&height=25" scrolling="no" frameborder="0" allowtransparency="true" class="fbif" height="20" width="90" name="0">
</iframe></div>
</div>
</if>
after u finish >> save (postbit ) Template
- This will make like button in the first post only and in the left of the page
- this code when any one press like on the post , it will make the link which liked refer directly to Thread page >> ?t= on Facebook ... not like the old code >> ?p= .. and this is very good for Google and back links from Facebook
plz rate this if u like :p
1 - open VB control panel >> styles >> search in Templates for ( postbit ) Template >> open to edit
2 - search in ( postpit ) for
<!-- message -->
and after you find it .. add this code
<div id="post_message_$post[postid]">
<if condition="($post[postcount]==1)">
<div style="float: left; margin: 0 0 0px 0px;">
<iframe src="http://www.facebook.com/widgets/like.php?locale=en_US&href=http://www.YOURDOMAIN.com/vb/showthread.php$session[sessionurl]?t=$thread[threadid]&layout=button_count&show_faces=false&width=168&action=like&colorscheme=light&height=25" scrolling="no" frameborder="0" allowtransparency="true" class="fbif" height="20" width="90" name="0">
</iframe></div>
</div>
</if>
after u finish >> save (postbit ) Template
- This will make like button in the first post only and in the left of the page
- this code when any one press like on the post , it will make the link which liked refer directly to Thread page >> ?t= on Facebook ... not like the old code >> ?p= .. and this is very good for Google and back links from Facebook
plz rate this if u like :p