vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Add New Facebook "Like" button to your threads (https://vborg.vbsupport.ru/showthread.php?t=241011)

MedellinStyle 04-25-2010 10:30 PM

Hi

I want to ask, the script works fine, it displays fine on peoples wall on facebook, but in VBULLETIN, different to how many people clicks on LIKE, it still displays , LIKE 1.

Only 1 not acumulate, any help would be appreciated , thanks!

ericgtr 04-25-2010 11:18 PM

Quote:

Originally Posted by MedellinStyle (Post 2027294)
Hi

I want to ask, the script works fine, it displays fine on peoples wall on facebook, but in VBULLETIN, different to how many people clicks on LIKE, it still displays , LIKE 1.

Only 1 not acumulate, any help would be appreciated , thanks!

It only shows how many of your friends clicked on it.

Please click install. :)

YankForum 04-26-2010 01:03 PM

tnx installed

AndrewSpearin 04-26-2010 02:06 PM

I have this installed and working fine for forum posts, but how do I go about adding it for CMS articles, blog posts, and albums/pictures?

ericgtr 04-26-2010 02:24 PM

Quote:

Originally Posted by AndrewSpearin (Post 2027622)
I have this installed and working fine for forum posts, but how do I go about adding it for CMS articles, blog posts, and albums/pictures?

Here's some suggestions.

For CMS, in vbcms_content_article_page add the code below this:
Code:

{vb:raw comment_block}
For pictures, in template album_pictureview add the code below this:
Code:

{vb:raw picturecomment_commentarea}
This gives you the idea, I haven't added it to the blog yet but it's just a matter of locating the right template.

AndrewSpearin 04-26-2010 03:58 PM

Thanks, I added this code:

<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.npac.ca/2010/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}&amp;layout=button_count&amp;show_f aces=false&amp;width=450&amp;action=like&amp;color scheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:30px"></iframe>
<!-- / Facebook Like -->

in: vbcms_content_article_page

after: <vb:if condition="$comment_block"> ... </vb:if>

Example: http://npac.ca/2010/content.php/121-QA-with-Rod-MacIvor

I click like, it shows up with the proper article title on my Facebook profile, however it links to the corresponding forum post for the article: http://www.npac.ca/2010/showthread.p...th-Rod-MacIvor

The 'like' does appear in both the forum post and article though.

How can I make it link straight back to the article? I'm not familiar with the {vb:link} stuff, so I don't really know what else to try instead.

Thanks again for your help!

movslow 04-26-2010 04:25 PM

FYI, I had the error, and realized you need the trailing / on the end of the url.

Added that, worked liked a charm, this was in Postibit Legacy.

fluidswork 04-27-2010 02:49 AM

Awesome mod i will try it ..............

junaid 04-27-2010 06:40 AM

Is possible to add like thanks button or same locations?

junaid 04-27-2010 07:06 AM

I want code for button count 16x16
could you provide me code


All times are GMT. The time now is 06:33 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.01277 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete