How to disable Flattr-Plugin in RSS Feed?

Creating and modifying plugins.
Post Reply
schimanke
Regular
Posts: 161
Joined: Mon Jan 07, 2008 4:38 pm
Location: Hameln, Germany
Contact:

How to disable Flattr-Plugin in RSS Feed?

Post by schimanke »

Is there a way to disable the flattr-button in the RSS feed? I use the smarty variable to display the button on my blog. Thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How to disable Flattr-Plugin in RSS Feed?

Post by garvinhicking »

Hi!

Not yet, but I just committed a change when smarty is used, it is not automatically put there.

Thanks for the suggestion, this makes sense!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
schimanke
Regular
Posts: 161
Joined: Mon Jan 07, 2008 4:38 pm
Location: Hameln, Germany
Contact:

Re: How to disable Flattr-Plugin in RSS Feed?

Post by schimanke »

Thanks for your quick reply. Uhm... So when or how will it be possible to disable the button in rss? Any ideas already?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How to disable Flattr-Plugin in RSS Feed?

Post by garvinhicking »

Hi!
schimanke wrote:Thanks for your quick reply. Uhm... So when or how will it be possible to disable the button in rss? Any ideas already?
You can download the PHP file update from here: http://php-blog.cvs.sourceforge.net/vie ... ent_flattr

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
schimanke
Regular
Posts: 161
Joined: Mon Jan 07, 2008 4:38 pm
Location: Hameln, Germany
Contact:

Re: How to disable Flattr-Plugin in RSS Feed?

Post by schimanke »

Okay, just tried it and it completely destroyed my rss feed, giving me a Content-Encoding-Error.
Restored to the old version and the feed works... There must be something in there.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How to disable Flattr-Plugin in RSS Feed?

Post by garvinhicking »

Hi!

Did you download the PHP file properly? Or maybe accidentaly the HTML version of it?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
schimanke
Regular
Posts: 161
Joined: Mon Jan 07, 2008 4:38 pm
Location: Hameln, Germany
Contact:

Re: How to disable Flattr-Plugin in RSS Feed?

Post by schimanke »

Yeah, sorry, my mistake. It is working now and the button is gone from my rss feed. Thanks for your help!!!
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: How to disable Flattr-Plugin in RSS Feed?

Post by bernd_d »

I'm using the Flattr-Plugin 1.5 with smarty and i don't see it within feed. Could someone please tell me, where i have to include it into rss.php?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How to disable Flattr-Plugin in RSS Feed?

Post by garvinhicking »

Hi!
bernd_d wrote:I'm using the Flattr-Plugin 1.5 with smarty and i don't see it within feed. Could someone please tell me, where i have to include it into rss.php?

You need to edit the template files feed*.tpl (copy them from templates/default/ if your template doesn'T have it), and then place {$entry.flattr} where you want the javascript to appear.

Note that many feed readers strip javascript from their output, so the flattr-button might not appear everywhere. I don't really have a clue on what to do exactly with the feeds and how to embed a static button that serves the same prupose, or if that even is possible.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: How to disable Flattr-Plugin in RSS Feed?

Post by bernd_d »

Thank you for your answer!
garvinhicking wrote:Note that many feed readers strip javascript from their output, so the flattr-button might not appear everywhere. I don't really have a clue on what to do exactly with the feeds and how to embed a static button that serves the same prupose, or if that even is possible.
I have "googled" for a while and i have found out, that a static button for flattr in the feed isnt't a really goog solution, because you can not flattr single entrys. With a static button you can only flattr this item one time a month.

At the moment i think i will do not use flattr in feed, until there is a better solution.
Post Reply