Share buttons (General)

by Mad, Friday, November 08, 2013, 17:40 (3794 days ago)

If anyone needed.

Add this code:

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-527d10201fa981e8"></script>
<!-- AddThis Button END -->

in /themes/default/subtemplates/entry.inc.tpl

Before:
<p class="left"><strong>{#complete_thread_marking#}</strong></p><p class="right">

And in /themes/default/subtemplates/thread.inc.tpl

Before:
{if $settings.rss_feed==1}<div class="small" style="text-align:right;">

Demo: http://grchat.com

Share buttons

by Mad, Friday, November 08, 2013, 17:47 (3794 days ago) @ Mad

And in /themes/default/subtemplates/thread_linear.inc.tpl

Before:
{if $settings.rss_feed==1}<div class="small" style="text-align:right;">

-----------------------------

Get different style buttons here:
https://www.addthis.com/get/sharing#.Un0jYvlJP4w

Good luck!

Share buttons

by grognard, Friday, November 08, 2013, 18:40 (3794 days ago) @ Mad

Hi checked out your site but I don't see any buttons?

Share buttons

by grognard, Saturday, November 09, 2013, 10:11 (3793 days ago) @ Mad

Buttons only on the posts itself.

Example; http://grchat.com/index.php?id=10 , on the bottom of the post.

[image]

Adblock filtering em. I see them now. Looks sweet. :-D

Share buttons

by Mad, Saturday, November 09, 2013, 14:45 (3793 days ago) @ grognard

If it gets blocked, you can always copy the .js file and place it on your host. Just change the path when you do.

Share buttons

by grognard, Sunday, November 10, 2013, 11:13 (3792 days ago) @ Mad

Awesome thanks. :-D

Share buttons

by Jean-Michel2 @, Friday, December 06, 2013, 20:03 (3766 days ago) @ Mad

This does not work with me.

I see the buttons on you sample page, and Adblock is deactivated.

When I copied the code into the three tpl and the js in js map (with src being adapted, the buttons did not show up.

I looked at the source of your sample page and saw that the code differs a little. I uploaded from Addthis this code:

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_pinterest_pinit" pi:pinit:layout="horizontal"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src ="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52a2264067571b38"></script>
<!-- AddThis Button END -->

But with that code the page remains totally blank, nothing appears !

Note : I did not upload any button image as it seems button images are automatically searched for.

Any idea ?

JM

Share buttons (Facebook, Twitter, ..)

by Jean-Michel2 @, Brussels, Wednesday, February 12, 2014, 09:18 (3698 days ago) @ Jean-Michel2

Hi guys,

Upping the subject.

When I try to tweak the code as indicated in the original post, it does not work (blank page, so PHP seems to block at one point). And on the site of Addthis, the code is different than in the post so I'm a bit lost.

Can someone confirm what must be done exactly in order to get working share buttons (twitter, facebook, etc.) in MLF ? Because, as one of my users says : MLF is good but we live in the modern world, you need to interact with social media too (or at least to have a bridge to them)

Kind regards,

Jean-Michel

Share buttons Facebook Twitter

by Jean-Michel2 ⌂ @, Brussels, Saturday, April 05, 2014, 20:15 (3646 days ago) @ Mad

Does not work. Copied several flavours of the code provided by Addthis and Mad at the mentioned places => the pages does not load at all and remains totally blank! (check http://scrabble.abibi.be/forum/ by opening any post)

I added the code to a simple HTML page and it works.

Please can someone help???
Regards,
Jean-Michel


MLF version 231
Code inserted in the three pages mentioned by Mad :
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_pinterest_pinit" pi:pinit:layout="horizontal"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52a2264067571b38"> </script>
<!-- AddThis Button END -->

Share buttons

by Devid ⌂ @, noida, uttar pradesh, Monday, February 29, 2016, 09:05 (2951 days ago) @ Mad

thanks

Share buttons

by amritajain2504, Monday, May 30, 2016, 10:25 (2860 days ago) @ Mad

Thanks

RSS Feed of thread