Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: franklinrony on June 12, 2010, 09:34:49 PM

Title: Addthis button in first post
Post by: franklinrony on June 12, 2010, 09:34:49 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2594)

Description
   
With this mod you can add the AddThis button on the first post by offering some extra features such as:

-Select Language  via AddThis API
-you can place your company name / website
-possibility to disable the mod
-you can choose the service to show(twitter, facebook, delicious..)
-you can use the username you have on AddThis, so you can see statistics on the use of the button from the site of addthis.com

Screenshots

Admin Panel
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi39.tinypic.com%2Fx5w7zp.jpg&hash=7e71c4dc4acadaddd2bfc2e06a7bd05dbaf7d4ee)

Addthis Button in post

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F2pa95.jpg&hash=49daaa66e18f00d28716adf7dab2e90eb399d8f0)

Stats from social bookmarks use(Addthis.com site)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi39.tinypic.com%2F30nbrsz.jpg&hash=74f538dfe398c58f6a6a7a954757891af2fc9f36)



-------------------------------------EspaƱol-----------------------------------------

Con este mod podras agregar el boton de addthis en el primero post, ofreciendo algunas caracteristicas extras como:

-Seleccion de idioma via Api de addthis
-puedes colocar el nombre de tu empresa/sitio
-posibilidad de desactivar el mod
-puedes elegir los servicios a mostrar
-puedes usar el username que tengas en addthis,de esa forma podras consultar las estadisticas del uso del boton desde el sitio de addthis.com

Screenshots



(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi39.tinypic.com%2Fx5w7zp.jpg&hash=7e71c4dc4acadaddd2bfc2e06a7bd05dbaf7d4ee)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F2pa95.jpg&hash=49daaa66e18f00d28716adf7dab2e90eb399d8f0)

estadisticas (desde el sitio de addthis)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi39.tinypic.com%2F30nbrsz.jpg&hash=74f538dfe398c58f6a6a7a954757891af2fc9f36)



Traido a ti gracias a: Customsmf.net (http://www.customsmf.net)
Title: Re: Addthis button in first post
Post by: 4Kstore on June 13, 2010, 10:21:12 PM
Great Mod!!! Thanks
Title: Re: Addthis button in first post
Post by: franklinrony on July 02, 2010, 02:11:19 PM
thanks for your comment
Title: Re: Addthis button in first post
Post by: luuuciano on July 17, 2010, 09:18:22 PM
what happen when someone clics in the addthis button?
users have to select something?
Title: Re: Addthis button in first post
Post by: franklinrony on July 17, 2010, 11:05:39 PM
http://www.addthis.com/features
yeah the user must be select a social service to add in his bookmarks
Title: Re: Addthis button in first post
Post by: chep on September 01, 2010, 11:55:45 AM
Great feature.
Title: Re: Addthis button in first post
Post by: chep on September 01, 2010, 12:02:54 PM
BTW I specified "email" but email app doesn't show up.
Title: Re: Addthis button in first post
Post by: franklinrony on September 01, 2010, 02:19:56 PM
try "Email" instead "email" maybe is case sensitive
Title: Re: Addthis button in first post
Post by: chep on September 01, 2010, 08:56:57 PM
Took a lot at the AddThis Api and what I wanted was not email.

I used "mailto"


http://www.addthis.com/services/list (http://www.addthis.com/services/list)

Quote
Email email Email/IM Service AddThis menu email service with address book integration (Gmail, Yahoo Mail, AOL mail, and more).


Email App mailto Email/IM Service AddThis menu mail program service
Title: Re: Addthis button in first post
Post by: franklinrony on September 01, 2010, 11:05:51 PM
oh, thanks maybe change  in the addthis api. many thanks
Title: Re: Addthis button in first post
Post by: BillLeeDee on January 19, 2011, 08:52:17 PM
Hello all,

I was told "please use the support topic for the mod you have installed" so I hope this is the correct area. I rarely post here as many questions have been answered by either other informative posts or by trial and error, but this one I'm just a little stumped on

I installed the "Addthis button in first post" mod, which appeared to be the only mod for us running pre-2.x versions of SMF. The mod indicated that it was compatible with 1.1.11 and I happen to be using 1.1.12.

The mod itself appears to be operating to some extent within the forums, but I am not getting the preferred sharing choices that are pre-selected. When accessing the admin panel I do not get any of the legends for the files. It also give me the following error in my log:

File: /home/serverpath/public_html/domainpath/smf/Sources/ModSettings.php Line: 231

Which contains the following text - $txt['addthis_admin'],

I looked at the modifications.english.php as well as the ModSettings.php but with my limited PHP skills I wasn't able to do much regarding this. I am hoping somebody may have a suggestion to either get this to work properly or perhaps point out a mod that will work under 1.1.12.

Thanks in advance,

Bill
Title: Re: Addthis button in first post
Post by: DrBermant on February 21, 2011, 03:50:45 PM
Any chance of update to manage 2.0RC5? I was enjoying the mod which worked fine in 1.xx13 current version. But now could not install in 2.

Michael Bermant, M.D.
Title: Re: Addthis button in first post
Post by: franklinrony on July 25, 2011, 11:44:53 PM
updte for smf 2.0 only, now with clean code,reshare buttons, and global code, dont need to change custom themes :)
Title: Re: Addthis button in first post
Post by: SSimple Team on July 26, 2011, 11:26:24 AM
good job frony :)
Title: Re: Addthis button in first post
Post by: franklinrony on July 28, 2011, 12:32:55 AM
Quote from: SSimple Team on July 26, 2011, 11:26:24 AM
good job frony :)
thanks :)
Title: Re: Addthis button in first post
Post by: rbeuker on August 07, 2011, 05:13:10 PM
Great mod, thanks a lot! :)

