WordPress.org

Ready to get started?Download WordPress

Forums

Flattr
[resolved] Remove Flattr Button from RSS/Atom Feed? (13 posts)

  1. chrissss
    Member
    Posted 3 years ago #

    I noticed that the plugin automatically adds a flattr button to the feed of my blog. I can't find an option to remove this button. Is it not possible to get rid of it?

    Thanks
    Christoph

    non-Apache web Server
    LIBXML_VERSION: 20703
    cURL extension installed. 7.21.1

    http://wordpress.org/extend/plugins/flattr/

  2. kevinweber
    Member
    Posted 3 years ago #

    I've the same problem, too.
    (Blog: The Green Bird)

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

    Best regards

  3. kevinweber
    Member
    Posted 3 years ago #

    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

  4. chrissss
    Member
    Posted 3 years ago #

    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

  5. Michael Henke
    Member
    Plugin Author

    Posted 3 years ago #

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

  6. Michael Henke
    Member
    Plugin Author

    Posted 3 years ago #

    Everybody OK with the option to disable the button now?

  7. kevinweber
    Member
    Posted 3 years ago #

    Jeah, great, it's working without problems now :)

  8. chrissss
    Member
    Posted 3 years ago #

    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] http://wordpress.org/extend/plugins/rss-footer/

  9. Michael Henke
    Member
    Plugin Author

    Posted 3 years ago #

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

  10. chrissss
    Member
    Posted 3 years ago #

    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: http://wordpress.org/support/topic/php-code-into-rss-footer?replies=3

  11. Michael Henke
    Member
    Plugin Author

    Posted 3 years ago #

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

  12. larsivi
    Member
    Posted 3 years ago #

    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.

  13. Michael Henke
    Member
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags