PDA

View Full Version : Show Thread Enhancements - Add like Button to 3.8.x for Threads >> direct and easy


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

Max Taxable
11-02-2011, 01:45 AM
after this add LIKE button code direct to Thread pageShowthread template?

as7apcool
11-02-2011, 08:13 AM
Showthread template?
sorry this was a wrong from me .. u can see the post again now

RJ2
11-02-2011, 06:53 PM
I know you said if there's an error not to worry about it, but it looks like your code is leaving an open <if> and two open <div>'s

as7apcool
11-05-2011, 09:59 AM
I know you said if there's an error not to worry about it, but it looks like your code is leaving an open <if> and two open <div>'s

hi
thank u

now code is True 100 %

abdobasha2004
11-08-2011, 07:57 AM
this is a template modification ! :) :P

edenx
11-09-2011, 11:51 AM
Will this work with VBSEO?

Jimmy_z
12-18-2011, 12:02 PM
It's not pretty but it works :)

duketxboy
12-18-2011, 04:06 PM
Screen shots?

yeppuda
12-19-2011, 10:38 PM
caps? please...

mastertek2000
12-23-2011, 01:01 PM
thanks works great

abhimation
12-26-2011, 05:26 PM
Doesnt work on my forums. I dont see any Fabebook button.