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)

BirdOPrey5 06-15-2011 08:25 PM

Quote:

Originally Posted by mikelangelo2005 (Post 2207884)
I have a problem with this mod that is not how to fix yet, read the 13 pages of answers that are here and not find a solution.

I have installed the version XFBML. But the problem button "like" is that sometimes appears and sometimes doesn?t appear, not even reloading the page immediately appears.

Any solution?

www.motofanaticos.com

My code
Code:

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


Facebook will give you updated code if you get it directly from their website:
http://developers.facebook.com/docs/.../plugins/like/

Quote:

Originally Posted by 4Play (Post 2208217)
will this mod work for vB 4?

VB4 has a Facebook Like button built in, it just needs to be enabled.

mikelangelo2005 06-16-2011 04:59 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2208229)
Facebook will give you updated code if you get it directly from their website:
http://developers.facebook.com/docs/.../plugins/like/



VB4 has a Facebook Like button built in, it just needs to be enabled.


BirdOPrey5:

I made a new "like" on the web you publish, but publish the new code I have another problem. If I click "like" on a thread, then it appears in all forums as if it had been here

The same thing happens with the first 2 codes are posted here.

regards

BirdOPrey5 06-16-2011 05:37 PM

In the code they give you, you need to change the URL... Replace the hard coded URL with this code:

Code:

$vboptions[bburl]/showthread.php?t=$thread[threadid]

mikelangelo2005 06-17-2011 12:56 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2208606)
In the code they give you, you need to change the URL... Replace the hard coded URL with this code:

Code:

$vboptions[bburl]/showthread.php?t=$thread[threadid]

BirdOPrey5

I'm more confused than before! LOL

This is the code that developers give me in "LIKE". http://developers.facebook.com/docs/.../plugins/like/

Where would include the code you give me?

IFRAME
Code:


<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmotofanaticos.com%2Fupload&amp;send=false&amp;layout=standard&amp;width=338&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:338px; height:80px;" allowTransparency="true"></iframe>


XFBML
Code:


<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/al...cript><fb:like href="http://motofanaticos.com/upload" send="false" width="338" show_faces="true" font=""></fb:like>

Thanks for your help!

BirdOPrey5 06-17-2011 02:22 AM

You should use the XFBML code like this:

Code:


<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="$vboptions[bburl]/showthread.php?t=$thread[threadid]" send="false" width="338" show_faces="true" font=""></fb:like>


mikelangelo2005 06-17-2011 07:08 AM

Thank you very much BirdOPrey5,

The code works fine. I tried it on INTERNET EXPLORER, FIREFOX & GOOGLE CHROME and works perfect on all three browsers, also published the titles in the wall?s facebook as published in the threads.

My code
Code:


<if condition="THIS_SCRIPT =='showthread'">
<div id="fb-root"></div><script src="http://connect.facebook.net/es_LA/all.js#xfbml=1"></script><fb:like href="$vboptions[bburl]/showthread.php?t=$thread[threadid]" send="false" width="338" show_faces="true" font=""></fb:like>
</if>


I changed en_US by es_LA for Spanish and additions to the first <if condition="THIS_SCRIPT =='showthread'"> and then at the end </if> to publish "LIKE" in all threads but not in private messages.

regards

dpnow 07-14-2011 05:47 PM

I'm finding that the 'like' appears briefly and then disappears. Can anyone help?

Ian

suko22 07-22-2011 06:38 AM

Quote:

Originally Posted by dpnow (Post 2220545)
I'm finding that the 'like' appears briefly and then disappears. Can anyone help?

Ian

use mikelangelo2005 code, I had same problem and it worked for me

G37Sam 10-12-2011 11:19 PM

I've even got it to work on vb4.0, added the code in the SHOWTHREAD template though so it appears once on every thread rather than on every post

Thanks for the code :)

amine13420 11-07-2011 04:46 PM

How can i put the button in the same line, but in the left it will be better, because here it's behind the quote, thank's button.


All times are GMT. The time now is 04:51 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.01513 seconds
  • Memory Usage 1,750KB
  • 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
  • (7)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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