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)

ARSamo 05-19-2010 09:38 AM

Error
Quote:

This webpage is not available.

The webpage at http://www.facebook.com/widgets/like.php?
solution plz urgently

WizKaz 05-19-2010 09:45 AM

It doesnt work with my site either. When I includ "google.com" to test it, it works fine. But if i insert my own URL, I always get an error: "site MYURL not found."
But even if I copy an paste the url from the error in my browser, i find the site.

Any ideas, pls? :(

Brandon Sheley 05-21-2010 05:10 PM

not working in IE even after the "IE fix" code

kall 05-21-2010 06:51 PM

Quote:

Originally Posted by Loco.M (Post 2041476)
not working in IE even after the "IE fix" code

That's because that's nothing to do with why IE isn't rendering the FBML. ;)

*grins* That might be what's up with the other one.. is mine rendering in Firefox?

Blacura 05-21-2010 07:05 PM

This does not work. It's frustrating that i will go through all the posts with various try this try that and it still does not work. when i click like it shows up briefly and then its gone and i have an error

kall 05-21-2010 07:23 PM

Quote:

Originally Posted by Blacura (Post 2041545)
This does not work. It's frustrating that i will go through all the posts with various try this try that and it still does not work. when i click like it shows up briefly and then its gone and i have an error

Clicking that 'Error' word will pop up a box that tells you what the error is.

cdoyle 05-24-2010 01:40 AM

I think I'm about ready to just remove the button from pages.

The new thing I'm noticing with it is, that once you click 'like' and close the browser. Then come right back, and it's forgotten that you already clicked it! You can click it again, and it then posts another message on your wall.

Not sure if this is a facebook thing or what.

Xtrigit 05-26-2010 04:55 PM

For people who cannot get it to work in IE, check out https://vborg.vbsupport.ru/showthread.php?t=243319
This also adds the comment box to the LIKE button.

StuSD 05-28-2010 04:54 PM

what file do I make the modifications in ?
I cant find that code in class_postbit or class_postbitalt
thanks

funmasti 05-30-2010 09:45 AM

can somebody tell me that the coding is w3.org Valid? bcoz my forum is error free

fmckinnon 05-31-2010 02:03 PM

Hi, I've installed in my postbits-legacy template (see below), but the button isn't showing up anywhere. I also tried the XFBML version (we have an AppID already for the Facebook Connect plugin) and it also didn't show. I'm not seeing any ERRORS on my page, just no "like" button. Below is the portion of my template ... and you can try to view any thread at:
http://www.theworshipcommunity.com/forums/
Quote:

<!-- controls -->
<iframe src="http://www.facebook.com/widgets/like.php?href=http://www.theworshipcommunity.com/forums/showthread.php$session[sessionurl]?p=$post[postid]&amp;show_faces=false&amp"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:25px"></iframe>

cdoyle 05-31-2010 03:05 PM

Quote:

Originally Posted by funmasti (Post 2045420)
can somebody tell me that the coding is w3.org Valid? bcoz my forum is error free

I don't believe it is, I believe the facebook code doesn't validate.

EagleNick 05-31-2010 07:58 PM

What happens when a user "Likes" a post/thread that isn't in a publicly-accessible section of the forum?

Is there any way to show the "Like" button for public threads/posts only?

captainslater 06-01-2010 04:41 AM

Just wanted to register my Forum-URL and Facebook said the URL is invalid.
So what would be a valid URL?

jayunsplanet 06-01-2010 06:21 PM

Hello,

This could be a great mod!

I attempted to use the "recommended" version of this mod on my forum. I added the if condition, and inputted my appID from Facebook, code to my postbit_legacy template as instructed. It does indeed add the like button to the first post in the thread. When I click on it to "Like" something, it quickly pulls up my picture and is about to "like" it and then it throws an error.

The error says, verbatim, "The page at http://www.mdstreetscene.com/forum/s...546&amp;page=2 could not be reached."

Any ideas?

Thanks.

Cla75 06-01-2010 09:03 PM

I have your same problem ...
placed the code in the postbit_legacy template, see i LIKE button, seems to work but then ERROR in the forum and nothing is published on FB.

I also tried to enter the forum Hubie ... this link ...
http://www.htceros.com/hd2-leo/284-e....html#post1019
I see the button LIKE, click and I get the same error:
Quote:

Me gusta
S? el primero de tus amigos al que le guste esto. ? Error
click error:
Quote:

The page at http://www.htceros.com/hd2-leo/284-errores-htc-hd2.html#post1019 is unreachable
?!?!!?? the LINK is correct

Why??

thanks for support

despo 06-02-2010 09:16 AM

Hello,

http://developers.facebook.com/setup/ on this link i add a name and URL, but when İ do that the system gives an error : Invalid url

Whats wrong ? Any one ? :s

Cla75 06-02-2010 09:59 AM

ou must add the / at the end of the link ...

eg http://www.vbulletin.org/

hubie 06-03-2010 12:11 AM

Quote:

Originally Posted by WizKaz (Post 2039735)
It doesnt work with my site either. When I includ "google.com" to test it, it works fine. But if i insert my own URL, I always get an error: "site MYURL not found."
But even if I copy an paste the url from the error in my browser, i find the site.

Any ideas, pls? :(

Have you tried putting "/" at the end of the url?

Quote:

Originally Posted by Loco.M (Post 2041476)
not working in IE even after the "IE fix" code

For me it works, but sometimes i have to refresh the page to get the button in IE. After refreshing, the button is shown on every page.

Quote:

Originally Posted by StuSD (Post 2044714)
what file do I make the modifications in ?
I cant find that code in class_postbit or class_postbitalt
thanks

You have to insert the code under </controls> or wherever you want in postbit/postbit_legacy (deppends wich template your site is using).

Quote:

Originally Posted by Cla75 (Post 2046701)
I have your same problem ...
placed the code in the postbit_legacy template, see i LIKE button, seems to work but then ERROR in the forum and nothing is published on FB.

I also tried to enter the forum Hubie ... this link ...
http://www.htceros.com/hd2-leo/284-e....html#post1019
I see the button LIKE, click and I get the same error:

click error:

?!?!!?? the LINK is correct

Why??

thanks for support

Cla75, i've tested that link and for me everything is working correctly. Also, the post content was posted right on my FB wall.

EagleNick 06-06-2010 05:09 PM

Quote:

Originally Posted by EagleNick (Post 2046190)
What happens when a user "Likes" a post/thread that isn't in a publicly-accessible section of the forum?

Is there any way to show the "Like" button for public threads/posts only?

???

jackburaks35 06-12-2010 08:04 PM

thank you :);)

