News:

Wondering if this will always be free?  See why free is better.

Main Menu

FacebookLike button

Started by tinoest, August 17, 2011, 04:54:43 PM

Previous topic - Next topic

TheListener

Quote from: ninja111 on May 15, 2012, 11:17:34 PM
this mod made my site corrupted. I had to delete this mod to make my site halfway work again.  :-\
This mod isn't safe to use.

Why isn't the mod safe to use?

Works perfectly on both my forums with no errors.

HRM

Quote from: ENRESINADO on November 04, 2011, 07:59:39 AM
I'm using SMF 1.1.15 and I have installed this mod.

I've enabled the two options, Display Facebook Like and Display Facebook Like icon in all posts, and so far so good.

When I opened a topic, all the replies to that topic had the like button, but when I clicked on the like button on a specific reply that I liked, all the replies got 1 like, and in my Facebook wall appeared a link to the main topic, not to the reply I liked.

Is this the right way that this mod works, or it can be a bug in my forum?

Thanks.

Tnx for explaining what it should do, was just looking for that.. but in your case at least it does post something. :0  I did everything the same but doesnt work :/
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

HRM

#42
QuoteTnx for explaining what it should do, was just looking for that.. but in your case at least it does post something. :0  I did everything the same but doesnt work :/
leave it ... Sorted it out yet..it doesnt work in my modified theme but does work in the default theme :D

AFter saw it working put back my modified theme and it kept working.
Great mod!!

Thanks tinoest!!
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

HRM

eh..said too much too soon,it worked about 6 times with 2 users and then it stopped working ... YOu can click the button but doesnt remained clicked and FB login screen does close abrupt after logging in as well ... Any idea? Using SMf 1.1.16
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

Tiensg

I find it very funny. Although we can see all Facebook Like icon in the posts, but when you just click for one Like, it will automatically "LIKE" all posts in the thread. I don't think it should be working in this way. Weird.

minos



installed on a dark theme but theres a mark after button , how  i can take it off?

kamili34

Great mod was looking for this.

Hristo

#47
Quote from: minos on September 16, 2012, 07:56:04 PM


installed on a dark theme but theres a mark after button , how  i can take it off?

The button width in this mod is set to 80px and this is good for the English "Like". The Spanish "Me gusta" is longer and only a part of the counter is visible.

Open with some text editor the modification2.xml file (this one is for 2.0.x, the modification.xml is for 1.1.x) . Find this tag:
<iframe src="http://www.facebook.com/plugins/like.php?href=', $scripturl, '?topic=', $context['current_topic'], '&amp;layout=button_count&amp;show_faces=true&amp;width=80&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:21px"></iframe>

There are two "80" - you have to play with them (in your case 110 should be OK, even for 2 digits counter).

Because you are using Spanish button I would recommend you to add and your locale code, so it always will be in Spanish (I wanted it in Bulgarian and the original code sometimes showed the button in Bulgarian and sometimes in English, so I had to add my locale code too). For Spanish the line with the locale code is:
locale=es_ES&amp;
As example you can insert it just before layout=button_count&amp;   ... or after it if you wish

Here is a list with all Facebook locale codes:
http://fbdevwiki.com/wiki/Locales

Your theme is dark, so you may try the gray button - change colorscheme=light with colorscheme=dark

I prefer "Recommend" over "Like", so changed action=like with action=recommend
Also I wanted the button's background to be transparent in IE, so added allowTransparency="true" (in my case just before ></iframe> )

Want some other adjustments?:
http://developers.facebook.com/docs/reference/plugins/like/

For the mod author:
Probably this is not so important, but show_faces=true should be show_faces=false for this kind of FB buttons.

Thanks for the mod!

Edit: One last touch - the button was vertically misaligned, here is the fix:
Find (in modification2.xml/modification.xml):
style="border:none; overflow:hidden; width:80px; height:21px"

Replace:
style="border:none; overflow:hidden; width:80px; height:21px; vertical-align:bottom"

my-t3

Hi folks,

I've got the Facebook Like button package installed. When a user 'Likes' a post it displays in their recent activity window on their Facebook profile.

BUT...

The image that is displayed is a pixelated 'User PM' icon. Not the logo for the forum. Is it possible to have the same image used regardless of which post is liked on the forum?

Cheers.

tinoest

It should use the favicon or main image for the forum.

I'll investigate later to see if I can replicate.

my-t3


tinoest

Quote from: my-t3 on September 25, 2012, 01:39:46 PM
OK thanks.

It seems like it is facebook doing that , with mine I get the icon for the site. I can't see anywhere in the facebook developers guide to specify an image of what you want to 'like' either....

my-t3

Would you mind taking a look at my site if I PM you the details?
I've tried again today and it still doesn't seem to be working as it should.

tinoest

#53
Quote from: my-t3 on September 26, 2012, 04:13:16 AM
Would you mind taking a look at my site if I PM you the details?
I've tried again today and it still doesn't seem to be working as it should.

Can you post a url that you would 'like' into this debugger please ?

http://developers.facebook.com/tools/debug

An let me know what image is returned.

Actually found the issue:

I have the following meta tag

<meta property="og:image" content="url for your image here"/>

if you add this to your index template with the image you want to display which is 200px * 200px ( roughly ) then it will display that on your posts.

It should go where the other meta tags are generated by SMF , if you want to attach your index template , I will do the change for you

jmil

Installed on a Custom Theme 1.1.18 _ WORKED GREAT - THank You!

geezmo

Installed on a custom theme, SMF version 2.0.3. It installed OK, except that the number of likes increases for all posts and not for a specific post. For example, even if I liked only the first post, all the posts in a thread increases in number of likes.

How to make sure that only the liked post will have the likes and not all the posts in the thread?

Thanks.

Apllicmz

Nice Work
when Update dont forget portuguese file


<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['display_facebook_like'] = 'Mostrar Facebook como &iacute;cone no postes';
$txt['display_facebook_like_all'] = 'Mostrar &iacute;cone do Facebook Como em todas os postes, n&atilde;o exibe Facebook Like se ja foi verificado.';
]]></add>
        </operation>
    </file>

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['display_facebook_like'] = 'Mostrar Facebook como &iacute;cone no postes';
$txt['display_facebook_like_all'] = 'Mostrar &iacute;cone do Facebook Como em todas os postes, n&atilde;o exibe Facebook Like se ja foi verificado.';
]]></add>
        </operation>
    </file>



MaryLouW

I installed this mod earlier today and it seemed to install okay but when the Like button was clicked, I got an error message that I don't know how to handle.  Can anyone help?

If not, is there another similar mod that can put a simple like button on a topic and NOT connect anything to Facebook?

neggard

I just installed this plugin and enable the checkboxes.
I cant se any FaceBook like icon.

Too old version or do I need to do anything else?

Black Tiger

I'm also wondering if there is still a working facebook "like" thing around for 2.0.11.;)
Greetings, Black Tiger

Advertisement: