vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Add Facebook "Like" button to your threads [vB 3.8.x] (https://vborg.vbsupport.ru/showthread.php?t=241053)

dr1 04-27-2010 03:33 PM

It's relates to using the latest version of Facebook’s JavaScript SDK

http://www.allfacebook.com/2010/04/o...connect-sites/

cdoyle 04-27-2010 06:43 PM

1 Attachment(s)
I've been playing around with this a little more using the XFBML method instead of the IFrame. This allows users to enter a comment that appears on their wall, and it also enters a better description on the wall too, with your forum banner thumbnail. I've attached a screenshot of how it looks on the wall.

You'll need to register your ap, and get an ID to place into the code below.

http://developers.facebook.com/setup/

You can try it out http://www.caraudiocentral.net/forums

The thing I'm still unsure of is, sometimes I'll go back to a post and where I clicked like before, it's now saying 'be the first' when I know I clicked it earlier. So I'm not sure if FB is doing stuff on their end that is messing it up or what.

Code:

<if condition="$post[postcount] == 1 AND !in_array($GLOBALS[forumid], array(40, 39))">


<p><fb:like></fb:like></p>

<div id="fb-root"></div>
    <script>
      window.fbAsyncInit = function() {
        FB.init({appId: 'yourappID', status: true, cookie: true,
                xfbml: true});
      };
      (function() {
        var e = document.createElement('script');
        e.type = 'text/javascript';
        e.src = document.location.protocol +
          '//connect.facebook.net/en_US/all.js';
        e.async = true;
        document.getElementById('fb-root').appendChild(e);
      }());
    </script>


</if>


cdoyle 04-29-2010 02:15 PM

Since I can't seem to create an account at the facebook developers forum, I'm hoping someone here will know.

Is there a way to see who clicked the like button?
Right now if a button says 3 people clicked this, who are the 3 people?

Gamelobby 04-29-2010 07:09 PM

Quote:

Originally Posted by hubie (Post 2026107)
Fix for private messages and first post on every first page issues:

Replace:
Code:

<if condition="!$GLOBALS['FIRSTPOSTID']">
by:
Code:

<if condition="$post[postcount] == 1">

I dont mind it being on every post, but i would like it to not show on PM's.



Quote:

Originally Posted by cdoyle (Post 2029037)
Since I can't seem to create an account at the facebook developers forum, I'm hoping someone here will know.

Is there a way to see who clicked the like button?
Right now if a button says 3 people clicked this, who are the 3 people?

Use the code for this one instead..
https://vborg.vbsupport.ru/

cdoyle 04-29-2010 07:14 PM

Quote:

Originally Posted by Gamelobby (Post 2029168)
Use the code for this one instead..
https://vborg.vbsupport.ru/

The problem with the Iframe version is it doesn't allow the user to add a comment when they click on it. So on their wall it only shows a small recent activity link.

If they add a comment, it show more on their wall. See my screenshot above.

Is there a way to use the xfbml version, and still get a count and friends who clicked with faces etc.

Stubbed 04-29-2010 11:42 PM

Changed mine to "Recommend"

I <3 Facebook.

bplinson 04-30-2010 06:13 AM

Works great.

I like this but, like other have said, it would be much better if the person could comment on the link. The way it is now it only produces a small link on the persons personal wall as "Recent Activity".

It needs to be modified so that the link appears in the "News Feed"

marshal_ramdev 04-30-2010 07:54 PM

thanks for this one mate

hubie 05-01-2010 12:36 AM

Quote:

Originally Posted by cdoyle (Post 2028234)
I've been playing around with this a little more using the XFBML method instead of the IFrame. This allows users to enter a comment that appears on their wall, and it also enters a better description on the wall too, with your forum banner thumbnail. I've attached a screenshot of how it looks on the wall.

You'll need to register your ap, and get an ID to place into the code below.

http://developers.facebook.com/setup/

You can try it out http://www.caraudiocentral.net/forums

The thing I'm still unsure of is, sometimes I'll go back to a post and where I clicked like before, it's now saying 'be the first' when I know I clicked it earlier. So I'm not sure if FB is doing stuff on their end that is messing it up or what.

Code:

<if condition="$post[postcount] == 1 AND !in_array($GLOBALS[forumid], array(40, 39))">


<p><fb:like></fb:like></p>

<div id="fb-root"></div>
    <script>
      window.fbAsyncInit = function() {
        FB.init({appId: 'yourappID', status: true, cookie: true,
                xfbml: true});
      };
      (function() {
        var e = document.createElement('script');
        e.type = 'text/javascript';
        e.src = document.location.protocol +
          '//connect.facebook.net/en_US/all.js';
        e.async = true;
        document.getElementById('fb-root').appendChild(e);
      }());
    </script>


</if>


Thanks mate!, i put it in the first post :up:

efil 05-01-2010 04:40 AM

Hello,
Is the Add-on working with a vb 3.6?


All times are GMT. The time now is 05:57 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.02700 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_code_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