Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Aleksi "Lex" Kilpinen on December 13, 2010, 04:16:04 PM

Title: Facebook and Twitter Sharer
Post by: Aleksi "Lex" Kilpinen on December 13, 2010, 04:16:04 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2827)

Notice! This mod is apparently broken at the moment, because of changes made by Facebook. I may work to fix this later, but no promises. - Lex

Facebook & Twitter Sharer Mod 2.0
With Optional Database Settings Uninstaller Built In
By Aleksi "Lex" Kilpinen

COMPATIBLE WITH SMF 2.0 RC4 -> SMF 2.0

Support for Curve and Core built in, will support most themes based on either one,
and any theme that doesn't have it's own Display.template and uses Curve's or Core's Display.template instead.

This mod adds easily customizable, and translatable Facebook Share and Twitter Tweet -buttons to topic view.

You can customize the FB button text, by editing the language string
$txt['facebooksharer_button'] in Modifications.{your language}.php
English and Finnish strings included in the package.

Notice!
Upon installation this mod will add two database columns named facebooksharer_board_enable and twittersharer_board_enable in to the boards table of your forums database. These columns hold the boardsettings for this mod.

SharerWithDBUninstall.zip version of the package, upon uninstallation will remove the same columns,
so after uninstalling, the settings for this mod will not be retained.

SharerNoDBUninstall.zip version of the package, upon uninstallation will not remove the same columns,
so after uninstalling, the settings for this mod will be retained.

Also, a separate uninstallsharer.php available, that removes the columns if you should need it.

Release History
- 06.07.2011, Released 2.0 Adding Twitter support :) Removed 1.* versions from modsite.
- 06.07.2011, Fixed fatal error upon install, in case settings were already in the DB.
                      Changed the board setting default value to be activated.
- 05.07.2011, Added 2.0 Final compatibility.
- 12.02.2011, Added RC5 compatibility.
- 04.02.2011, Found the actual reason for Core failing in 1.0 - Reverted changes in 1.1, and fixed the error from 1.0. Also fixed typos.
- 03.02.2011, 1.1 Fixed Core compatibility, at the same time making it more prone to fail - will see later if there's a better way to do this.
- 06.11.2010, Submitted 1.0 for the Cust.Site.

Licence:
(http://i.creativecommons.org/l/by-sa/3.0/88x31.png) (http://creativecommons.org/licenses/by-sa/3.0/)
Facebook Sharer Mod (http://custom.simplemachines.org/mods/index.php?mod=2827) by Aleksi "Lex" Kilpinen (http://www.simplemachines.org/community/index.php?action=profile;u=136049) is licensed under
a Creative Commons Attribution-ShareAlike 3.0 Unported License. (http://creativecommons.org/licenses/by-sa/3.0/)
Title: Re: Facebook Sharer Mod
Post by: unformatted_ on December 14, 2010, 07:00:57 AM
Its possible to show all comments on facebook from the topics posted via rss?
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on December 14, 2010, 07:07:25 AM
Like I said in Show facebook comments on topic (http://www.simplemachines.org/community/index.php?topic=412846.0) it's actually up to Facebook - and since FB usually only displays you (or anyone) info on people you already know,
it would not be too easy to manufacture something that would allow you to follow up on everything people do.
Title: Re: Facebook Sharer Mod
Post by: qubbah on December 20, 2010, 11:35:32 AM
soo many board to enable setting. is the any option to including all boards automatically?
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on December 20, 2010, 11:49:59 AM
Not at the monent, no - but that's a good idea, and I'll try to remember that for the future. :)
Title: Re: Facebook Sharer Mod
Post by: C4G-TK on December 22, 2010, 07:49:14 PM
@ Lex

I've been loving your mod and so have my members.  There's just one thing that I'm trying to figure out how to control.  The person is allowed to choose which thumbnail to use for their post before they share it on Facebook.  Unfortunately, it is pulling in the images that people use from their signatures.  Is there some way to block it from pulling the images from the signatures and/or to always pull a generic image that you create for the site, so people can't choose? 

It isn't necessarily a problem, but I don't want people advertising the ad images from signatures via the mod onto Facebook because it appears that I'm "spamming" or trying to "solicit" some kind of money by it doing so.
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on December 22, 2010, 11:37:17 PM
Sorry, no - Facebook controls that side of the functionality.
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on December 23, 2010, 12:13:37 AM
Actually, I first only thought of how to limit some images out - but then I came to think that FB might offer a setting to force it to use one and the same image always - but that would then completely remove the option to choose. I'm not sure of this though, and will have to look in to it.
I'm a bit busy with christmas and all for the next few days, but I'll get back to this later on.
Title: Re: Facebook Sharer Mod
Post by: DanteOz on December 23, 2010, 10:08:05 AM
does it have share & like button on topics & like button in the board index?
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on December 23, 2010, 11:49:19 AM
No, like it says in the description it just adds a share button to topics. No like button anywhere, no button at all on index.
Title: Re: Facebook Sharer Mod
Post by: SA™ on December 23, 2010, 12:24:57 PM
you can specify an image with meta tags

http://developers.facebook.com/docs/share

scroll down to Sharing Rich Media
Title: Re: Facebook Sharer Mod
Post by: C4G-TK on December 24, 2010, 02:32:09 PM
Thanks for checking, Lex.

I'm travelling myself right now and my wireless card has died, so just got back from BestBuy on Xmas Eve with a USB Wireless Adapter to bide me until I get home.

Enjoy your holiday!
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on December 28, 2010, 02:45:51 AM
Quote from: C4G-TK on December 22, 2010, 07:49:14 PM
@ Lex

I've been loving your mod and so have my members.  There's just one thing that I'm trying to figure out how to control.  The person is allowed to choose which thumbnail to use for their post before they share it on Facebook.  Unfortunately, it is pulling in the images that people use from their signatures.  Is there some way to block it from pulling the images from the signatures and/or to always pull a generic image that you create for the site, so people can't choose? 

It isn't necessarily a problem, but I don't want people advertising the ad images from signatures via the mod onto Facebook because it appears that I'm "spamming" or trying to "solicit" some kind of money by it doing so.

Okay, now - It would seem this should work.

Just add a line in your meta tags, with the following

<meta property="og:image" content="URL_to_thumbnail_image" />

So for example

<meta property="og:image" content="http://www.simplemachines.org/community/custom_avatars/avatar_200382_1275969085.png" />

To use your avatar here as a thumbnail image.

The following restrictions apply:

The og:image is the URL to the image that appears in the Feed story. The thumbnail's width AND height must be at least 50 pixels, and cannot exceed 130x110 pixels. The ratio of both height divided by width and width divided by height (w/h, h/w) cannot exceed 3.0. For example, an image of 126x39 pixels will not be displayed, as the ratio of width divided by height is greater than 3.0 (126/39 = 3.23). Images will be resized proportionally.



Title: Re: Facebook Sharer Mod
Post by: taucher on January 03, 2011, 07:17:36 AM
Is it possible to post also the title to facebook, not only the url?
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on January 03, 2011, 07:45:45 AM
It gets the page title for the topic you are sharing, so what's the problem exactly?
Title: Re: Facebook Sharer Mod
Post by: taucher on January 03, 2011, 08:08:04 AM
when i testet it, there was no page-title on facebook, only the link :(
Title: Re: Facebook Sharer Mod
Post by: taucher on January 03, 2011, 08:11:23 AM
ok - got it. sorry - my failure. Was in maintenance mode.
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on January 03, 2011, 08:23:34 AM
Yep, you have to give guests access to the topics you are sharing, or it won't work correctly ;)
Title: Re: Facebook Sharer Mod
Post by: impreza on January 03, 2011, 08:39:55 AM
Very cool addition - thank you
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on January 04, 2011, 01:25:26 AM
You're welcome :)
Title: Re: Facebook Sharer Mod
Post by: Faustus on January 24, 2011, 08:07:29 AM
Running a fresh install of 2.0 RC4 using the core theme.

Installed the mod without error. Enabled the master on check box.

Turned it on for my general discussion forum, but the share button/link does not appear.
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on January 24, 2011, 08:13:43 AM
OK, if you change to Curve for a second - does it work with Curve?
Also, after you have installed it, activated it, and turned it on for that board - do any errors come up in your error logs?
Title: Re: Facebook Sharer Mod
Post by: Faustus on January 24, 2011, 09:00:43 AM
Quote from: LexArma on January 24, 2011, 08:13:43 AM
OK, if you change to Curve for a second - does it work with Curve?
Also, after you have installed it, activated it, and turned it on for that board - do any errors come up in your error logs?

Yeah you're right. Several mods I've had issue with worked perfect with curve... I guess I should just stick with it.
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on February 03, 2011, 05:45:26 AM
There seems to be indeed a small glitch with Core, I'll fix this tomorrow if I have the time ;)
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on February 04, 2011, 08:17:16 AM
Reverted my changes from yesterday, after finding out the actual problem in Core install not working was due to a typo in 1.0 - Fixed the typo, and some other small typos, and released 1.2 today. Hope it works for everyone, it works for me :)
Title: Re: Facebook Sharer Mod
Post by: totaltutankoll on February 05, 2011, 11:01:00 AM
Absolutely super and much better than anything similar I've tried out before. To be able to chose which boards to be able to share on a message board lika mine which is mainly closed down for the public i super. No more stupid dead end links to "you have no permission to visit this board" which would drive myself as a visitor almost insane.

Super in all it's simplicity! THANKS for sharing :)
Title: Re: Facebook Sharer Mod
Post by: Aleksi "Lex" Kilpinen on February 05, 2011, 11:02:13 AM
You're welcome, and thanks for the feedback :)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: City Builder on February 12, 2011, 05:52:14 AM
Hi,

I've installed this mod on my SMF RC4 forums.  It seems to work as the button appears on the threads in the board that I've chosen, however...

When the pop up window appears, the thumbnails that I can choose from are all the avatars of the members that have written something in the thread that I want to share instead of the actual thumbnail images that the members have uploaded to that thread.

I have a mod named Highslide installed which is a nice pic viewer of the images that the user submits to their message so don't know if that is what is causing the issue or if there is a problem with this mod.

Any help to get this working properly with the thumbnails would be greatly appreciated.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on February 12, 2011, 06:16:40 AM
The Popup uses images that it can see on the page, and how it selects those images is up to Facebook. Just make sure guests can see the images, and Facebook should be able to pick them up. If not, I do not know what to do, since that is not actually a function in the mod, but in Facebook itself.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: City Builder on February 12, 2011, 06:27:43 AM
Okay, thank you.  Allowing guests to see attachments will fix this.

I guess I'll have to decide whether to allow all guests to see and download attachments or unfortunately not have to use your great mod.  I think it likely that it would be a drop in our new subscribers if they don't have to register to download our files or see images without registering.

Anyway, thank you for the information.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: pgordemer on February 13, 2011, 04:42:33 PM
You can force Facebook to use a specfic image for your site.

Here is a sample meta code to add to index.template.php before the </HEAD>

        // Facebook meta code START PMG
        echo '<meta property="og:image" content="http://canvascampers.com/images/cc_fb_50.png" />';
        // Facebook Meta code END PMG
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: City Builder on February 13, 2011, 04:51:59 PM
When I add that code I get the following:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/account1/my.com/Themes/default/index.template.php on line 176
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on February 14, 2011, 12:59:36 AM
In case you need to force an image, you can use this. But this will remove the option to select an image based on the page completely. The best place to put this, would be where all other meta lines already are. ;)

Quote from: LexArma on December 28, 2010, 02:45:51 AM
Okay, now - It would seem this should work.

Just add a line in your meta tags, with the following

<meta property="og:image" content="URL_to_thumbnail_image" />

So for example

<meta property="og:image" content="http://www.simplemachines.org/community/custom_avatars/avatar_200382_1275969085.png" />

To use your avatar here as a thumbnail image.

The following restrictions apply:

The og:image is the URL to the image that appears in the Feed story. The thumbnail's width AND height must be at least 50 pixels, and cannot exceed 130x110 pixels. The ratio of both height divided by width and width divided by height (w/h, h/w) cannot exceed 3.0. For example, an image of 126x39 pixels will not be displayed, as the ratio of width divided by height is greater than 3.0 (126/39 = 3.23). Images will be resized proportionally.

Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Dan_y2k on March 07, 2011, 03:23:34 PM
Brilliant mod! Kudos!!! Keep it updated... I like it ALOT! Good job, and thanks for this great mod! :)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on March 07, 2011, 11:25:02 PM
Thank you :)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: sammyboy405 on March 14, 2011, 06:35:43 PM
The Like Seems to work fine.. but for the Life of me i cannot get the FB Connect button on the login?

I made sure

After :
<p><input type="submit" value="', $txt['login'], '" class="button_submit" /></p>

I Put :
echo'<p>';show_facebook();echo'</p>';

Still No Joy..  What Am i missing to get the FB Connect Button to appear for Login?
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on March 15, 2011, 12:25:13 AM
This mod does not do likes nor connects, just shares.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: maximumrock on March 17, 2011, 11:41:01 PM
This is as great MOD!! Thanks!!  This is on SMF 2.0 RC5

Just got one question though. Prior to having this MOD. I had the Facebook_Like_V.1.4 mod in place......But once i installed your FBSharer_1.3 MOD.....It makes the Facebook_Like_V.1.4 mod not appear on the forum anymore.. Does the Sharer override the "like" one?

Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on March 18, 2011, 12:31:20 AM
I'm not sure - I haven't tested them together, so I don't know, but it's possible that they don't work well together since they are both FB tools, and basically very similar in funtionality.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: maximumrock on March 18, 2011, 12:57:53 AM
yeah, could be.. i remember having a similar issue once on wordpress... now i just have to decide what is used more.. the share or likes!....i am guessing the "Share" is used more..
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: kizer on March 24, 2011, 06:22:38 PM
Is there a way to force the share button all the way to the right because it looks kinda out of place hanging out behind the Topic Title.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on March 25, 2011, 02:34:45 AM
Probably there is a way, but I haven't yet come up with a smart and easy way to do that. I have been thinking the same though.
Let's just say for now, that I'm going to be working on finding a better place for the button at some point when I find time to do it.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: odtukmt on March 28, 2011, 05:39:50 PM
Firstly, congratz for such a great addon   ;)

I manage our Student Club's forum and I'm using SMF 2.0 RC5. Your addon works perfect at the forum.

Due to the fact that the forum should only be visible to the registered students, I have limited the permissions and visitors cannot see the topic's content, however, they are able to see the topics, categories etc.

When I share a topic on Facebook, "Login" text is shown instead of the topic. Is it possible to overcome this problem without letting visitors to see the content?
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on March 28, 2011, 11:52:11 PM
Not really. I think you can use meta tags to force a topic and a static thumbnail for the shares, but that kind of defeats the purpose of sharing topics instead of sharing the forum index.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Bobn on March 31, 2011, 11:38:49 PM
Using RC 5 fresh install with the "Touch" theme. It does not seem to work do I have to do a manual install?l
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on April 01, 2011, 02:26:43 AM
I do not know the theme in question, so I can't say anything for sure.
Was the theme installed already before you installed the mod?
What part of the mod doesn't work? Or does it work at all?
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Bobn on April 01, 2011, 06:48:27 AM
Quote from: Guybrush Threepwood on April 01, 2011, 02:26:43 AM
I do not know the theme in question, so I can't say anything for sure.
Was the theme installed already before you installed the mod?
What part of the mod doesn't work? Or does it work at all?

Hi, theme first then the mod. I dont see the "facebook" button
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on April 01, 2011, 06:49:10 AM
Did you check the settings? Is there any boards selected for the mod?
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Bobn on April 01, 2011, 07:31:30 AM
Quote from: Guybrush Threepwood on April 01, 2011, 06:49:10 AM
Did you check the settings? Is there any boards selected for the mod?


Yes,, Also it appears it works with the default theme. Do you know what edits might be required to use it with my theme?
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on April 01, 2011, 07:42:59 AM
If it appears correctly with the default theme, then most likely your theme has a Display.template.php of it's own, and the mod edits were not done to it correctly. You could parse the mod on the modsite to see what edits are supposed to be done to that file upon installation of the mod.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Bobn on April 01, 2011, 07:50:22 AM
Quote from: Guybrush Threepwood on April 01, 2011, 07:42:59 AM
If it appears correctly with the default theme, then most likely your theme has a Display.template.php of it's own, and the mod edits were not done to it correctly. You could parse the mod on the modsite to see what edits are supposed to be done to that file upon installation of the mod.

I tried that but my displa.template.php does not have the lines as per the edit
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Bobn on April 01, 2011, 07:52:23 AM
completely display.template.php here
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on April 01, 2011, 07:57:14 AM
Quote from: Bobn on April 01, 2011, 07:52:23 AM
completely display.template.php here
If you could instead attach the actual file here - I might be able to do something for you.
Not right now though, not for the next 24 hours or so - I'm a bit tight on time at the moment...
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Bobn on April 01, 2011, 05:49:38 PM
Quote from: Guybrush Threepwood on April 01, 2011, 07:57:14 AM
Quote from: Bobn on April 01, 2011, 07:52:23 AM
completely display.template.php here
If you could instead attach the actual file here - I might be able to do something for you.
Not right now though, not for the next 24 hours or so - I'm a bit tight on time at the moment...

