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)

sportsbuddys 06-02-2010 08:45 AM

Works great! Thank you :)

Largo .//npc 06-03-2010 09:47 AM

It works but doesn't seem to show on facebook.

TeknoSounds 06-03-2010 10:46 AM

Quote:

Originally Posted by Largo .//npc (Post 2047536)
It works but doesn't seem to show on facebook.

I've only been able to get it to show up on my personal page, it doesn't show in the newsfeed nor relates the actual website name.

Believe it has to do with the facebook connect and the new opengraph they got goin on, they don't talk quite right. Theres certain tags missing in headers that have to be added.

michelle86 06-03-2010 06:42 PM

So I got the button to work, but why doesn't it show up on my Facebook wall when I like a thread? (like in picture #2)

hcmagix 06-03-2010 07:37 PM

Quote:

Originally Posted by michelle86 (Post 2047820)
So I got the button to work, but why doesn't it show up on my Facebook wall when I like a thread? (like in picture #2)

This will showing in your aktivities. What you mean ist the share button

try this code in the postbit/_legacy Template btw. use the vb ad system for this.

HTML Code:

<a name="fb_share" type="button_count" share_url="{vb:raw $vboptions[bburl]}/{vb:link thread, {vb:raw thread}}" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
then the Post will appear on your FB Wall. btw I think this function will be included in vb 4.0.4

michelle86 06-03-2010 09:06 PM

Quote:

Originally Posted by hcmagix (Post 2047839)
This will showing in your aktivities. What you mean ist the share button

try this code in the postbit/_legacy Template btw. use the vb ad system for this.

HTML Code:

<a name="fb_share" type="button_count" share_url="{vb:raw $vboptions[bburl]}/{vb:link thread, {vb:raw thread}}" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
then the Post will appear on your FB Wall. btw I think this function will be included in vb 4.0.4



Yeah, it is not showing in my recent activities on my profile which this mod is supposed to be able to do that if you look at the second image.

necie_r 06-04-2010 12:33 AM

Thank you! Thank you! Thank you!!!

Installed and rated. :)

hiker 06-04-2010 01:39 AM

Would it be possible to only show the Like button on threads with a certain prefix?

For instance, we've got a "Trip Report" prefix that works very well with the Like button. But it also shows on every other type of thread on the forum which is kind of a wasted space, such as questions about a trail or a shoe...

I see how it can be limited to certain forums, but we post "Trip Reports" in most of the forums, as well as general questions and discussion.

hcmagix 06-04-2010 02:58 AM

Perhaps with a specially condition
PHP Code:

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1') AND ($forumid == 'XY') 

for this conditional u must create a plugin in global_start with
PHP Code:

$templatevalues['forumid'] = $forumid;
vB_Template::preRegister('header'$templatevalues); 

not testet. is an idea

read also http://www.vbulletin.com/forum/entry...d-the-Facebook...

hiker 06-04-2010 03:06 AM

Quote:

Originally Posted by hcmagix (Post 2048040)
Perhaps with a specially condition
PHP Code:

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1') AND ($forumid == 'XY') 

for this conditional u must create a plugin in global_start with
PHP Code:

$templatevalues['forumid'] = $forumid;
vB_Template::preRegister('header'$templatevalues); 

not testet. is an idea

Sorry, I can't tell, but were you replying to my question?


All times are GMT. The time now is 12:56 PM.

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.03216 seconds
  • Memory Usage 1,756KB
  • 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_html_printable
  • (4)bbcode_php_printable
  • (4)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