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)

paradoxx109 08-15-2010 08:11 PM

I guess I didnt realize about that one, thank you so much. Although I still have the loop of like dislike in firefox.

m2006 08-16-2010 04:21 AM

Many thanks for Mode is the result of a page to load slowly silk

paradoxx109 08-19-2010 03:23 PM

anyone has problems with FF when clicking the like button?

WinnipegHeights 08-21-2010 06:29 AM

Why would you not simply add this to the social bookmarking template??

In Show Thread templates..

showthread_bookmarksite

Paste the following after the existing code

Code:

<if condition="$bookmarksite[title]=='Facebook'">

<li>
<fb:like></fb:like>

<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>
</li>

</if>

All that is required is to create a Social Bookmark for Facebook, as suggested in this thread..

https://vborg.vbsupport.ru/showthrea...light=facebook

The reason this works more nicely, is that
a) It puts the LIKE button with the rest of the social networking stuff.
b) Vbulletin will only display the Social Bookmarking bits in threads that are GUEST viewable.

SnakeEaterITA 09-07-2010 12:46 AM

Hi guys, one problem for me.

I put this code in the Showthread

Code:

<div id="fb-root"></div> <script>
  window.fbAsyncInit = function() {
    FB.init({
      appId  : '116209095073446',
      status : true, // check login status
      cookie : true, // enable cookies to allow the server to access the session
      xfbml  : true  // parse XFBML
    });
  };
 
  (function() {
    var e = document.createElement('script');
    e.src = document.location.protocol + '//connect.facebook.net/it_IT/all.js';
    e.async = true;
    document.getElementById('fb-root').appendChild(e);
  }());
</script> <fb:like layout="standard" show_faces="false" width="300" action="like" colorscheme="light" />

and the Like button is nicely displayed next to the Post Reply, but I have some problems:

1) IE doesn't show anything

2) If I press the Like button and I go in my facebook wall, it doesn't show the infos of the thread.

https://vborg.vbsupport.ru/external/2010/09/47.jpg

No thread title, no thread url, no thread description.

What should I do?

FSA 09-21-2010 11:16 AM

:edit

i've solved it with the share-button.

Code:

<a name="fb_share" type="button_count" share_url="http://WWW.DOMAIN.COM/showthread.php?p=$post[postid]&t" 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>

LakeAnna 10-05-2010 02:44 AM

I have applied the IE fix and still not working - is this still an open issue? Or a dead hack?

Raptor 10-07-2010 01:51 PM

How about having a like option that links displays who liked the post and also adds to the OP's Karma - but not linking to facebook ?

BirdOPrey5 10-08-2010 11:47 PM

I'm using the code from the first (top) post and it's working fine for me in IE8 (XFBML method)... is that unusual?

Chance4Today 10-10-2010 08:36 PM

Thanks :)


All times are GMT. The time now is 04:19 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.01135 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
  • (3)bbcode_code_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