Thanks a bunch!!
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on April 03, 2011, 06:16:59 AM
Try this, but just in case - keep a back up of the original, if for nothing else, then to be able to cleanly uninstall this as well later on if needed.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Bobn on April 03, 2011, 08:26:04 AM
Quote from: LexArma on April 03, 2011, 06:16:59 AM
Try this, but just in case - keep a back up of the original, if for nothing else, then to be able to cleanly uninstall this as well later on if needed.

Worked like a charm! Thanks for taking your valuable time to do this:)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on April 03, 2011, 09:45:28 AM
No problem :)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: maximumrock on April 06, 2011, 10:30:19 AM
Hey Lex..

I had another question. The mod has been working great so far. But when people share it on fb. 
Below the subject title (which is the link on fb).....it doesnt show a preview of the thread, in the share at all, only the post subject title again.....Any suggestions on that?

Thx
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on April 06, 2011, 11:58:29 AM
Will have to test this out at some point before I say anything to that, but I'll try to get back to you on that one.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on April 12, 2011, 04:47:46 AM
Quote from: maximumrock on April 06, 2011, 10:30:19 AM
Hey Lex..

I had another question. The mod has been working great so far. But when people share it on fb. 
Below the subject title (which is the link on fb).....it doesnt show a preview of the thread, in the share at all, only the post subject title again.....Any suggestions on that?

Thx
I've tested this a bit - And I have to admit I have no idea why it does that.
But I'll try to dig in to the functionality a bit more later...
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Apllicmz on May 31, 2011, 02:20:48 PM
Thanks man work fine
when Update dont forget portuguese

<file name="$themedir/languages/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
//Begin Facebook Sharer Mod by LexArma translate by candidosa2
$txt['facebooksharer_allow'] = 'Permitir que os t&oacute;picos sejam partilhado no Facebook? (Master setting)';
$txt['facebooksharer_board_enable'] = 'Permitir que os t&oacute;picos  sejam partilhado no Facebook deste f&oacute;rum';
$txt['facebooksharer_board_enable_desc'] = 'Esta op&ccedil;&atilde;o permite que as pessoas usam o Facebook partilhados nos quadro selecionados.';
$txt['facebooksharer_button'] = 'Partilhar';
//End Facebook Sharer Mod by LexArma Suport smfpt

]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
//Begin Facebook Sharer Mod by LexArma translate by candidosa2
$txt['facebooksharer_allow'] = 'Permitir que os t&oacute;picos sejam partilhado no Facebook? (Master setting)';
$txt['facebooksharer_board_enable'] = 'Permitir que os t&oacute;picos  sejam partilhado no Facebook deste f&oacute;rum';
$txt['facebooksharer_board_enable_desc'] = 'Esta op&ccedil;&atilde;o permite que as pessoas usam o Facebook partilhados nos quadro selecionados.';
$txt['facebooksharer_button'] = 'Partilhar';
//End Facebook Sharer Mod by LexArma Suport smfpt

]]></add>
        </operation>
    </file>

Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on May 31, 2011, 02:32:06 PM
Honestly thank you, but I rather not pile up translations inside the package. I could however collect ready translated string like yours to the first post, where people could just grab them and add to their own Modifications.*lang*.php if they wish.
That ok with you? :)

Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Apllicmz on May 31, 2011, 10:54:59 PM
Yes is ok
no problems
thank you
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: C4G-TK on June 18, 2011, 08:04:12 PM
Seems to be working fine on 2.0.  I just emulated RC5 for install and all was fine.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on June 19, 2011, 12:44:53 AM
Thanks :) I believe it should work fine on Final too, just haven't gotten around to update it...
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: C4G-TK on June 19, 2011, 01:34:00 AM
That's what I mean.  I couldn't get it to install on 2.0 Final w/o emulating RC5.  I got the "package you are trying to install is either corrupt or blah blah blah" notice.  It works on 2.0 once I emulated though.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on June 19, 2011, 02:09:06 AM
Yep, I was just confirming that. Thanks for letting others know too, though :)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: S.T.A.R.S on June 24, 2011, 12:28:49 PM
Hey mate.

I have a minor problem with your mod :(

I have noticed that when i install the mod to my forum and emulate the version to SMF 2.0 RC5, it installs fine. But once installed i cannot view or use the features, its like it didn't install.

How come?
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on June 24, 2011, 01:32:42 PM
Check out if it works OK on english, if it does - then it installed OK, but your language strings are missing and in need of manual edits ;)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: S.T.A.R.S on June 24, 2011, 01:49:34 PM
Could you help me out with these manual edits?  :D
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on June 24, 2011, 03:35:59 PM
Yeah, check out the manual install instructions on the mod download page, and copy the lines added to modifications.english.php to modifications.*your language*.php ;)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Hardcase on July 04, 2011, 05:02:11 AM
Hi and thanks Lex for a super mod.

I have managed to install it on custom theme on SMF 2.0 with emulation to RC5, all the admin functions are there, but i'm a little confused about how to share the topic with FB, whilst the share button sends the link it does not show the title just the login for the forum, now the forum is locked down tight as i can make it and therefore guests are not allowed to view the forum boards even though i have let the FB board become viewable to guests. Can you tell me how i would let access become available to the guests off facebook and also how to automatically post to a group and not given the option of posting to their wall?
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on July 04, 2011, 05:19:31 AM
The sharer only works for topics / areas visible to guests. This is because FB does not trust you about the content, and checks it out for itself.

The group functions and such are not exactly within the Sharer.php scope of functionality, and would require a different method of sharing topics to FB.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Hardcase on July 04, 2011, 05:41:41 AM
OK i've opened up the board to guests, they can see it and post in it, but when you send the share link it only takes you to the website not the forum topic?
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on July 04, 2011, 05:43:19 AM
That is most probably because facebook has already seen the area closed to guests and has cached that result.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Hardcase on July 04, 2011, 05:48:29 AM
Ok that sounds fair enough is there anyway of altering this? Really appreciate you speedy response  ;D
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: bruce86 on July 04, 2011, 05:50:44 AM
2.0?..:)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on July 04, 2011, 05:51:04 AM
I'm really not sure how that works on FB's side - I just know I've seen it happen before. You could try if you now create a new topic in that board, and try to share it - how does it appear on FB?
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on July 04, 2011, 05:51:33 AM
Quote from: bruce86 on July 04, 2011, 05:50:44 AM
2.0?..:)
Haven't updated yet - but should work without any code conflicts, just use emulation to 2.0 RC5 in order to install.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: bruce86 on July 04, 2011, 06:00:22 AM
Quote from: Aleksi "Lex" Kilpinen on July 04, 2011, 05:51:33 AM
Quote from: bruce86 on July 04, 2011, 05:50:44 AM
2.0?..:)
Haven't updated yet - but should work without any code conflicts, just use emulation to 2.0 RC5 in order to install.
Thank you..;)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Hardcase on July 04, 2011, 06:34:06 AM
it wont appear on fb at all now within the group, if i publish it to my own wall it works ok but still with a link to the login page, but it wont publish to the group its intended for  ???

Ok it now appears to work fine in the group and to page, linking the topic to fb and from facebook to the site. Is it intended that if someone comments on FB that the comment would appear in the forum post?

