Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: tinoest on August 17, 2011, 04:54:43 PM

Title: FacebookLike button
Post by: tinoest on August 17, 2011, 04:54:43 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3105)

Add a facebook like button to all posts.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg834.imageshack.us%2Fimg834%2F4308%2Ffacebooklike.png&hash=022a2a92f1fa1b035d1d72377706d3b5e8c35882) (http://img834.imageshack.us/i/facebooklike.png/)

Instructions for use with the default theme.

SMF 1.1.x :

Admin -> Current Theme -> Tick Check Box Detailing Facebook Like

SMF 2.x :

Admin -> Configuration Settings -> Misc -> Modification Settings.

Changelog:

v 1.1 : Fixed bug in SMF 1.1.x display template description
v 1.0 : Initial Release
Title: Re: FacebookLike button
Post by: Shadow Queen on August 17, 2011, 10:24:00 PM
Very nice mod you have on here. I just install it on my forum.
Title: Re: FacebookLike button
Post by: juliegreen on August 19, 2011, 08:44:14 AM
i think your forum messed up http://mykingdom.smfhelper.net/%22http://mykingdom.smfhelper.net/index.php?topic=37.msg64;topicseen#new%22.

when you click on latest topics on frontpage you get 404.

Quote from: Shadow Queen on August 17, 2011, 10:24:00 PM
Very nice mod you have on here. I just install it on my forum.
Title: Re: FacebookLike button
Post by: Bancherd on August 19, 2011, 11:42:27 AM
Hmm, I have slight display problem.  Please see attached.
Title: Re: FacebookLike button
Post by: Shadow Queen on August 20, 2011, 11:13:30 PM
Quote from: juliegreen on August 19, 2011, 08:44:14 AM
i think your forum messed up http://mykingdom.smfhelper.net/%22http://mykingdom.smfhelper.net/index.php?topic=37.msg64;topicseen#new%22 (http://mykingdom.smfhelper.net/%22http://mykingdom.smfhelper.net/index.php?topic=37.msg64;topicseen#new%22).

when you click on latest topics on frontpage you get 404.

Quote from: Shadow Queen on August 17, 2011, 10:24:00 PM
Very nice mod you have on here. I just install it on my forum.

What should I do then? I'm on my site now and it's running fine for me?

I am link my forum to facebook to my account. And every topic I write to link it to fb and seem everybody get on it fine.

or try this topic Topic (http://mykingdom.smfhelper.net/index.php?topic=44.0) to see if that give you any problem's...

I check the error log on my foroum and it's fill up with errors

My Kingdom (http://mykingdom.smfhelper.net/index.php)
Title: Re: FacebookLike button
Post by: lexxie on September 07, 2011, 09:46:25 AM
Using 1.1.14 (Babylon Theme). Like Button tick box to enable LIKE button does not display.
Went to admin-->current theme-->

There is no tick box to enable the button.

Why is the tick box not showing up?
Title: Re: FacebookLike button
Post by: Shadow Queen on September 07, 2011, 07:55:22 PM
You should upgrade to 2.0 Gold?

Did you check the whole list in current theme settings?
Title: Re: FacebookLike button
Post by: lexxie on September 07, 2011, 08:32:21 PM
Is upgrading to 2.0 Gold a big deal w/ a lot of downtime? This is my first forum, so I've never upgraded before.

Yes, I looked in the whole list. I even logged out of the forum, cleared my cache and logged back in. No check box. ???
Title: Re: FacebookLike button
Post by: Shadow Queen on September 07, 2011, 08:55:08 PM
2.0 Gold is more safe to use. That what I heard. 2.0 Gold  don't have any problems getting on your forum. It be like your verson of SMF. Be the same thing.

Why don't you check in your features and Options to see if it there?
Title: Re: FacebookLike button
Post by: lexxie on September 08, 2011, 07:28:52 AM
Looked high and low for that check box. It's MIA. It just didn't install. Looked in all Admin Screens. This same mod creator also has a twitter mod with the same issue. Notes on this mod (& Twitter Mod) are sparse. It may just be for default theme. Who knows. There really just isn't much support here & especially not for mods. I had a different mod that won't install on certain themes before. Could be same situation.

Thanks for the info on 2.0. I'll look into it. I'm actually thinking of trying a different platform than SMF.
Title: Re: FacebookLike button
Post by: TheListener on September 08, 2011, 06:59:20 PM
@Lexxie Did you have any errors on install?

@Shadow Queen 1.1.14 is not that much different to 2.0
Title: Re: FacebookLike button
Post by: lexxie on September 09, 2011, 07:23:05 AM
No. No install errors at all.
Title: Re: FacebookLike button
Post by: TheListener on September 09, 2011, 06:40:35 PM
What is the link to your forum?
Title: Re: FacebookLike button
Post by: anicolac on September 12, 2011, 11:03:13 AM
Quote from: Bancherd on August 19, 2011, 11:42:27 AM
Hmm, I have slight display problem.  Please see attached.

En displaytemplate.php

Cambia el ancho de width:80px por width:100px:
Change the width width: 80px of width: 100px:

Quote// Show Facebook like icon
         if (!empty($modSettings['display_facebook_like'])) {
            if ($message['id'] == $context['topic_first_message'] || !empty($modSettings['display_facebook_like_all'])) {
            echo '<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>';
            }
         }
Title: Re: FacebookLike button
Post by: tassie73 on September 18, 2011, 08:09:46 PM
I installed this mod on my forum. It works fine, but the one thing I was advised is that any of my Facebook friends clicking the link from their Facebook page was actually logged into the forum as the person that liked the topic.....

IS there a setting that I am not using correctly or have others had the same issue?
Title: Re: FacebookLike button
Post by: jrstark on September 26, 2011, 03:36:17 PM
How can you add the Google+ and Twitter buttons to this?
Title: Re: FacebookLike button
Post by: TheListener on October 09, 2011, 10:20:26 PM
Quote from: jrstark on September 26, 2011, 03:36:17 PM
How can you add the Google+ and Twitter buttons to this?

Look for mods which do the same job.
Title: Re: FacebookLike button
Post by: Guillelmus on October 18, 2011, 10:15:37 AM
Nice mod. Should have option to disable it on closed boards, since those are shown in Facebook only as "Login"
Title: Re: FacebookLike button
Post by: NADINE_PICARD on October 19, 2011, 07:26:21 AM
Hi, I applied the mod and i don't saw anything... :( ... I am using the default board and from my FB link I didn't find where to put the FB code either ...

Is there anyone to help me to add it please...
Title: Re: FacebookLike button
Post by: PLAYBOY on October 20, 2011, 03:32:24 PM
I have installed it and liked a message but it didint post on my FB.
Any ideas?
Title: Re: FacebookLike button
Post by: NADINE_PICARD on October 25, 2011, 11:30:44 AM
Quote from: tinoest on August 17, 2011, 04:54:43 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3105)

Add a facebook like button to all posts.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg834.imageshack.us%2Fimg834%2F4308%2Ffacebooklike.png&hash=022a2a92f1fa1b035d1d72377706d3b5e8c35882) (http://img834.imageshack.us/i/facebooklike.png/)

Instructions for use with the default theme.

SMF 1.1.x :

Admin -> Current Theme -> Tick Check Box Detailing Facebook Like

SMF 2.x :

Admin -> Configuration Settings -> Misc -> Modification Settings.

Changelog:

v 1.1 : Fixed bug in SMF 1.1.x display template description
v 1.0 : Initial Release
Thank you , it work very well now...
Title: Re: FacebookLike button
Post by: 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.
Title: Re: FacebookLike button
Post by: Sefket on November 26, 2011, 10:04:20 PM
Can you make another modification of this so it links to you're forum username instead of it going to Facebook? I use 1.1.15
Title: Re: FacebookLike button
Post by: SlyBaldGuy on December 13, 2011, 01:22:52 AM
I've installed this Mod and checked every file manually to make sure it did install though I don't get the option in Admin > Current Theme to enable this Mod.  I'm using the Classic theme with 1.1.15.  Any ideas why I'm not seeing the option to enable the Mod?
Title: Re: FacebookLike button
Post by: Neplug on December 31, 2011, 10:23:06 AM
I'm installed the mod FacebookLikeV1.1.zip. I donĂ½ see the text to enable the button but I found two new squares, I checked both and ik see the like button in the post. But when ik click the button whats must happen then?
How must  I make a connection between my forumaccount and my facebook? In the profiel I don't have a option to do that. Thand for the help and my excuses for my bath english.
Title: Re: FacebookLike button
Post by: humbleworld on December 31, 2011, 09:13:11 PM
I installed this MOD in SMF version 2.0.2 and the installation was successful but I got this message on top of the header:
$txt['display_facebook_like'] = 'Show Facebook like icon in posts'; $txt['display_facebook_like_all'] = 'Show Facebook Like icon in all posts, Note Display Facebook Like has to be checked.';

the MOD didn't work but the installation was successful.
Title: Re: FacebookLike button
Post by: humbleworld on January 04, 2012, 05:07:41 AM
any solution to the above error? I have tried to fix it but to no avail. thanks in advance.
Title: Re: FacebookLike button
Post by: krash661 on January 07, 2012, 03:08:59 PM
Quote from: lexxie on September 08, 2011, 07:28:52 AM
There really just isn't much support here & especially not for mods.

I'm actually thinking of trying a different platform than SMF.

I Agree
Title: Re: FacebookLike button
Post by: krash661 on January 07, 2012, 03:17:17 PM
Some of us need this mod.Sounds like it does not work.And it appears that the creator doesn't seems to care to address the problems.
Title: Re: FacebookLike button
Post by: carlosdelarco on January 14, 2012, 10:24:03 AM
Spanish_es-utf8 translation, add this on Modifications.spanish_es-utf8.php

// MOD FacebookLike button
$txt['display_facebook_like'] = 'Mostrar icono "Me Gusta" en los mensajes';
$txt['display_facebook_like_all'] = 'Mostrar icono "Me Gusta" en todos los mensajes. Nota: Mostrar "Me Gusta" debe estar activado.';
Title: Re: FacebookLike button
Post by: impreza on January 25, 2012, 05:58:18 PM
Image count number of hits is hiding under the text report to moderator
Title: Re: FacebookLike button
Post by: zkhan86 on January 26, 2012, 02:59:01 AM
Facebook_Like v.2.0  installed this but got error of , not compatible.

My version is 2.0.2 !!!
Title: Re: FacebookLike button
Post by: impreza on January 28, 2012, 04:20:40 PM
In the browser, IE 8 looks like this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg855.imageshack.us%2Fimg855%2F4558%2F51114745.jpg&hash=e4f62f90d062d48ab56c162f9b2a929b8e107679)

Da can fix it somehow?

Title: Re: FacebookLike button
Post by: humbleworld on February 08, 2012, 01:54:57 AM
Since there was no solution, I just instead use Addthis code and placed it in every post. Now all is fine.
Title: Re: FacebookLike button
Post by: ctec67 on February 10, 2012, 11:37:22 AM
Enabled: Show Facebook like icon in posts
Disabled: Show Facebook Like icon in all posts, Note Display Facebook Like has to be checked.

But every post is showing 2 Facebook like icons :(

Seems this mod needs some more work.
Title: Re: FacebookLike button
Post by: tinoest on February 18, 2012, 05:17:38 PM
Quote from: ctec67 on February 10, 2012, 11:37:22 AM
Enabled: Show Facebook like icon in posts
Disabled: Show Facebook Like icon in all posts, Note Display Facebook Like has to be checked.

But every post is showing 2 Facebook like icons :(

Seems this mod needs some more work.

I would suggest that is due to the modification getting installed twice for some reason.
Title: Re: FacebookLike button
Post by: tsis_k on April 27, 2012, 10:40:37 AM
I installed successfully in SMF 2.0.2 but I do not see the checkboxes for "Show Facebook like icon in posts" and "Show Facebook Like icon in all posts".

I go to Admins > Configuration > Modification Settings > Miscellaneous but there is no facebook check boxes available there. Just a blank page. Oh and I manually add the code to ManageSettings.php
Title: Re: FacebookLike button
Post by: Robert. on May 08, 2012, 03:16:28 AM
Nice mod :) You might want to consider a database installation script, though, to be sure all the settings are added to the database. You might want to check this out: http://www.simplemachines.org/community/index.php?topic=350344.0 :)
Title: Re: FacebookLike button
Post by: Harvester on May 10, 2012, 11:19:44 AM
I just installed this.. I did it manually via the parser and it works fine... BUT...

I have realized two things... it does NOT Link to Facebook... it just LOOKS like a "Like" its not a functional Facebook Like in Firefox or Chrome.. in IE it will send you to facebook....

and if you like a specific post... the total next to each Like on each post in the entire thread increases by 1... you can NOT just like a specific post...
what I mean is if there are 12 posts in a thread and post #9 is one I really appreciate... I would want to Like post #9 only.  WHen I hit the like on Post #9 my like is transferred to ALL 12 posts when all I wanted was my Like to be on post #9

Is there anyway to make it NOT do that and to just like a specific post?
Title: Re: FacebookLike button
Post by: 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.
Title: Re: FacebookLike button
Post by: TheListener on May 15, 2012, 11:21:41 PM
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.
Title: Re: FacebookLike button
Post by: HRM on July 11, 2012, 02:09:18 PM
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 :/
Title: Re: FacebookLike button
Post by: HRM on July 11, 2012, 02:19:36 PM
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!!
Title: Re: FacebookLike button
Post by: HRM on July 11, 2012, 04:12:35 PM
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
Title: Re: FacebookLike button
Post by: Tiensg on August 19, 2012, 02:15:32 PM
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.
Title: Re: FacebookLike button
Post by: minos on September 16, 2012, 07:56:04 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FeKSOP.png&hash=50ae8bf59583aabdcf7359111a67044d40410438)

installed on a dark theme but theres a mark after button , how  i can take it off?
Title: Re: FacebookLike button
Post by: kamili34 on September 17, 2012, 02:57:45 PM
Great mod was looking for this.
Title: Re: FacebookLike button
Post by: Hristo on September 24, 2012, 04:48:32 PM
Quote from: minos on September 16, 2012, 07:56:04 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FeKSOP.png&hash=50ae8bf59583aabdcf7359111a67044d40410438)

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"
Title: Re: FacebookLike button
Post by: my-t3 on September 25, 2012, 09:56:40 AM
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.
Title: Re: FacebookLike button
Post by: tinoest on September 25, 2012, 10:13:39 AM
It should use the favicon or main image for the forum.

I'll investigate later to see if I can replicate.
Title: Re: FacebookLike button
Post by: my-t3 on September 25, 2012, 01:39:46 PM
OK thanks.
Title: Re: FacebookLike button
Post by: tinoest on September 25, 2012, 03:08:17 PM
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....
Title: Re: FacebookLike button
Post by: 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.
Title: Re: FacebookLike button
Post by: tinoest on September 26, 2012, 03:06:24 PM
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
Title: Re: FacebookLike button
Post by: jmil on February 06, 2013, 12:45:27 PM
Installed on a Custom Theme 1.1.18 _ WORKED GREAT - THank You!
Title: Re: FacebookLike button
Post by: geezmo on February 10, 2013, 02:04:05 PM
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.
Title: Re: FacebookLike button
Post by: Apllicmz on October 11, 2014, 01:12:57 AM
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>
Title: Re: FacebookLike button
Post by: MaryLouW on August 05, 2015, 07:29:04 PM
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?
Title: Re: FacebookLike button
Post by: neggard on December 16, 2015, 06:51:12 PM
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?
Title: Re: FacebookLike button
Post by: Black Tiger on December 18, 2015, 10:47:41 PM
I'm also wondering if there is still a working facebook "like" thing around for 2.0.11.;)