Back to vBulletin 3.8 Add-ons

Add like Button to 3.8.x for Threads >> direct and easy
Mod Version: 1.00, by as7apcool

vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 12
Released: 02 Nov 2011 Last Update: Never Downloads: 0
Not Supported  

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

Code:
<!-- message -->
and after you find it .. add this code

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

Download

No files for download.

Similar Mods

Miscellaneous Hacks Add New Facebook "Like" Button to Threads and OpenGraph to Headinclude Automatically vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024