Blog: Archive

2010-12-31 - 2011-01-30

Incorporating flattr on blog post in Midcom

I added flattr support to my blog.

After some though i added flattr to my blog. Just to se how it would work.

Seems like a nice servcie to support and use instead of the other out there. If someone likes anything i write i can get a small revenue from it. And i can support other stuff that people makes or does on the net with a minimal effort.

Inluding it on my blog was pretty straight forward. I added the small javascript in my header snippet so it is in the <head></head> on every page.

And where i wanted a button to appear on the page i simly added

<a class="FlattrButton" style="display:none;"
title="&(view['title']:h);"
rev="flattr;uid:&(myuid);;category:text;button:compact"
href="&(permalink);">
&(view['abstract']:h);
</a>

Everything is fetched from the post and added to the button. A small todo is to get the tags added to the rev line aswell. But thats a small problem.

If i get the time (or if someone else in the Midgard community gets the time), it would be nice with a small midcom module to do this and get it included in the framework.

Posted on 01/12/11 11:02:13. /blog/incorporating_flattr_on_blog_post_in_midcom/.


Back