Hellmaster 06-25-2010 06:44 AM

Just installed, working perfect, but... how to change de languaje to Spanish (Latinoamerica)?

Thanx!


*****

FIX: es_MX

hubie 06-25-2010 01:38 PM

Quote:

Originally Posted by rockdrig (Post 2059246)
Just installed, working perfect, but... how to change de languaje to Spanish (Latinoamerica)?

Thanx!


*****

FIX: es_MX

Just find:

... '//connect.facebook.net/en_US/all.js'; ...

and replace "en_US" for "es_MX" or "es_LA".

FitgirlWorld 06-26-2010 05:01 AM

Any way to get this to post an image and comment on the person's news feed/wall? This only adds a small link to "recent activity" on the person's facebook page?

thanks

Endertr 07-01-2010 08:19 PM

thanks..

kyokushin4life 07-10-2010 01:22 AM

I have a question.

I'm adding the template change to showthread template instead of postbit.(so like button is next to reply button) The facebook like button generates an invalid link. Ithink adding the change to the postbit template works.

What is the right template code that I can use in showthread template to get the like button to work?

Thanks!

HTML Code:

<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.example.com/forums/showthread.php$session[sessionurl]?p=$post[postid]&amp;layout=button_count&amp;show_faces=true&amp;width=&amp;action=like&amp;colorscheme=light"
scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:20px">
</iframe>


kyokushin4life 07-10-2010 01:43 AM

Got it.

Use t=$threadid in the code.

MagicThemeParks 07-13-2010 11:31 AM

kyokushin4life, so is it then like this?

HTML Code:

<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.example.com/forums/showthread.php$session[sessionurl]?t=$thread[threadid]&amp;layout=button_count&amp;show_faces=true&amp;width=&amp;action=like&amp;colorscheme=light"
scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:20px">
</iframe>


alehawk 07-20-2010 05:23 PM

I got problems with xfbml version, it giver me an error "You must specify an "href" attribute to the iframe. Something like <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fexample.com%2Ffoo%2Fbar .html"></iframe>"
If I use the iframe option It works but it wont allow the user to enter a comment.
Does anyone knows how to fix it?
Tnx!

hubie 07-22-2010 12:22 AM

Quote:

Originally Posted by alehawk (Post 2072109)
I got problems with xfbml version, it giver me an error "You must specify an "href" attribute to the iframe. Something like <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fexample.com%2Ffoo%2Fbar .html"></iframe>"
If I use the iframe option It works but it wont allow the user to enter a comment.
Does anyone knows how to fix it?
Tnx!

