gakz
06-29-2011, 10:00 PM
There are a few facebook like buttons floating around... This is the one that I can say 100% works on my 4.1.4 board.
What it will do:
-Add your facebook like to the thread in the first post only
-Display your name and thumbnail for your profile picture
-It will post the thread, with the thread title on your news feed/wall
Preview:
https://vborg.vbsupport.ru/external/2011/06/6.png
I placed the code after:
{vb:raw ad_location.thread_first_post_content}
in the postbit_legacy
Facebook Like button Code:
<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURURL.com/forum/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}&layout=button_count&show_faces=true&w idth=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
<!-- / Facebook Like -->
The width and height are adjustable... If you get a lot of likes and notice some profile thumbnails cut off you can adjust to fit them all... or you can adjust to remove thumbnails completely.
Replace:
http://www.YOURURL.com/forum/
With the URL and installed folder of your domain. For example... I use:
http://www.properimage.net/forum/
Because my Forum is installed in:
http://www.properimage.net/forum/forum.php
Credit goes to Facebook (http://www.facebook.com) for giving the tools to make the code.
This code may NOT work properly with certain MODS or vbSEO features... It should work with all mods and vbSEO stuff though
What it will do:
-Add your facebook like to the thread in the first post only
-Display your name and thumbnail for your profile picture
-It will post the thread, with the thread title on your news feed/wall
Preview:
https://vborg.vbsupport.ru/external/2011/06/6.png
I placed the code after:
{vb:raw ad_location.thread_first_post_content}
in the postbit_legacy
Facebook Like button Code:
<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURURL.com/forum/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}&layout=button_count&show_faces=true&w idth=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
<!-- / Facebook Like -->
The width and height are adjustable... If you get a lot of likes and notice some profile thumbnails cut off you can adjust to fit them all... or you can adjust to remove thumbnails completely.
Replace:
http://www.YOURURL.com/forum/
With the URL and installed folder of your domain. For example... I use:
http://www.properimage.net/forum/
Because my Forum is installed in:
http://www.properimage.net/forum/forum.php
Credit goes to Facebook (http://www.facebook.com) for giving the tools to make the code.
This code may NOT work properly with certain MODS or vbSEO features... It should work with all mods and vbSEO stuff though