Add New Facebook "Like" button to your threads
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 1 của 1
  1. #1
    Thành Viên PandavB's Avatar
    Ngày tham gia
    Feb 2014
    Bài viết
    243
    Thanks
    1
    Thanked 13 Times in 11 Posts

    Icon14 Add New Facebook "Like" button to your threads

    Please remember to click Mark as Installed if you use this modification.

    Facebook has just launched their latest "Like" button to developers to use on any site. What this does is utilizes the Advertising module to add the "Like" button to the first post of each thread. Please see screenshots to get an idea.

    In your Admin CP go to Advertising > New Ad > Choose "Thread" from the dropdown and then select the first thread box. Give it a title (I called mine FB Like) leave "First Post Content" at default and paste in this code:
    HTML Code:
    PHP Code:
    <!-- Facebook Like -->
    <
    iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURSITE.com/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:px"></iframe>
    <!-- / 
    Facebook Like --> 
    Be sure to change YOURSITE.com to your URL including your forum.

    The VBSEO team has instructions on how to make this work for their product here [Only registered and activated users can see links. ]

    ===========================================
    Option 2 (different from above, do not use together) will show at top, see screenshot #3

    In Postbit (or legacy) find:
    Code:
    PHP Code:
    {vb:raw ad_location.thread_first_post_content}
    Add this after
    Code:
    PHP Code:
    <vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')"
    <!-- Facebook Like -->
    <
    iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURSITE.com/{vb:link thread, {vb:raw thread}}&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
    <!-- / 
    Facebook Like -->
    </
    vb:if> 
    For additional information on this button and different parameters please visit [Only registered and activated users can see links. ]

    =================================================

    For those who have asked, here is the modification adds both the "Like" button and comments to a users profile [Only registered and activated users can see links. ]

    =================================================
    Additional locations to place this code:

    For CMS, in vbcms_content_article_page add the code below this:
    Code:
    PHP Code:
    {vb:raw comment_block
    For pictures, in template album_pictureview add the code below this:
    Code:
    PHP Code:
    {vb:raw picturecomment_commentarea
    For Blog, in template blog_show_entry add at the very top.
    Hình Kèm Theo Hình Kèm Theo
    File Kèm Theo File Kèm Theo
    Khách viếng thăm hãy cùng PandavB xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Các Chủ đề tương tự

  1. Phương án "chiến đấu" với thiên thạch chống "ngày tận thế"
    Bởi Linh_JX trong diễn đàn Chuyện Lạ Đó Đây
    Trả lời: 6
    Bài viết cuối: 26-06-14, 11:05 AM
  2. Add Facebook "Like" button to your threads [vB 3.8.x]
    Bởi KingSky trong diễn đàn vBulletin 3.8 Add-ons
    Trả lời: 0
    Bài viết cuối: 11-02-14, 09:44 AM
  3. Trả lời: 15
    Bài viết cuối: 22-06-12, 05:41 PM
  4. Tăng Thanh Hà "yêu" Cường "Đô la" - đại gia ăn chơi khét tiếng.
    Bởi vietmagic trong diễn đàn Tin tức Scandal
    Trả lời: 0
    Bài viết cuối: 04-06-09, 09:02 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 06:04 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.