Have you installed another fb mod? I had the same problem when i installed facebook connect on my board.

alehawk 07-22-2010 11:37 AM

Ah yes, I got it, it may be that... tnx 4 the reply!

ram94401 07-25-2010 04:46 AM

Thank you hubie. I added like button next to Post Reply button in each thread. I like it this way instead of placing the like button after first post. Like button is more prominent if you place it in the top of thread -- just my thought.

I modfied showthread template. Find

Code:

<td class="smallfont"><a

href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"

rel="nofollow">

and create another td element after this td; place the iframe tag between the new td tags.

To see how it looks, see http://www.digitalbhoomi.in/forums/.

Complete code:

Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
        <if condition="$show['largereplybutton']">
        <td width="120px;" valign="top" class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a>
        </td>
        <td>
        <iframe scrolling="no" frameborder="0" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.digitalbhoomi.in/forums/showthread.php?t=$thread[threadid]&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=30" style="border: medium none; overflow: hidden; width: 450px; height: 30px;" allowtransparency="true"></iframe>
        </td>       
       
        <else />

I used iframe instead of xfbml. The reason is that xfbml needs Javascript SDK which mess up with flash ads in the page. Facebook has a solution for this, but it's not working. Moreover, I don't want to add too many javascripts in the forum page that will slow down the page loading.

soundbarrierpro 08-06-2010 12:56 PM

Anybody knows how this will work with vbSEO? How would you change standard URL format to SEO urls?

ex. http://www.mysite.com/forum-name/topic-name.html

?

Thank you

ram94401 08-07-2010 02:12 PM

Quote:

Originally Posted by soundbarrierpro (Post 2080043)
Anybody knows how this will work with vbSEO? How would you change standard URL format to SEO urls?

ex. http://www.mysite.com/forum-name/topic-name.html

?

Thank you

For Like URL, you dont need to optimize it for SEs. If you want to do it, I guess it may not be too difficult. Find the variable for forum name and topic name and format it the way you want it.

soundbarrierpro 08-07-2010 07:33 PM

Quote:

Originally Posted by ram94401 (Post 2080518)
For Like URL, you dont need to optimize it for SEs. If you want to do it, I guess it may not be too difficult. Find the variable for forum name and topic name and format it the way you want it.

The URL added to my FB page isn't a direct link to the topic I "like". Instead since my URL's are SEO'd, the link added on facebook is just my domain name. If a facebook friend clicks the link that was liked, it just goes to my base domain URL, not the topic.

I need to know how I can code http://www.YOURSITE.com/showthread.php$session[sessionurl]?p=$post[postid]&amp;show_faces=false&amp

To be an SEO’d URL

kall 08-07-2010 08:05 PM

Quote:

Originally Posted by ram94401 (Post 2080518)
For Like URL, you dont need to optimize it for SEs. If you want to do it, I guess it may not be too difficult. Find the variable for forum name and topic name and format it the way you want it.

That's not true. If vB says one URL, but when Facebook's spider hits it, it sees the vBSEO URL (or vice-versa), the Like will not work.

@soundbarrierpro: There is a thread at vbseo.com that deals with this, just search for Facebook over there. :)

paradoxx109 08-15-2010 01:37 AM

Hi, excellent mod, but I have 2 issues, I have already read every post here but nothing worked.

First: im using FF 3.5.10 and when I hit the like button, the pop up loops between like and unlike and wont stop.

Second: When you use it in IE, it works fine, but when you go to your FB wall the link redirects to a page not found, because is not including the post number.

Im using the IFrame code and vB 3.8.6PL1

Any tips?

paradoxx109 08-15-2010 06:04 PM

my second issue above has been already fixed.

Now i wonder, is there any way I can locate the like button just aside the twitter as in this mod

https://vborg.vbsupport.ru/showthread.php?t=248568

Any help will be appreciated.

hubie 08-15-2010 07:53 PM

Quote:

Originally Posted by paradoxx109 (Post 2084370)
my second issue above has been already fixed.

Now i wonder, is there any way I can locate the like button just aside the twitter as in this mod

https://vborg.vbsupport.ru/showthread.php?t=248568

Any help will be appreciated.

Post #4 of that thread explains how to locate the like button. Take a look to his code.

Carlos X 08-15-2010 08:07 PM

I have vbSEO installed, so does this work with the facebook like? o_O

And, I'm english spoken, I see another language in your ScreenCaps.


All times are GMT. The time now is 07:07 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.02509 seconds
  • Memory Usage 1,846KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (18)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