Title: Re: Addthis button in first post
Post by: franklinrony on August 18, 2011, 02:57:50 PM
you are welcome :)
Title: Re: Addthis button in first post
Post by: rbeuker on August 18, 2011, 04:31:30 PM
Are you planning to add SSL support? :)  Right now, your code calls http://s7.addthis.com, even when the Forum is called from https. This causes security warnings in some browsers.

By the way, if you do plan to implement this, you will want to remove the Twitter button, because Twitter buttons cannot be called over HTTPS. A workaround is to use the (less pretty) button from AddThis, see this post: http://www.addthis.com/forum/viewtopic.php?f=4&t=27082

I have moved the (less pretty) Twitter button from AddThis to the first position, that looks best I think. ;)
Title: Re: Addthis button in first post
Post by: propaganda on September 29, 2011, 04:05:14 PM
Excellent mod Frony works fine on 2.0.1

Is there any way to put the buttons below the first post content rather than above? Would I have to edit...

<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid='.$modSettings['addthis_pub'].'"></script>'. $message['body'];
Title: Re: Addthis button in first post
Post by: Gryzor on May 27, 2012, 07:41:53 AM
Maybe I'm a bit thick, but where can I find my profile ID? In my AddThis "get code" account section I can find nothing like the code that was auto-filled, only my user id...
Title: Re: Addthis button in first post
Post by: Iomega0318 on May 29, 2012, 09:31:20 AM
Is there a way to show this how it is in the sample image, in the topic bar itself not above the post?
Title: Re: Addthis button in first post
Post by: Gryzor on May 29, 2012, 10:36:11 AM
Quote from: Iomega0318 on May 29, 2012, 09:31:20 AM
Is there a way to show this how it is in the sample image, in the topic bar itself not above the post?

I concur, as it is it looks a bit messy and haphazard...
Title: Re: Addthis button in first post
Post by: Gryzor on May 11, 2013, 02:45:42 PM
I guess this is dead by now? I still can't get it to appear in the topic bar...
Title: Re: Addthis button in first post
Post by: djkimmel on May 16, 2022, 07:51:09 AM
In case someone is still using this old Mod, if you run your forum under SSL https for this mod to still appear in modern browsers you need to change the Addthis script call in Sources/Display.php from http: to https:
Find this:
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid='.$modSettings['addthis_pub'].'"></script>'. $message['body'];

Change to this:
    <script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pubid='.$modSettings['addthis_pub'].'"></script>'. $message['body'];

Hope that helps someone.