BUG: Addthis on tumblr with customized flattr service

junkcatch Feb 23, 2012 12:06AM EST

hi,

I setup a customized service on my addthis button for my blog on http://rottencapital.tumblr.com.
It works well on the subpages and also on the indexpage the JavaScript in the addthis_configuration is correct, with the URL of the post, as well as the title.

However, when multiple addthis buttons are on one page, even if the JavaScript configuration for each Addthis setup is correct, however it somehow sends only the url and title of the last one to the flattr service.

IMHO this is a bug in Addthis.

Up 0 Rated Down
Charlie (AddThis Happiness Specialist) Feb 24, 2012 11:03AM EST
The addthis_config object is global, there should only be one per page. Our custom service feature supports templating so you only have to define the service once. Try a config block like this, once on your page:

var addthis_config = {
services_custom: {
name: "Flattr",
url: "http://flattr.com/submit/auto?url=&title=&user_id=RottenCapital&category=text&language=en_GB&description=",
icon: "http://flattr.com/_img/icons/flattr_logo_16.png"}
}

Then add your custom flattr buttons below each blog post with:

<a class="addthis_button_flattr.com" addthis:url="http://rottencapital.tumblr.com/url_of_the_blog_post" addthis:title="title of the current post" addthis:description="some description"></a>

When a button is clicked, it will invoke your custom service and fill in and with the addthis:url and addthis:title values you specified, which can be unique to each instance of the button.

There's a custom service code example here: http://0-www.addthis.com.innopac.up.ac.za/help/custom-services#code
And more info on button attributes here: http://0-www.addthis.com.innopac.up.ac.za/help/client-api#attribute-config
Up 0 Rated Down
junkcatch Feb 27, 2012 12:11AM EST
Thank you, however I dont get it to work.

I added once:
<!-- Addthis custom service -->
<script type="text/javascript">
var addthis_config = {
services_custom: {
name: "Flattr",
url: "http://flattr.com/submit/auto?url=&user_id=RottenCapital&category=&language=en_GB&tags=&description=",
icon: "http://flattr.com/_img/icons/flattr_logo_16.png"}
}
</script>
<!-- END Addthis custom service -->

and then I added the button with:
<a class="addthis_button_flattr.com" addthis:url="{URLEncodedPermalink}&title={URLEncodedTitle}" addthis:category="{block:Photo}images{/block:Photo}{block:Text}text{/block:Text}{block:Photoset}images{/block:Photoset}{block:Quote}text{/block:Quote}{block:Link}text{/block:Link}{block:Chat}text{/block:Chat}{block:Audio}audio{/block:Audio}{block:Video}video{/block:Video}{block:Answer}text{/block:Answer}" addthis:tags="{block:Tags}{URLSafeTag},{/block:Tags}" addthis:description="{URLEncodedMetaDescription}"></a>

However, it does not seem as if e.g. the url is passed onto the service. flattr return "no url defined".

What am I missing?
Up 0 Rated Down
junkcatch Feb 27, 2012 12:15AM EST
Okay, the title was wrong, but after fixing that one it still doesn't work. Could you please have a look?

The tags in {} are tumblr tags. The information in there seems to be filled in correctly.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Reference