I know i'm probably missing something simple, but i'm nearly there :)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on July 04, 2011, 07:49:46 AM
The Sharer only does the link share from forum to FB user's wall - All the rest you might want to do with it depends on facebook, and may need you to use further tools.
The Sharer.php is simply a sharer ;)
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: bruce86 on July 04, 2011, 07:51:14 AM
Quote from: bruce86 on July 04, 2011, 06:00:22 AM
Quote from: Aleksi "Lex" Kilpinen on July 04, 2011, 05:51:33 AM
Quote from: bruce86 on July 04, 2011, 05:50:44 AM
2.0?..:)
Haven't updated yet - but should work without any code conflicts, just use emulation to 2.0 RC5 in order to install.
Thank you..;)
I tried but no go
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on July 04, 2011, 07:59:15 AM
Quote from: bruce86 on July 04, 2011, 07:51:14 AM
Quote from: bruce86 on July 04, 2011, 06:00:22 AM
Quote from: Aleksi "Lex" Kilpinen on July 04, 2011, 05:51:33 AM
Quote from: bruce86 on July 04, 2011, 05:50:44 AM
2.0?..:)
Haven't updated yet - but should work without any code conflicts, just use emulation to 2.0 RC5 in order to install.
Thank you..;)
I tried but no go
Why not? Did it give you errors or what? Many people have already installed this on a 2.0 Final (including myself).
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: bruce86 on July 04, 2011, 08:15:51 AM
Quote from: Aleksi "Lex" Kilpinen on July 04, 2011, 07:59:15 AM
Quote from: bruce86 on July 04, 2011, 07:51:14 AM
Quote from: bruce86 on July 04, 2011, 06:00:22 AM
Quote from: Aleksi "Lex" Kilpinen on July 04, 2011, 05:51:33 AM
Quote from: bruce86 on July 04, 2011, 05:50:44 AM
2.0?..:)
Haven't updated yet - but should work without any code conflicts, just use emulation to 2.0 RC5 in order to install.
Thank you..;)
I tried but no go
Why not? Did it give you errors or what? Many people have already installed this on a 2.0 Final (including myself).
It is not compatible, I tried to emulate but to no avail, I do not understand where mistake.
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: Aleksi "Lex" Kilpinen on July 04, 2011, 08:17:46 AM
I'd just guess the version you put down in the advanced options is not exactly correct.
But I'll try to update this package soon - in the next couple of days, so you don't have to wait for long if you can't work it out by then...
Title: Re: Facebook Sharer Mod (2.0 RC4 + 2.0 RC5)
Post by: bruce86 on July 04, 2011, 08:21:04 AM
Quote from: Aleksi "Lex" Kilpinen on July 04, 2011, 08:17:46 AM
I'd just guess the version you put down in the advanced options is not exactly correct.
But I'll try to update this package soon - in the next couple of days, so you don't have to wait for long if you can't work it out by then...
Okay thanks a lot ..;)
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 05, 2011, 11:32:27 AM
Package updated - Should now work with SMF 2.0 Final as well as RC4 and RC5 :)
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: bruce86 on July 05, 2011, 11:45:25 AM
Quote from: Aleksi "Lex" Kilpinen on July 05, 2011, 11:32:27 AM
Package updated - Should now work with SMF 2.0 Final as well as RC4 and RC5 :)
Thank you so much for the version 2.0 !!..;)
But I still can not see it, perhaps due to some setting.
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 05, 2011, 11:54:27 AM
On the modsite? Should be there, the link is in the first post of this topic...
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: bruce86 on July 05, 2011, 11:59:44 AM
solved thanks a lot!!.::)
On virtually every section we have to insert the display option "Allow topics to be share to Facebook from this board".
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 05, 2011, 12:49:24 PM
Oh, you meant you did not see the button :D
Well, good that you solved it foryourself ;)
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Martingonnella on July 05, 2011, 06:06:12 PM
Hey,

Love the Mod. Thanks

Is there going to be a Twitter one available?

Martin
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 05, 2011, 11:52:19 PM
This could be easily made to work for Twitter I think, but I haven't thought about it.
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Martingonnella on July 06, 2011, 01:21:03 AM
Ok
Cool.

It would be nice to have a matching pair..could this be made?
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 06, 2011, 01:27:05 AM
I'll think about it :) As I gather, it should be pretty easy to do, I might just do it...

EDIT:
It should basically be just the same code, with just the button on Display.template.php replaced with

<a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>


Now, I haven't tested this at all yet - but it would seem like it should be easy to do, and perhaps even bundle these in the same package as well.
And I might just try to work on that later today and test it out ;)
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Martingonnella on July 06, 2011, 01:35:07 AM
It would make a really good mod. I can't aerie dingy at hard as there quite similar.

Can I have a request a small fix and what I found annoying install your Facebook mod. I notice I bad to enter each board and select the Facebook tick box. I found I needed it on quite a few boards... It would be better to have it so when you install the mod.... It does it on ALL boards, then you can untick on each board the one you don't want it to cover.. Your find this would be easier for installers.

Or you could have a page in the option panel with tick box with the lard title all on one page... What's easier?
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 06, 2011, 01:41:33 AM
Actually that's one thing I've been thinking about - Which would be easier for MOST users, activate all by default - or none by default.
I haven't really made up my mind about it yet to be honest - both have their pros and cons...
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Martingonnella on July 06, 2011, 01:48:06 AM
Yep... Just something a little easier I think would be easier. When you think you can do a twitter one? Fastest poss would be much appreciated
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 06, 2011, 01:52:20 AM
Not giving any promises, but I'll look in to it later this day ( It's early morning for me now ;) )
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 06, 2011, 03:42:21 AM
Fixed a small issue in the mod installation routine - For those who have this mod working correctly already, this update 1.5 is not necessary. ( While I was at it, I also changed the default board setting to be active - so after installing, all boards should be active unless deactivated. )
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: bruce86 on July 06, 2011, 04:01:49 AM
Then I can safely leave the 1.4 version, right? Thanks ..
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 06, 2011, 04:04:09 AM
Yes - No need to change your version if your mod is already working :)
Title: Re: Facebook Sharer Mod ( 2.0 RC4 -> 2.0 )
Post by: bruce86 on July 06, 2011, 05:18:58 AM
ok thank you..:)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 06, 2011, 09:05:43 AM
Added Twitter support, made some tweaks to the layout (and tested these on IE and FF - but if something is wrong, let me know) called it 2.0 - and removed 1.* versions from the modsite :)

And I made it so that it will install with ALL boards selected to be used with both FB and Twitter,
so make sure to uncheck the settings from those boards that are not visible to guests :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: bruce86 on July 06, 2011, 10:31:56 AM
I entered the Italian language, useful? I'd say google plus button to add ..:)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: C4G-TK on July 06, 2011, 12:02:20 PM
Great work!

Just installed this afternoon.  Clicked the master setting and unchecked my Admin only board and Off-Topic board which is not able to be seen by guests.  Shared a topic as a test on Twitter and worked perfectly.  No errors in the log at all.

(I'm really glad you have it so the boards are automatically sharing because I would have hated to have gone through all my boards to de-select them from being shared.)

Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 06, 2011, 02:25:20 PM
Great :) And thanks for the feedback!
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 07, 2011, 12:52:33 AM
Future plans:

I'm thinking about splitting this mod so that I would keep this which has both FB and Twitter, and possibly add to it later ( G+ etc. ? ) as the main package - and the one with the most options ( with or without installer, separate db uninstaller etc.)
And then make smaller simpler packages for each FB, Twitter, G+ etc. separately, with only one package each - with a db uninstaller, so that all settings would be removed when the package is uninstalled. The smaller packages would probably not be compatible with eachother though, so you could not pick and choose - It would be only one, or all of them.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Martingonnella on July 07, 2011, 03:15:01 AM
Hello,

Just to let you know that there was a New Mod put out yesterday called 'Social bookmark
Which was a same mod as yours but mainly improved
With ideas you might want to take and change on your behalf... It really looks nice and it has all the names from Yahoo!, Google, Facebook, and other
Names I haven't heard of... I wrote on there comments that there bar only appears at the bottom of the post and should appear at the Top And Bottom.. Have a quick down and look at the mod as it's alot improved then your one and may give you ideas... Thanks
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Martingonnella on July 07, 2011, 03:17:58 AM
It's on : http://custom.simplemachines.org/mods/index.php?mod=2414
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 07, 2011, 03:33:11 AM
Thanks - While I do believe borrowing ideas from others is always good, however I don't think I'll be competing much with that mod at all.
No reason to aim at having multiple mods doing exactly the same thing ;)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: wrex on July 08, 2011, 07:14:04 AM
Man I have such bad luck w/ getting any facebook mods to work lol... yours looks like the best so far but... I installed/enabled and it only shows the "Tweet" button, right next to it there is text that reads "SHARE" but no Facebook button. The share text changes color on mouseover but there's no link associated w/ it or anything. Twitter button works. I'm using the Curves Multi-Color Theme but the mod acts the same way on the default curves theme as well. Site is am.wrex-racing.com

Any ideas? Thanks in advance.

Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 08, 2011, 07:50:42 AM
I'm not at home right now, but I'll check your site out in a few hours - we'll see if I can make some sense in to it.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 08, 2011, 11:15:24 AM
Quote from: wrex on July 08, 2011, 07:14:04 AM
Any ideas? Thanks in advance.
Works perfectly as far as I can see.

Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: wrex on July 08, 2011, 07:01:19 PM
Thank you for checking and sorry, I double checked it w/ Chrome and IE and it works great but the issue seems to be w/ Firefox. Was using FF 3.6 and just upgraded to FF 5 and still no dice, pic...
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: wrex on July 08, 2011, 07:10:25 PM
Actually it's working in FF now... was the 'AdBlock Plus' add-on(super old version) causing it, updated that and all is well. derp  ;)

Thanks again for checking.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 09, 2011, 03:06:52 AM
No problem - Just glad you found out why it isn't working :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: bruce86 on July 13, 2011, 06:28:42 PM
Italian Translation.
Insert the like button?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 15, 2011, 12:52:27 AM
Thanks bruce86, added your translation to the first post of this topic.
Like button is not as simple as Share and needs a bit of more code to work, and I am trying to keep this mod fairly simple.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: HAMBONE0 on July 23, 2011, 06:00:16 PM
I added the meta tag code first to pick this specific pic, url is diff than below: echo '
<meta property="og:image" content="http://www.mysite/images/myfbimage.jpg" />
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? '
<meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
<title>', $context['page_title_html_safe'], '</title>';


