Viewing 12 replies - 1 through 12 (of 12 total)
  • I’ve the same problem, too.
    (Blog: The Green Bird)

    Please, plugin developer, add an option to remove the button from feeds.

    Best regards

    Oh yeah, I have a solution.
    Go to the plugin editor and choose the ‘flattr’-plugin. Navigate to ‘flattr/flattr5.php’ and search for ‘function flattr_post2rss($content)’.

    Comment the lines by ‘//’ out.

    // function flattr_post2rss($content) {
    //    global $post;
    //
    //    $flattr = "";
    //    $flattr_post_types = get_option('flattr_post_types');
    //
    //    if (is_feed() && in_array(get_post_type(), $flattr_post_types)) {
    //        $id = $post->ID;
    //        $md5 = md5($post->post_title);
    //        $permalink = urlencode(get_permalink( $id ));
    //
    //        $flattr.= ' <p><a href="'. get_bloginfo('wpurl') .'/?flattrss_redirect&id='.$id.'&md5='.$md5.'" title="Flattr" target="_blank"><img src="'. FLATTRSS_PLUGIN_PATH .'/img/flattr-badge-large.png" alt="flattr this!"/></a></p>';
    //    }
    //    return ($content.$flattr);
    // }
    //
    // if(function_exists('curl_init')) {
    //    add_filter('the_content_feed', 'flattr_post2rss',999999);
    // }

    I think the plugin works correctly after commenting the lines out.

    ~~~~~~~~~~
    kevinw.de

    Thread Starter chrissss

    (@chrissss)

    You are right, it’s easier to disable the call of the flattr_post2rss function…

    if(function_exists('curl_init')) {
        //add_filter('the_content_feed', 'flattr_post2rss',999999);
    }

    CU
    Christoph

    Plugin Contributor Michael Henke

    (@aphex3k)

    There is an option to remove the button from the feed in the next update.

    Plugin Contributor Michael Henke

    (@aphex3k)

    Everybody OK with the option to disable the button now?

    Jeah, great, it’s working without problems now ??

    Thread Starter chrissss

    (@chrissss)

    Yep, works great. But i have a feature wish: It would be great, if I could add a configurable “Flattr-Text” instead of the button to the feed. Something like:

    “whatever is a uncomercial hobby project. If you like you can <a href="%%FLATTRLINK%%">flattr</a> this posting and leave the author a small tipp”

    Right now I use the Plugin RSS Footer [1] for this. But i can only place a static flattr thing for my whole blog in the footer. The perfect solution would be, if I’am able to call the Flattr Plugin from withing RSS Footer to place the right Flattr-Link into the Footer.

    [1] https://www.ads-software.com/extend/plugins/rss-footer/

    Plugin Contributor Michael Henke

    (@aphex3k)

    Does rss-footer allow the use of php-code?

    Thread Starter chrissss

    (@chrissss)

    Afaik not, I can user placeholders inside the footer text…

    You can use the following variables within the content, they will be replaced by the value on the right.

    %%POSTLINK%% : A link to the post, with the title as anchor text.
    %%BLOGLINK%% : A link to your site, with your site’s name as anchor text.
    %%BLOGDESCLINK%% : A link to your site, with your site’s name and description as anchor text.
    If you update the text above, check the preview below

    …but no PHP-Code.

    //PS: Yep, unfortunately I’m right: https://www.ads-software.com/support/topic/php-code-into-rss-footer?replies=3

    Plugin Contributor Michael Henke

    (@aphex3k)

    I’ll put it on my list of feature request (with a little lower priority). Thanks for the suggestions.

    The RSS flattr button – is it not configurable on a per-post basis? If I have turned off flattr-button on the post, then I wouldn’t expect to see it when reading that post in the RSS-reader.

    Plugin Contributor Michael Henke

    (@aphex3k)

    You’re right, this is the current behaviour. I’ll change this in one of the next updates, so that, when U disable the button on the post/page it doesn’t have one in the RSS feed either.

    Currently there is only a general setting for the complete RSS feed.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Remove Flattr Button from RSS/Atom Feed?’ is closed to new replies.