vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   facebook like button in all post (https://vborg.vbsupport.ru/showthread.php?t=263626)

jskoh 05-14-2011 11:15 AM

facebook like button in all post
 
hi, is there any mod that does this? adding " like " button in every post in a thread.?

jskoh 05-15-2011 07:33 PM

can anybody advisehow to make fb "like" button be on every post of a thread? meaning user can click on like button on a thread on 3rd post but does not include the 1st post?

BirdOPrey5 05-16-2011 08:19 PM

Code:

<iframe src="http://www.facebook.com/plugins/like.php?app_id=158420884225410&amp;href=$vboptions[bburl]/showthread.php?p=$post[postid]#$post[postid]&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
This code should work for specific posts. Put it somewhere in your postbit/legacy template, wherever works for your needs.

jskoh 05-17-2011 02:04 AM

i need the fb "like" button to be on every post. which mean. a fb user can like #3 alone exculde #2 and #1.

or he can only like #2 and not #1 and #3.

anybody?

BirdOPrey5 05-17-2011 02:54 AM

:erm: Did you try what I posted? :confused:

jskoh 05-17-2011 03:15 AM

i tried it.. i dont know why it seem like there some error alway.

it work for the 1st time. when i do a refesh, and i click again at any post, its showing that the whole thread was "like"

--------------- Added [DATE]1305605918[/DATE] at [TIME]1305605918[/TIME] ---------------

and sometime, when a "like" is click, 2 or 3 post will alway have the "like" together instead of the whole thread.

BirdOPrey5 05-17-2011 09:46 AM

I see what you are saying but there is no way to do what you want to do. The code I have will "Like" a specific post, if someone follows the link on Facebook they will be brought to that specific post.

However, the "counts" will never work correctly because facebook counts by the URL... But you never would browse your forum by the URL of the specific post (showthread.php?p=XXX#XXX) but usually by threads (showthread,php?t=YYY)- so the like's won't be counted by facebook correctly.

Unfortunately there is no easy way of disabling the count as far as I know.


All times are GMT. The time now is 05:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01057 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete