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)

cdoyle 05-14-2010 02:13 AM

I thought the problem with the IE code was the if statement for displaying only on the first thread? At least I thought that's what someone said earlier. Does the code above solve that too?

hubie 05-14-2010 05:05 AM

Quote:

Originally Posted by cdoyle (Post 2036702)
I thought the problem with the IE code was the if statement for displaying only on the first thread? At least I thought that's what someone said earlier. Does the code above solve that too?

I don't think the problem was the variable "if", since I'm currently using it with IE and the problem is solved by changing the code such as above.

imedic 05-14-2010 09:35 AM

It seems I have same problem of not showing the button. Is probably a conflict with other mods installed. I put it on a forum without Chief First post mod and still not working.
I am thinking of Topic of the month, or quote post on PM mods but is just a guess.
I am looking for having this mod on my forums...
Nice mod.

@ Hubie - Your modification does not work in FF but work in IE. It mislead me the mod is not working.
I am using last version of FF and forum is 3.8.4 with lots of mods.

edit: Am I dumm or what: Remember to tell No script in Firefox to let facebook.net or you won't see the button.
@ Hubie - Your modification works both in IE and FF! Great, thanks.

Deimos 05-15-2010 12:00 PM

Quote:

Originally Posted by hubie (Post 2036675)
Here's a fix of IE issue changing some code. With this code the button is now displayed in IE browser.

Please let me know if it's working properly.

Code:

<div id="fb-root"></div> <script>
  window.fbAsyncInit = function() {
    FB.init({
      appId  : '100673979977717',
      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/en_US/all.js';
    e.async = true;
    document.getElementById('fb-root').appendChild(e);
  }());
</script> <fb:like layout="standard" show_faces="true" width="300" action="like" colorscheme="light" />

*Note: If you use the appId that appears in the code above, you'll get an interesting effect 'onmouseover' with the title of thread.


I'm using the second bit of code from the original post, which works AOK in firefox, where do I go about putting the IE code pasted above?

Also, I notice some threads properly relay their title to Facebook, but some do not
I'm using VBSeo, so thought it might be that, but it seems odd that two threads in the same forum, have different results.

Xencored 05-15-2010 12:43 PM

Quote:

Originally Posted by kall (Post 2033077)
I've not installed this mod, but.. have you defined the og: stuff?

Try: http://www.nzboards.com/new-zealand-...t-3-5-a-90512/ (it's under the Reply to Thread/Thread Title), then check my FB profile.

;)

What code did you use mate to get it to work like that
It show awesome on my facebook page after i click "like"
Thanks

cdoyle 05-15-2010 01:06 PM

hmm, I still can't get this to work in IE.

I am now using this

Code:

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


<div id="fb-root"></div> <script>
  window.fbAsyncInit = function() {
    FB.init({
      appId  : 'xxxxxxxxxxxxxx',
      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/en_US/all.js';
    e.async = true;
    document.getElementById('fb-root').appendChild(e);
  }());
</script> <fb:like layout="standard" show_faces="true" width="300" action="like" colorscheme="light" />


</if>

seems to work fine in FF, but IE nothing appears at all? Any ideas?

Devanand 05-16-2010 06:36 AM

Quote:

Originally Posted by cdoyle (Post 2037360)
hmm, I still can't get this to work in IE.

I am now using this

Code:

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


<div id="fb-root"></div> <script>
  window.fbAsyncInit = function() {
    FB.init({
      appId  : 'xxxxxxxxxxxxxx',
      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/en_US/all.js';
    e.async = true;
    document.getElementById('fb-root').appendChild(e);
  }());
</script> <fb:like layout="standard" show_faces="true" width="300" action="like" colorscheme="light" />


</if>

seems to work fine in FF, but IE nothing appears at all? Any ideas?

I did same thing and have same problem....still nothing to show in IE.

cdoyle 05-16-2010 01:58 PM

I tried the demo out again, and it's not showing in IE either.

Monkeylord 05-17-2010 04:23 PM

IE fix seems to be working fine for me, although the "Like" button seems to be showing up twice when I checked in Chrome. Not tried any other browsers yet though.

Monkeylord 05-19-2010 09:11 AM

Spoke to soon, seems the IE fix isn't working properly for me. Everything comes up fine, but between navigating away from the page and returning the FB button seems to have forgotten that I "Like" the thread, and goes back to asking me to be the first of my friends to like it again.

Frustrating!

Also, when it posts a comment to my wall it grabs the first image it can find on the page... which is always a box-corner!


All times are GMT. The time now is 08:10 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.01589 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
  • (3)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