And it still picks from the original 4 pics, being part of my theme.  I have the directory chmodded to 755 where the pic is stored.

Theme: Helios Multi color
Version: smf 2.0

Thank You
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 25, 2011, 12:43:43 AM
Quote from: Aleksi "Lex" Kilpinen on February 14, 2011, 12:59:36 AM
The following restrictions apply:

The og:image is the URL to the image that appears in the Feed story. The thumbnail's width AND height must be at least 50 pixels, and cannot exceed 130x110 pixels. The ratio of both height divided by width and width divided by height (w/h, h/w) cannot exceed 3.0. For example, an image of 126x39 pixels will not be displayed, as the ratio of width divided by height is greater than 3.0 (126/39 = 3.23). Images will be resized proportionally.

In addition, Facebook may not recognise this change if it has already seen the link you are trying to share after adding this.
Facebook does not read the pages every time someone shares them, but instead it checks the page once and caches the result.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: HAMBONE0 on July 25, 2011, 01:04:05 AM
Quote from: Aleksi "Lex" Kilpinen on July 25, 2011, 12:43:43 AM
Quote from: Aleksi "Lex" Kilpinen on February 14, 2011, 12:59:36 AM
The following restrictions apply:

The og:image is the URL to the image that appears in the Feed story. The thumbnail's width AND height must be at least 50 pixels, and cannot exceed 130x110 pixels. The ratio of both height divided by width and width divided by height (w/h, h/w) cannot exceed 3.0. For example, an image of 126x39 pixels will not be displayed, as the ratio of width divided by height is greater than 3.0 (126/39 = 3.23). Images will be resized proportionally.

In addition, Facebook may not recognise this change if it has already seen the link you are trying to share after adding this.
Facebook does not read the pages every time someone shares them, but instead it checks the page once and caches the result.

Thx for replying, I have made sure the images are within regs....stoopid fb..

Thx again!
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: elegantvogue on September 18, 2011, 09:04:51 PM
Hiya...

I have installed your mod... everything was fine for some days. but something happened now.... When I click on share as you can see in the picture below... It does not show the topic title .... It says "Login".... Any solution...

I have tried different browsers as well.. but no help :(



(http://img163.imageshack.us/img163/653/errorwh.jpg)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on September 18, 2011, 11:32:04 PM
Is the board visible to guests?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: elegantvogue on September 18, 2011, 11:34:28 PM
The main topics are not visible to guests but they can see the boards... :O
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on September 18, 2011, 11:37:15 PM
You are sharing direct links to the topics, so you are sharing links that guests can not see - for the shares to work correctly, the topics need to be visible to guests.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: elegantvogue on September 18, 2011, 11:40:36 PM
hmmm got that...

means... that's Facebook who wants to get the topic and can't get it bcoz of restriction.

Thanks for info...

Kind Regards
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on September 18, 2011, 11:42:44 PM
Exactly :)

Facebook gets the contents of the shares by visiting the url that you are sharing, and if that url is not visible to guests, smf directs it to the login screen.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: pgordemer on September 21, 2011, 11:47:29 AM
Any chance of a quick update to install into 2.01. I know I could manually edit it in, but that makes uninstall later for updates ugly.

Fails on /default/display.template.php
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on September 21, 2011, 12:26:25 PM
Oh... OK. I'll take a look at it when I find the time - But I somehow thought it wouldn't need more than a new version number...
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: elegantvogue on September 21, 2011, 06:04:45 PM
Quote from: Aleksi "Lex" Kilpinen on September 21, 2011, 12:26:25 PM
Oh... OK. I'll take a look at it when I find the time - But I somehow thought it wouldn't need more than a new version number...



Hello...
Its me again...

2 things which needs to be updated :) whenever you get time... Thanks in Advance

1) In the Picture Below Im sharing a joke... but there is no image in that because I did not put image in the post!!! Can it detect the LOGO somehow? So it should not look empty?!!! Otherwise I have to put a specific image in every post, facebook to detect it.. You got me?


2) You can see in the Image number 1 and 2...

Topic has been repeated twice, so instead of 2nd repeated topic... we can have some text from the post... like first 2 lines or something like that...
(I know we can change it manually) but isn't that better to detects automatically?


(http://img685.imageshack.us/img685/2116/123qlo.jpg)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Raths Rants on September 23, 2011, 03:45:36 PM
Since upgrading 2.0.1 the sharer mod is not working for me. I tried using the emulate feature to show a 2.0 install and got an error message.

I think I fixed it, I did a code replace with using 2.0 emulate it seems to be working.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: TheListener on September 25, 2011, 09:09:54 PM
Would ya please have a look at my attached file.

I'm not sure if the manual edit was done correctly.

Unfortunately this ocurred due to clashing with another mod.

I was looking at this mod due to it doing the combined job of two mods I previously had installed.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on September 28, 2011, 01:09:35 AM
Quote from: elegantvogue on September 21, 2011, 06:04:45 PM
1) In the Picture Below Im sharing a joke... but there is no image in that because I did not put image in the post!!! Can it detect the LOGO somehow? So it should not look empty?!!! Otherwise I have to put a specific image in every post, facebook to detect it.. You got me?
It should recognise all images visible on the page, but...

Quote from: Aleksi "Lex" Kilpinen on February 14, 2011, 12:59:36 AM
The following restrictions apply:

The og:image is the URL to the image that appears in the Feed story. The thumbnail's width AND height must be at least 50 pixels, and cannot exceed 130x110 pixels. The ratio of both height divided by width and width divided by height (w/h, h/w) cannot exceed 3.0. For example, an image of 126x39 pixels will not be displayed, as the ratio of width divided by height is greater than 3.0 (126/39 = 3.23). Images will be resized proportionally.

And those are restrictions from Facebook - I can not do anything about them.

Quote from: elegantvogue on September 21, 2011, 06:04:45 PM
2) You can see in the Image number 1 and 2...

Topic has been repeated twice, so instead of 2nd repeated topic... we can have some text from the post... like first 2 lines or something like that...
(I know we can change it manually) but isn't that better to detects automatically?
That I'll have to look in to at some point later.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on September 28, 2011, 01:13:31 AM
Quote from: rathsrants on September 23, 2011, 03:45:36 PM
Since upgrading 2.0.1 the sharer mod is not working for me. I tried using the emulate feature to show a 2.0 install and got an error message.

I think I fixed it, I did a code replace with using 2.0 emulate it seems to be working.
I had no trouble with it on 2.0.1 - but it may require version emulate to install.

Quote from: Brack1 on September 25, 2011, 09:09:54 PM
Would ya please have a look at my attached file.

I'm not sure if the manual edit was done correctly.

Unfortunately this ocurred due to clashing with another mod.

