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?

Michlerish 06-04-2010 02:58 PM

Uninstalled because a lot of users access the forum from their workplace, where facebook is blocked.

hiker 06-04-2010 03:25 PM

Quote:

Originally Posted by Michlerish (Post 2048258)
Uninstalled because a lot of users access the forum from their workplace, where facebook is blocked.

This is one of the reasons I don't want it on every thread, because of the ugly "blocked" box, but it is working wonderfully on the desired Thread Prefixes, I'd love to limit it to just those type of threads.

https://vborg.vbsupport.ru/external/2010/06/79.jpg

steveyos666 06-04-2010 03:54 PM

It's not showing up on my wall.

michelle86 06-05-2010 10:50 PM

Quote:

Originally Posted by Red Spider (Post 2029468)
im struggling to get this working correctly as per the screenshots in OP.

When i click "like" it on my fb newsfeed it just says "xxx likes xxx forum"... does NOT say "xxx likes xxx on xxx forum" as per the screenshot. any help?

Quote:

Originally Posted by ericgtr (Post 2029597)
That usually means something isn't right with your forum path, I would double check it.


For whatever reason, it has started showing up on everyone's facebook walls. But now I have the same issue Red Spider was having.

For my forum path I have http://members.lovingfromadistance.com/forum.php

Am I missing anything? Did I do anything wrong?

War.Frog 06-05-2010 10:56 PM

It looks like this will be redundant on version 4.04, but I've enjoyed using it for the interim. Thank you for a great mod.

Largo .//npc 06-06-2010 04:26 PM

Doesn't seem to keep the people who have liked it after a few minutes.

hiker 06-08-2010 07:39 PM

Any help with adding this Like button to only threads with certain prefixes?

rmd708 06-09-2010 12:57 PM

For those trying to figure this out, use this code for the CMS articles section. What is shown in the first post wont work.

Code:

<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href={vb:raw page_url}&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:visible; width:450px; height:25px;"></iframe>
<!-- / Facebook Like -->


ChopSuey 06-10-2010 11:22 AM

Can't you just change the YOURSITE text to {vb:raw vb.options url} ?? or whatever the code is. it will wol

session-one 06-13-2010 09:14 AM

it'd be cool if you could see who liked the thread

Bram H 06-16-2010 03:09 PM

Works great on the forum but can't get it to work on the CMS

wefictionjoe 06-19-2010 05:34 PM

the number of likes a thread gets is going to dictate the next thread started on my site. BUT, i do not want to force people to connect to facebook to "like" something. So:

Is there any way to allow non facebook connected member to also "like" something? Thanks!

wefictionjoe 06-19-2010 08:37 PM

Quote:

Originally Posted by Largo .//npc (Post 2049423)
Doesn't seem to keep the people who have liked it after a few minutes.


hmmm, same here

PSC001 07-03-2010 08:20 PM

Anyone know how to add this to appear above the Quick Reply box? I know the template is in Showthread, but I don't where to drop in the code to make it work. I am using 4.0.2 PL4.

Thanks.

PSC001 07-05-2010 09:08 PM

Quote:

Originally Posted by PSC001 (Post 2064017)
Anyone know how to add this to appear above the Quick Reply box? I know the template is in Showthread, but I don't where to drop in the code to make it work. I am using 4.0.2 PL4.

Thanks.

Anyone?

wefictionjoe 07-16-2010 01:27 AM

Quote:

Originally Posted by PSC001 (Post 2064986)
Anyone?

good question

RichieBoy67 07-18-2010 06:59 AM

This is great thanks!! I had just installed something just like this in one of my directories and I was just going to do this myself! Lucky I checked first I guess. :)

olivercookson 07-22-2010 04:28 PM

Is there a way to get this working on the articles?

TNERatedEdge 07-22-2010 08:53 PM

This has to work with facebook? What If I dont wanyt my facebook having links to these posts/ Can't it just be for the forum?

adreen 07-29-2010 08:55 AM

some problems though:

1. only users with facebook can 'Like'
2. like only appears on the first post of the thread
3. after i click the link in facebook after it was integrated, it came out like this

No Topik specified. If you followed a valid link, please notify the administrator

i checked the links, if i remove a character in this case '=', it'd work.
or else can't.

a lot of things you have to fix.
meanwhile i have to uninstall the mod.

vikris 08-02-2010 05:49 PM

Same problem here. :(

Gord 08-10-2010 04:03 PM

Nice. Thanks :)

dippetas 09-09-2010 07:55 PM

it has stopped working for me the last two days, no click at all, the behavior started after i updated my user ranks! any ideas what could be wrong?

struff 09-12-2010 10:29 PM

Forgive me if this was already addressed; I didn't get anything when I searched.

Using method #1, is there a way to reduce the size of the margin it creates on the right side of the post?

Thanks.

ComoEstaEso-com 09-22-2010 05:27 PM

Quote:

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:

<!-- 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_face s=true&amp;width=450&amp;action=like&amp;colorsche me=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 http://www.vbseo.com/f2/facebook-lik...95/#post265997
Hello... I can't get this to work on a Blog post.
Neither can I make it appear on a CMS Article.
In the threads, it all works fine.

Should the procedure over here be used?
Or only what's mentioned on the vBSEO site? (we're running vBseo)

Should I do both things? What's mentioned here, and then what's mentioned over in vBSEO.com?

I'm at a loss... not sure what I'm doing wrong.
Any help is much appreciated.
Thanks.

Rebecca217 10-01-2010 02:02 PM

Beautiful! Thanks for this!

GONUMBER6 11-18-2010 02:06 PM

I am currently running on vb 4.06 and have the facebook connect enabled and set up. I just HATE the location of the ("Like" Be the first of your friends to like this), which is above the first post on the page and off to the right.

I would really like it to be like in the example #3. How would you suggest I do this?

washingtonboise 11-21-2010 07:21 PM

At the bottom of posts would be an excellent location. (It's at that point that a user will know if they actually like what they just finished reading.)

bagh1 12-01-2010 05:49 AM

A couple of things:
1) Instead of it being per thread, can there be a like button per post?
2) My site is in this format: www.DOMAIN.com/forums/showthread...
For some reason, when I put href=http://www.DOMAIN.com/forums/{vb:link thread, {vb:raw thread}}, it doesn't work and I get an error in the FB link. The keyword "forums" is missing from the URL and it incorrectly looks like this: http://www.DOMAIN.com/showthread...
If I put anything else except "forums", like "forum", then the URL with that word shows up.

Any ideas on why my URL wouldn't be properly generated?
TIA!

gobears20 12-01-2010 01:00 PM

Quote:

Originally Posted by bagh1 (Post 2127813)
A couple of things:
1) Instead of it being per thread, can there be a like button per post?
2) My site is in this format: www.DOMAIN.com/forums/showthread...
For some reason, when I put href=http://www.DOMAIN.com/forums/{vb:link thread, {vb:raw thread}}, it doesn't work and I get an error in the FB link. The keyword "forums" is missing from the URL and it incorrectly looks like this: http://www.DOMAIN.com/showthread...
If I put anything else except "forums", like "forum", then the URL with that word shows up.

Any ideas on why my URL wouldn't be properly generated?
TIA!

I have the same problem. I get an error because it's looking for www.domain.com/showthread when it should be www.domain.com/forums/showthread. I have the full url in the href parameter but facebook is not getting it right. Any fix?


All times are GMT. The time now is 06:35 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.01453 seconds
  • Memory Usage 1,839KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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