• Suki | Share This Topic
    January 13, 2012, 07:22:28 PM
    Share this Topic

    Link to mod | Comments on this Mod

    originally created by Arantor
    further development by Suki


    License

     * This SMF modification is subject to the Mozilla Public License Version
     * 1.1 (the "License"); you may not use this SMF modification except in compliance with
     * the License. You may obtain a copy of the License at
     * http://www.mozilla.org/MPL/
     
    This mod uses the hoverIntent jQuery Plug-in http://cherne.net/brian/resources/jquery.hoverIntent.html


    Introduction
    This mod allows the admin to add one or more buttons to the bottom of a message to allow users to link the topic in social networking sites such as Twitter, Facebook and Google+.

    For SMF 2.0.x only

    Now support Facebook Like button, Google+, Tweet and Addthis script!

    - Select which boards you DO NOT want to show the icons and the button.
    - You can enable/disable every button and it will appear inside the first or every post of every topic using a nice jquery effect.
    -Now there's no need to create a Facebook app!
    -No theme edits, works with every theme!
    -Select if you want to show the Addthis script to share an entire page with that service.


    Supported Languages

    o English/utf8
    o British/utf8
    o Spanish_es/utf8
    o Spanish_latin/utf8

    I welcome translations, please post it on the support post ;)


    Installation

    Simply install the package to install on the SMF Default Theme AND any other theme!

     
    Changelog

    Code: [Select]

    [b]4.0[/b]
    -Re-written code.
    -Compatible with SMF 2.0.x
    -Added the AddThis script to share common pages such as profile, board index and topics.
    -Added a jquery effect to show the buttons by hovering the message.

    [b]3.0[/b]
    -Added support for SMF 2.0 only
    -Added support for the google +1 button
    -Fixed the "check all boxes" check on icons
    -Revamp of the admin section.
    -Fixed the "undefined index: view_newest_first"  error.
    -Added JavaScript to show/hide the buttons/icons
    -Dropped support for Simple Portal blocks

    [b]2.8.2[/b]
    -Fixed an issue with the "check all" option.
    -Fixed a bug when the "show newer first" option was enable, thanks to HunterP for the report.
    -Made the facebook like button height a little bit higher, before: 35, now 80, this will show the comment box and the avatars completely.



    [b]2.8[/b]
    -Fixed the Undefined errors in ShareThis.php file.
    -Removed some file edits, less edits and more hooks means less headaches :)

    [b]2.7[/b]
    -Fixed height of the facebook button.
    -Added support for orkut, web 2 pdf, linked in, bebo, diigio, fark, iwiw, mr wong and stylehive.
    -New icons 16x16
    -Added a class for easy manipulation by css of the icons class="share_icons"
    -Moved the language strings on its own file.
    -Removed some file edits, less edits means less headaches :)
    -The mod now uses a new RC4 hook add_integration_function.


    [b]2.6[/b]
    -Fixed problem with multiple facebook like button.
    -Fixed problem with displaying  icons and buttons on custom pages.
    -Added support for SimplePortal news block and Article system.
    -The mod now uses iframe for the facebook like button due to problems with SDK.
    -Cleaner admin page.
    -Added a "check all" option for the icons in admin.


    [b]2.5.1[/b]
    -fixed problem with master setting for enable/disable the icons


    [b]2.5[/b]
    -added support for Buzz button.
    -complete rewrite.
    -remove social networks no longer available.
    -remove settings no longer needed.
    -fixed problem with Spanish non utf8 language.
    -minor bugs fixed.
    -now you can include the icons and buttons on your news/articles of any portal.

    [b]2.3[/b]
    -added support for share multilple messages (show only on first message or all)
    -moved the buttons above the text and the icons below

    [b]2.2[/b]
    -Added support for digg button and tweet button.
    -Select the size of the 3 buttons
    -Layout Style and Color scheme options fo the facebook like button
    -Show faces or not on the facebook like button
    -Better compatibility with themes.
    -cleaner code.


    [b]2.1[/b]
    -Added support for meneame, print friendly and friend feed sites.
    -Better compatibility with themes.
    -cleaner code.


    [b]2.0.1[/b]
    -Added italian language.
    -fixed a bug whe selected option "inside post at the end".
    -cleaner code.

    [b]2.0[/b]
    - Cleaner install
    - Select which boards you DO NOT want to show the icons
    - 3 different ways to show the icons
    - You can select the language for the button

    [b]1.6[/b]
    -Fixed some errors on 1.1.x install.

    [b]1.5[/b]
    -Added support for the Facebook like button.

    [b]1.4[/b]
    -Added support for 20 more social networks
    -Smaller icons
    -Added support for 2.0RC3


    [b]1.3[/b]
    Added support for the following sites:
    -Google
    -Yahoo
    -Technorati
    -Ma.gnolia
    Added spanish language
    Moved the icons above the title of the topic

    [b]1.2[/b] - November 1, 2009
    Added support for MySpace
    Added support for 2.0 RC2
    Added Arabic translation

    [b]1.1[/b] - September 10, 2009
    Added support for Twitter and StumbleUpon

    [b]1.0[/b] - August 27, 2009
    Initial release

  • Suki | Re: Share This Topic
    January 23, 2012, 10:33:19 AM
    New version 4.1:

    4.1
    -Several bugs fixed
    -Added the AddThis script for messages too.
    -Added the forum name and the topic name in the twitter button
    -Added a check to disable the jquery effect (Show the buttons all the time)
    -Added an option to show the buttons above or below the messages.
  • DanToN | Re: Share This Topic
    March 19, 2012, 11:24:22 AM
    Muy buen mod, me gustaria implementarlo, pero lo quisiera sin el script que hace que desaparezca y aparesca los botones sociales
  • Suki | Re: Share This Topic
    March 19, 2012, 06:02:23 PM
    La ultima versión del mod tiene una configuración para desactivar el efecto jquery.  Me parece que no actualicé la versión en este sitio, para estar más seguro descargalo desde el modsite de SMF, ese sitio siempre tendrá la ultima versión ;)
  • temp_user_3 | Re: Share This Topic
    May 09, 2012, 06:48:55 AM
    This is a test message. Feel free to remove it..
  • amber333 | Re: Share This Topic
    May 12, 2012, 03:04:47 PM
    I love this mod but have one requset. I'm using it on a dark colored theme and the wording next to the FB icon is washed out so it just looks like a gap between icons. Where do I change this?
  • Suki | Re: Share This Topic
    May 12, 2012, 09:09:17 PM
    Hi, welcome.

    Do you want to change the facebook like button?

    if so, facebook has a predefined color scheme for black colored websites, open your /Sources/ShareThis.php file and find: colorscheme=light   change it with:  colorscheme=dark

    That should take care of the like button.
  • stanyy | Re: Share This Topic
    June 13, 2012, 05:53:16 AM
    Hi suki, I looked in my sources/sharethis.php file and i saw the iframe code for the facebook like button. I noticed that the layout was set to standard which is why it displays the "be the first of your friends to like this" - according to facebook. Anyways i tried changing it to button_count but it had no effect. Do you know why? I really need the button count. Thanks.
  • Suki | Re: Share This Topic
    June 13, 2012, 10:07:38 AM
    For some time now, facebook has been pretty much ignoring their own code, that is, they do not recognize all the options they offer themselves.

    It's a issue on their site, there is nothing you or the mod can do about it, we follow their rules but they aren't follow their own rules sadly.

    It's not only for the button type, try any other option like hiding the user's images, changing the background color or changing the language.
  • stanyy | Re: Share This Topic
    June 14, 2012, 10:37:50 PM
    Hi again Suki, I think I found the problem. It's the php array '. $this->url .' in the iframe code. I have noticed that the like button will only respond to changes if it contains an original url.

    For example:
    Code: [Select]
    <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.missallsunday.com&amp;layout=button_count&amp;show_faces=false$amp;send=true&amp;width=350&amp;action=like&amp;colorscheme=light&amp;height=:80" scrolling="no" frameborder="0" style="border:none; overflow:visible; width:350px; height:80px;" allowTransparency="true"></iframe>

    But the trouble with using an url is that it only likes that url, it wont dynamically work for each topic being viewed.
    If only there was an alternative for '. $this->url .' or if only there was a way to convert the entire iframe to php. It may sound stupid but i'm just saying.
  • Suki | Re: Share This Topic
    June 15, 2012, 09:26:30 AM
    $this->url is actually a variable, it means it will take any value, in this case, $this->url takes the value of each message's url.

    This means that $this->url will hold the message url for each message. So it dynamically works for every message.

    The url shouldn't interfere at all, php is on the server side, this means that, when you are viewing the page, the php code was already executed and served, thus, the $this->url var was printed already with the corresponded url value, if you view the source code for the page you won't see the $this->url var, you will see only the message value: example: http://missallsunday.com/modifications_and_packages/share_this_topic_84.msg616.html#msg616
  • stanyy | Re: Share This Topic
    June 15, 2012, 03:30:15 PM
    I know it's not supposed to interfere but it actually is interfering. The like button doesn't respond to changes with that variable (or any php variable) in it.
    I know this has nothing to do with your mod, it has facebook written all over it. I just thought I should point it out in case someone somewhere is wondering..
  • Suki | Re: Share This Topic
    June 16, 2012, 10:45:07 AM
    Perhaps facebook doesn't like dynamic urls at all :(

    I honestly don't like they work methodology at all, first they made you to register an provide a valid phone number to get your developer code and be able to working on their apps and stuff...  then they release a new API every 3 months or so and expect every one to do the change with 0 documentation on how to do it.

    When I was making this mod I did saw this issue, when to the facebook dev forums and got 0 response, well, I got tons of responses from other angry devs but non from their staff, the only messages from the staff were some predefined replies with "good work guys, keep it up" which only annoys me even more.
  • stanyy | Re: Share This Topic
    June 17, 2012, 05:42:37 AM
    ... the only messages from the staff were some predefined replies with "good work guys, keep it up" which only annoys me even more.
    Lol

    It doesn't look very neat (to me) to have things like "Richard GotaBigHead Hemmingway and 34 other people like this, be the first of your friends" around the buttons.. Not to mention the profile images.

    Anyways, I took care of it. I somehow managed to trim out all the detail around the button, leaving me a nice square harmless button.
  • Suki | Re: Share This Topic
    June 17, 2012, 08:53:52 AM
    Cool, can you share your edits?  I've seen the same request at simplemachines.org multiple times :)