I was looking at this mod due to it doing the combined job of two mods I previously had installed.
No attached file on your post that I can see.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: TheListener on September 28, 2011, 10:45:01 AM
oops. I did it again.

Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: petermichaelbauer on October 16, 2011, 07:47:56 PM
Anyway you could get this to work (or tell me what i need to change in the display template for the Bright Forest theme?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on October 17, 2011, 12:41:12 AM
Check the manual installation instructions, and see the edits done the default theme files. Then try to adapt them to your custom theme. Mainly this means edits to display.template.php only.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: welshdog on October 17, 2011, 11:46:58 PM
Upgraded our site at Australian Opinion (http://australianopinion.com.au) from SMF 1.1.15 to SMF 2.0.1 (with Tiny Portal) using default theme.

Tried installing both packages and got the following each time:

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

We've got a pretty basic site so I'm wondering if you will have time to upgrade the Mod? Knowing this mod existed was what prompted me to upgrade to SMF v2 so I'm a little disappointed it wouldn't install. :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on October 18, 2011, 03:22:43 AM
I'm sorry, I have promised to update this mod but haven not had the time to do it yet. it should be fairly easy to install using version emulation though.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: welshdog on October 18, 2011, 03:38:06 AM
Quote from: Aleksi "Lex" Kilpinen on October 18, 2011, 03:22:43 AM
I'm sorry, I have promised to update this mod but haven not had the time to do it yet. it should be fairly easy to install using version emulation though.

Actually I have no idea what that is!!!

No worries, I'm pretty useless at any sort of programming so am totally in awe of guys like you who are willing to spend time helping us out. :)

Thanks anyway.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: poojim on October 19, 2011, 03:23:22 PM
hello! I get this error when I installed using the parsed method for 2.0 (http://custom.simplemachines.org/mods/index.php?action=parse):

"Unknown column 'b.facebooksharer_board_enable' in 'field list'"

Can you help me with this. thanks!
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on October 20, 2011, 01:06:43 AM
Take the installsharer.php included in the mod package, upload it to your forum root and point your browser to it.
It should add the necessary changes to your database then. ( Also delete the file after making sure everything went ok. )
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: poojim on October 20, 2011, 02:09:41 AM
Thanks! It fixed the error... However there is not any buttons of Facebook or Twitter appear. Do you think I missed something?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on October 20, 2011, 02:51:03 AM
The settings?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: poojim on October 20, 2011, 06:40:42 AM
oh yeah I forgot it in the miscellaneous. I also have one mod in the misc section and that is "Facebook like mod" I realized that it is now working now and the Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 ) is also not working. DO you think it has something to do with the SA Facebook integration? Aren't they compatible?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on October 20, 2011, 07:06:08 AM
No idea sadly, I have not tested this mod for any compatibility with any other mod.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: poojim on October 21, 2011, 02:59:31 AM
okay. Thanks anyway...  :D
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: gisfreak on December 06, 2011, 09:24:18 AM
hem, nice mods,

gonna try this, thanx
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: humbleworld on December 31, 2011, 05:46:00 PM
Will this MOD compatible with SMF 2.0.2?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on January 01, 2012, 02:13:05 AM
I'm sorry I haven't updated in a while, but yes I believe it should work via version emulation, and yes I'm planning to update this still...
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: billowingwillows on February 02, 2012, 05:19:09 AM
Hello, I'm getting ready to install this mod to 2.0.2, want to thank you in advance for a simple yet effective share mod.  :)
I went through this thread to see if this was addressed, but it wasn't, so I'll go ahead and ask: This mod is putting the share button in for the whole topic, with the buttons appearing in the topic title bar, but I'm interested in customizing this so that it appears in every post, with the buttons sharing a link to that specific post.
I'm about ready to go through the code and see if I can manage something like this on my own, sometimes I can and sometimes I can't (mainly because I don't really know php but I try my best to improvise), but I thought I'd ask if this is ultimately possible and if it's practically easy to accomplish.  ;D
Thanks a lot for any input!  8)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: billowingwillows on February 02, 2012, 08:19:53 AM
Okay, so it gave me the same "corrupt or incompatible" message that someone else mentioned earlier in this thread. So I went through the process of editing all the files myself, double-checked after it wasn't working properly, installed the db.php file (and confirmed the columns existed) and still nothing. The problem is that it wasn't displaying the buttons themselves, and, when I went into my admin settings, to modify boards, it was telling me about a parse error in Subs-boards.php. I didn't jot it down, something about an unexpected character or something... I'll try all of this again and hope for the best. I don't know what it means to install with a version emulator, so I guess I'll have to learn about that and give it a spin that way if this doesn't sort out. I'll keep you posted. Modified Curve, by the way, with all the relevant files in the default folder.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: billowingwillows on February 03, 2012, 06:29:59 AM
Okay, so I figured out how to emulate version, so I managed to install this without a problem. :) I'm assuming that whatever problem I had earlier in manually installing it was just an error of my own doing...  ::)  ;D

I'm wondering how I can get rid of the count that comes with Facebook's button. I read on their page for the share button that I can change the type of button to get rid of it, but it seems like this will conflict with the "text/javascript" settings that have already been established. Is there a way you know that I can keep the style of the button as is (which I really like and want to keep, it looks great with the twitter button) without that count?

As I was mentioning earlier, I'm interested in changing it so that each post has it's own set of buttons that share the link for that specific post. It looks like I'd need to change this code here to make this happen...

share_url="', $scripturl, '?topic=', $context['current_topic'], '"

... which should be pretty easy to manage. Then I'd just need to put the whole code in another spot in the template file that corresponds with the individual post. I don't know how exactly to change that code though (I don't really know php! *shhh) so I'm going to work on it and report back, but if someone else would like to jump in and lend a hand, it'd be greatly appreciated! :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on May 30, 2012, 02:54:52 AM
Hello,

This doesn't work under emulation for 2.0.2. I haven't checked the errors yet (might be something trivial, but I'm at work so I can't edit and upload code), but I was really hoping this gets updated some time soon. It's the only sharing mod that I've seen that is discreet and also puts the buttons in the title bar instead of in the message body, or a huge floating bar or popping icons or unicorns dragging banners and whatnot.

Cheers
T
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on May 30, 2012, 05:40:39 AM
Afaik this should still work with emulation - but I hereby solemnly swear I'll update this mod within the next couple of weeks.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on May 30, 2012, 05:57:00 AM
Heheheh maybe you'll just burn in hell or something :D

Kidding aside, got a meeting in 5 mins, when I get out I'll see what errors and where it throws them, and will let you know. Thanks so much :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on May 30, 2012, 10:30:12 AM
Nah, I think some other mod must have touched the code where your mod sits, I think it's the Likes mod from the looks of it. Will do it manually at home...
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Srinib on July 03, 2012, 01:19:25 PM
Quote from: humbleworld on December 31, 2011, 05:46:00 PM
Will this MOD compatible with SMF 2.0.2?

No. I just tried to install but got this message.
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 03, 2012, 03:10:21 PM
Version emulation, and will work ;)

I'm still trying to find time to update this though - hopefully soon.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on July 04, 2012, 02:55:11 AM
That'd be superb... :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: snadge on July 17, 2012, 08:43:43 AM
the facebook button has suddenly stopped working? - the twitter button is still there but the facebook button is replace with text 'share' which highlights as a link but doesnt work? - no updates of any sort have been installed on my forum which is 2.0.2

can anyone help with this please?

thanks
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on July 17, 2012, 08:45:21 AM
Maybe FB changed something in their APIs?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: snadge on July 17, 2012, 08:54:50 AM
Quote from: Gryzor on July 17, 2012, 08:45:21 AM
Maybe FB changed something in their APIs?

how do I find out? is yours working?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on July 17, 2012, 09:07:50 AM
Nah, unfortunately I'm waiting for the updated version to install...

A quick look around doesn't reveal a change in FB. Maybe there's something wrong with your server? How long has the problem been there?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: snadge on July 17, 2012, 09:18:19 AM
ive asked my host and he says nothing has changed... the twitter button still works and where the FB button is supposed to be it says SHARE and it highlights like a link but doesnt work...  my friend says he cant see it either and ive tried chrome and firefox with ABP off, also IE9 is same

it just started this morning, well it was last spotted this morning
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on July 17, 2012, 09:21:17 AM
Yes, I saw it myself on your site as well. If any other user can come forward and tell us if they have it installed we can compare the code output to see what goes wrong where...
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: snadge on July 17, 2012, 09:31:46 AM
can you see it now?

I have tried an uninstall and reinstall but still same - I will say that the uninstall had 1 error but i just went ahead with it after backing up with softaculous, I had to emulate SMF 2.0 to get it to install/uninstall etc - anyway results are the same... I think its FB API like you say
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on July 17, 2012, 09:40:32 AM
Yes, it still doesn't show. But those install/uninstall error messages are usually pretty useful in telling you if and what's wrong, if you examine the lines where the error occured...
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 17, 2012, 11:09:56 AM
Afaik, Sharer is not recommended by FB anymore, in favor of the like button, but should work perfectly none the less.

I'm sorry I haven't updated yet, but I'm just incredibly busy IRL..
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on July 17, 2012, 12:50:53 PM
You're right about Like vs Share though indeed there are lots of services that use Share (and I hate Like... stupid FB!).

Don't worry, other things are more important :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: snadge on July 18, 2012, 08:29:44 PM
wierd - it has come back but wrong/different, the word SHARE is still there but no longer a link and a new FB SHARE link is next to it - great.. but in chrome it completely removes everything from the top bar

Im gunna have to uninstall it as its now affecting the layout of my SMF forum

EDIT: UNINSTALLED... was a great mod. i will have to find another
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 19, 2012, 01:00:27 AM
I can pretty much promise the problem is not in the mod itself, it's working perfectly on my own forum still. The latest 2.0 version I might add.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on July 19, 2012, 02:17:59 AM
Snadge, before blaming the mod it'd be useful to at least take a look at the errors your SMF throws at you.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: snadge on July 19, 2012, 10:51:00 AM
how can it be anything to do with me when nothing has been changed or updated etc?

i have checked error log and I have 44,000 errors all from same thing prettyurls or my theme, im gunna try and get help with that - but the mod worked fine until few days ago and changed - because the facebook button changed from one button too another obviously points too changes on FB API - i dunno why yours is still working the same, probably cached or sommit? - its a completely new button now and it seems to me the mod needs updating to work with it properly
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 19, 2012, 01:16:19 PM
Actually - It does seem I have to take that back... It seems like FB just decided to change it all of a sudden, no matter the millions of sites using the original sharer.php...

So, at this moment - this mod is outdated, and as far as I can see, might not repairable as is. I will need to see if I can get a similar mod done with the current options FB offers,
but I'm sorry to say I'm doubtful, because I will not make a mod using XFBML. Period.

EDIT: I will be looking in to this though, I'll keep you updated if I can repair this..
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on July 19, 2012, 02:11:15 PM
Well, it's a shame if it can't be updated because it sure is the best of all the social mods out there. However, it's not like you've been paid and are obliged to update or anything, so, well, real life and personal wants are above this... Thanks anyhow.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on July 24, 2012, 03:37:29 PM
I too hope it can be fixed. The other mods are just not what we need and this one works just like our stores FB button does...it shares not likes...lol

big difference. originally I thought maybe it ate its button cause I had to "fix" what button to use in our store...did not like the one showing. It still works. But our forum button has disappeared totally, not even the text is showing.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on August 13, 2012, 05:38:39 AM
just checking to see if there is a progress report. or if I should just remove the mod totally.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on November 26, 2012, 03:58:49 PM
Well, AFAIK this is up to facebook?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on November 26, 2012, 06:06:20 PM
Well here at the Attic it had left leaving only the Twitter button for linking...but somewhere--sometime it came back. :o

I have now the Tweet button and the F image with the Share link and when I hit it to share it opens up a window like my store has---where you can add your comment to the top and even click the area of text from the post that gets shared to edit what needs to be edited there too along with if there are images on the page you can choose an image, including the one from the post (if not an attachment)

I just had to remember to also edit the display.php from the templates folder since it came with its own and does not use the default one.

I love that you can choose which categories/sections you can allow the sharing from.

http://thefantasiesattic.net/

Since guests can see our forum (not post) you might be able to see the buttons in action. In IE you need to be logged in though to use the FB share link.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on December 04, 2012, 02:05:54 AM
I've been inactive for some time, for personal reasons, and have not looked on to this because of that. I may see if I can rebuild this, in a few weeks when I have some time off from everything else..
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on December 04, 2012, 02:12:40 AM
Thanks for the update man, much appreciated!!
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: JCphotog on December 26, 2012, 03:10:40 PM
Thanks for the update on this.  I'll be very excited if we can add this functionality to my forum.   Best holiday wishes! 
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on January 02, 2013, 04:26:54 AM
I'm working on this now, and it seems the button itself works still - so I'll probably be able to fix this :)
Not promising anything yet, but lets see in a couple of days ;)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on January 02, 2013, 04:28:54 AM
Happy New Year Aleksi! Thanks for the update - take your time, we appreciate it :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on January 02, 2013, 05:08:29 AM
Yes the buttons work for both FB and Twitter, I am using the latest version of SMF and just as mysteriously as it quit working (even did not show up) it started again so it must have been something FB did on their end.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on January 02, 2013, 07:53:17 AM
I cleaned up the template code a bit, removed some configuration options to make space for upcoming additions to this mod, and tried to make the buttons look like they are supposed to. For one reason or another, the FB button seems shaky, jumping all over the place at times - while staying exactly where I want it at other times - but at the moment I'm not about to stress over that too much...

Here is my work in progress, feel free to test it out and tell me if you find any oddities in it :P ( But do uninstall any old versions before doing this ). And do remember this is a work in progress, not a released version yet... Though, it might be soon.

This is only for 2.0.3.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on January 02, 2013, 12:26:47 PM
Downloaded and installed. Just a note, your edits to subs-boards.php and load.php are a bit problematic because there are quite a few mods doing stuff there, so the string to be replaced cannot be found... I'd suggest using a shorter string to find/insert after :)

So, it seems to work nice! The FB button does indeed appear a bit off (see screenshot) but functionality seems complete.

Thanks so much for your work - your mod is the only one out there that's both functional AND discreet (instead of spamming every single post or presenting huge buttons...).
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on January 02, 2013, 12:28:25 PM
That's exactly the behaviour I meant - It works perfectly on FF though, but Opera and IE do strange things :P
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on January 02, 2013, 12:30:45 PM
Ah yes, forgot to say I'm using Opera :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on January 02, 2013, 12:40:43 PM
I will see if I can think of a way to stop it from doing that, but I'm afraid it will mean doing funky browser specific crap that I'm not at all interested in doing to be honest...
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on January 02, 2013, 12:43:52 PM
Heheh I get you. It's strange, actually - the way I read it from the code (which is not my specialty if I may say so) it shouldn't matter... yet it does. Oh well, even with this misalignment, I'm keeping it.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on January 05, 2013, 12:04:34 PM
Hey, it just occurred to me - any chance for some G+ love? :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on January 06, 2013, 04:16:29 AM
Yeah, I'm actually working on that :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on January 06, 2013, 05:48:58 AM
Oh yeah! Great news :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: winsoft on January 11, 2013, 12:51:33 PM
can't wait to see this mod when completed with G+ !
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Dblog on April 07, 2013, 03:02:59 PM
isn't F share outdated and Like/Recommend button with count and twitter button with count more used these days ?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on April 07, 2013, 03:32:33 PM
I personally like the f-share vs that like button...can't stand that button...lol

this way when we share we can edit it easier too for including the item and our comment about it.

I use one for my store also that is f-share
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on April 08, 2013, 02:48:44 AM
I agree with DarkAngel. "Like" is all sorts of ******e...
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: eric1234 on May 10, 2013, 06:31:35 PM
Unable to share topic in Facebook.

It appears the word "error" in the topic. When click on it, it said
https://www.facebook.com/plugins/error/api?code=101&message=Invalid+App+ID&hash=AQAYQRESHQzk8zt5

can help?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: TheListener on May 10, 2013, 06:37:02 PM
This mod is now out of date imo.

Have a look in tips and tricks for a twitter and facebook share.

You only have to register once as tweets go to facebook automatically.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on May 11, 2013, 04:09:00 AM
Quote from: Old Fossil on May 10, 2013, 06:37:02 PM
This mod is now out of date imo.

Have a look in tips and tricks for a twitter and facebook share.

You only have to register once as tweets go to facebook automatically.

What if you don't want that?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: eric1234 on May 19, 2013, 06:46:41 PM
Quote from: Gryzor on May 11, 2013, 04:09:00 AM
Quote from: Old Fossil on May 10, 2013, 06:37:02 PM
This mod is now out of date imo.

Have a look in tips and tricks for a twitter and facebook share.

You only have to register once as tweets go to facebook automatically.

What if you don't want that?
Yeah, what if we don;t want?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on July 12, 2013, 03:12:17 AM
Quote from: eric1234 on May 10, 2013, 06:31:35 PM
Unable to share topic in Facebook.

It appears the word "error" in the topic. When click on it, it said
https://www.facebook.com/plugins/error/api?code=101&message=Invalid+App+ID&hash=AQAYQRESHQzk8zt5

can help?

Eric did this mod ever work for you after you installed it or did it just start misbehaving. I have it installed and it works beautifully in 2.0.4
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: eric1234 on July 16, 2013, 05:33:17 PM
Quote from: DarkAngel612 on July 12, 2013, 03:12:17 AM
Quote from: eric1234 on May 10, 2013, 06:31:35 PM
Unable to share topic in Facebook.

It appears the word "error" in the topic. When click on it, it said
https://www.facebook.com/plugins/error/api?code=101&message=Invalid+App+ID&hash=AQAYQRESHQzk8zt5

can help?

Eric did this mod ever work for you after you installed it or did it just start misbehaving. I have it installed and it works beautifully in 2.0.4
it works at 1st, then it started to misbehave. :(
When did you install it?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on July 16, 2013, 06:19:28 PM
Quote from: eric1234 on July 16, 2013, 05:33:17 PM
Quote from: DarkAngel612 on July 12, 2013, 03:12:17 AM
Quote from: eric1234 on May 10, 2013, 06:31:35 PM
Unable to share topic in Facebook.

It appears the word "error" in the topic. When click on it, it said
https://www.facebook.com/plugins/error/api?code=101&message=Invalid+App+ID&hash=AQAYQRESHQzk8zt5

can help?

Eric did this mod ever work for you after you installed it or did it just start misbehaving. I have it installed and it works beautifully in 2.0.4
it works at 1st, then it started to misbehave. :(
When did you install it?


Could you post a link to your forum?
Have you checked to make sure the information you had to enter is right--- your facebook id number maybe?
Does this happen with each post you want to share or just in a certain area?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: eric1234 on July 16, 2013, 06:35:23 PM
Link (http://forum.myboleh.net/index.php)

May I know how to check the fb ID?

each and every post :(
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on July 16, 2013, 07:09:29 PM
Quote from: eric1234 on July 16, 2013, 06:35:23 PM
Link (http://forum.myboleh.net/index.php)

May I know how to check the fb ID?

each and every post :(

usually you go to Facebook and your page there. In the browser location bar it will have your id number/name then you copy paste it.

soes a person need to be registered to use the like buttons?

ANOTHER THING...

did you try reinstalling it?


uninstall in admin section then set to emulate rc2.0 then reinstall it?  I notice yours is a like button and not a share button like mine with this same mod
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: eric1234 on July 16, 2013, 07:19:53 PM
Quote from: DarkAngel612 on July 16, 2013, 07:09:29 PM
Quote from: eric1234 on July 16, 2013, 06:35:23 PM
Link (http://forum.myboleh.net/index.php)

May I know how to check the fb ID?

each and every post :(

usually you go to Facebook and your page there. In the browser location bar it will have your id number/name then you copy paste it.

soes a person need to be registered to use the like buttons?

ANOTHER THING...

did you try reinstalling it?


uninstall in admin section then set to emulate rc2.0 then reinstall it?  I notice yours is a like button and not a share button like mine with this same mod
Actually i thought this mod suppose to enable user to share the topic in facebook?

So why is there a FB ID?

Yeah, I tried before.

the like button is from another mods. The share button do not appears as it appeared as the red colour word "error" instead. :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on July 16, 2013, 07:35:39 PM
have you tried removing the other mod with the like button, it might be that it is conflicting with the sharer mod.

I looked through all the files and it should not make a difference of id since when you click the link it will post on the persona facebook page---the one that clicks the share link.

when you installed the plain like one it may have changed the code to the sharer mod...you might have to uninstall them both, then manually remove the codes from your server files, then only install the sharer mod which is really better to just use one.


maybe it is your own facebook account that is not behaving. I just clicked the share link and it worked for me

I do notice that it is gone from some posts so maybe you did not choose to show the button for share in admin area?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: eric1234 on July 16, 2013, 07:43:18 PM
Quote from: DarkAngel612 on July 16, 2013, 07:35:39 PM
have you tried removing the other mod with the like button, it might be that it is conflicting with the sharer mod.

I looked through all the files and it should not make a difference of id since when you click the link it will post on the persona facebook page---the one that clicks the share link.

when you installed the plain like one it may have changed the code to the sharer mod...you might have to uninstall them both, then manually remove the codes from your server files, then only install the sharer mod which is really better to just use one.


maybe it is your own facebook account that is not behaving. I just clicked the share link and it worked for me

I do notice that it is gone from some posts so maybe you did not choose to show the button for share in admin area?
Erm, before this the like mods and the share mod working fine.

Can you see the share button in the thread? Or just the red word "Error" ?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on August 26, 2013, 10:44:21 PM
@ Aleksi:

Just wondering if there is something that IE needs to be encoded into your mod --- or a stylesheet "fix" for IE.

You mod works perfectly with buttons showing and sending the  post to twitter and Facebook BUT

At times, regardless of theme we use in the forum, the facebook share button just disappears from view in Internet Explorer. See image please....then as mysteriously as it goes away i comes back for a bit just to go away again later on whether a day or week later.

I did view source and it is listed in the source for the page but it just does not show up

Another thing, when it does show in IE and the other browsers, there is the "share" text next to the button, it isshown in blue which is hard to see on dark themes. I tried changing the words to "Share This" but it made no difference at all, the text does not change and the color stays the same.

Is there a way to get the button a little larger?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: pinoy123 on December 11, 2013, 05:02:32 AM
hello i hope this mod will be updated soon to work with my SMF 2.0.6


big thanks,
Nikko
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on December 11, 2013, 12:40:48 PM
Quote from: pinoy123 on December 11, 2013, 05:02:32 AM
hello i hope this mod will be updated soon to work with my SMF 2.0.6


big thanks,
Nikko

If you install it it will work. I have it and it works, I would  just like the button and text larger
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Matthew K. on March 01, 2014, 07:23:17 PM
It'd be awesome if you could make this package compatible with SMF 2.0.7, it installs fine, but the package-info.xml is outdated. A quick <install for="2.0 - 2.0.99"> and <uninstall for="2.0 - 2.0.99"> should do the trick ;)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Kimmie on March 05, 2014, 08:53:08 AM
Will this be updated, or has it been abandoned?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on March 05, 2014, 05:15:36 PM
Quote from: Kimmie on March 05, 2014, 08:53:08 AM
Will this be updated, or has it been abandoned?

This mod works beautifully in 2.0.7 and to install it you just need to tell package manager to make the forum be like 2.0, then after installation reverse the  version back to 2.0.7

I use it in our forum and with the exception of the Facebook button being so small or disappearing at time...LOL there are no problems
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Kimmie on March 05, 2014, 08:13:08 PM
Quote from: DarkAngel612 on March 05, 2014, 05:15:36 PM
Quote from: Kimmie on March 05, 2014, 08:53:08 AM
Will this be updated, or has it been abandoned?

This mod works beautifully in 2.0.7 and to install it you just need to tell package manager to make the forum be like 2.0, then after installation reverse the  version back to 2.0.7

I use it in our forum and with the exception of the Facebook button being so small or disappearing at time...LOL there are no problems

Well I don't need the FB part so that won't be a problem. I am just looking for something that we can use to post new threads to our twitter.

Can I download it, and chance the package-info.xml before I upload and install it? Will that keep me from having to emulate?

<install for="2.0 - 2.0.99"> and <uninstall for="2.0 - 2.0.99">
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on March 05, 2014, 08:39:47 PM
I have done that with some packages before and yes it works on some. The best way is the way I described via packages for in case the base coding has changed since the package was created.

Bear in mind that when you use the button to post a link to the thread, it will do so on your account there only. Anyone else will go o there account. It does not send to your twitter account by default for everyone.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Impsat-1 on April 12, 2014, 01:05:30 AM
Mmm.... hello, i hope this mod will be updated soon to work with SMF 2.0.7, is great job & idea, but dont work in 2.0.7, :(... big thanks.....

Thanks & Regards 8).-
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on April 12, 2014, 02:07:46 AM
Quote from: Impsat-1 on April 12, 2014, 01:05:30 AM
Mmm.... hello, i hope this mod will be updated soon to work with SMF 2.0.7, is great job & idea, but dont work in 2.0.7,<$1alt="" title="" onresizestart="return false;" id="smiley__$2" style="padding: 0 3px 0 3px;" />... big thanks.....

Thanks & Regards<$1alt="" title="" onresizestart="return false;" id="smiley__$2" style="padding: 0 3px 0 3px;" />.-


admin>packages>browse packages>advanced> change the forum version to SMF 2.0 or if that doesn't work then change it to SMF 2.0 RC4 save it then try to install it. I have it installed and it works great.

just remember to go back there and set the forum to the right version again.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on March 31, 2016, 07:33:06 AM
I love this mod and it works even in 2.0.11

I was just wondering if there is anyway to either let me use a facebook icon of my own or a different one from facebook cause I have mainly dark gray/ black themes and it is really hard to see it in the title bar area.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on December 21, 2017, 01:42:16 AM
Hi all! Sorry for the long silence.

I have kept on improving this mod on my own forums, and may bring my development over here as well at some point stilll, but the current version I have is not usable as is, because it is specifically written for my own customized forums.

I have however still worked on this, and have added small settings functionality to it gradually.

The version still up for grabs here should work still I think, at least I can't remember anything that would have been broken in it.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on December 21, 2017, 01:48:15 AM
That is great to hear, I tried installing it in the this latest upgrade but for some reason it will not show up at all. it may just be stubborn or will try again. I think it did show some errors but can't remember what they were now.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on December 21, 2017, 01:50:47 AM
Actually, there was something FB changed... Now I remember. It might be the current code here may not work.

Anyhow, I have a little free time coming soonish - perhaps I'll work on this and see where I left it :P
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on December 21, 2017, 02:32:07 AM
no hurry, enjoy your holidays I am sure the members will unerstand , they have learned that ocassionally I need to remove a mod when it misbehaves.
If I remember right the main problem is that it did not wish to show in the forums...where the icons for twitter and FB are supposed to be were empty.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Gryzor on December 21, 2017, 03:46:48 AM
Thanks for the update man! Looking forward to an update :)
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Sectomy on July 20, 2020, 11:27:50 AM
any news on that ?
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: DarkAngel612 on July 20, 2020, 01:52:23 PM
I had to remove this mod since it doesn't work, Not any more that is, not for the forum nor the zen cart stores both FB and Pinterest.
Title: Re: Facebook and Twitter Sharer ( 2.0 RC4 -> 2.0 )
Post by: Aleksi "Lex" Kilpinen on July 21, 2020, 06:08:52 AM
Yeah, sorry - I have been meaning to go through my manual changes for my own forum, and recreate this updated with working codes - but simply haven't gotten around to it.
Title: Re: Facebook and Twitter Sharer
Post by: Aleksi "Lex" Kilpinen on March 04, 2021, 11:08:34 AM
This mod should be completely rewritten, so I'm gonna pull the plug on this one. Sorry everyone.