WP-Plugin BirdFeederWP

24. Juni 2007

••• Jared Bangs has written the nice WordPress plugin MintBirdFeeder that modifies the WordPress feeds in a way that the site tracking system Mint can report the feed and seed usage. I was using his plugin for quite a time but noticed some shortcomings. As documented the plugin does not support comments feeds. Unfortunately it also misreports the feed usage for the Articles feed. How so? Let’s have a look at it.

WordPress serves three types of feeds:

  • main articles feeds
    e. g. http://your.wordpress.blog/feed/
  • main comment feeds
    e. g. http://your.wordpress.blog/comments/feed/
  • comment feed for particular articles
    e.g. http://your.wordpress.blog/article/feed/

The MintBirdFeeder plugin does not support the second type and it reports the third type as of the first type. Since many people are subscribed just to the comments of my post WP-Plugin SitemapTags in order to stay informed of recent changes I found that these subscribers where actually reported as subscribers of the Articles feed. Since I’m interested in correct numbers of subscribers of the three types of feeds I felt the urge to write a replacement for Jareds plugin.

And here it is: BirdFeederWP. It does support the two types of comment feeds mentioned above and reports them apart from the subscribers of the main Articles feed. As with Jareds plugin Mint and the Mint plugin BirdFeeder by Shaun Inman must be installed before you activate BirdFeederWP from the WordPress plugin panel. No further action should be necessary. The actual number of subscribers won’t change dramatically; but you may find that a lot of subscribers belong to a different category and are not regular readers of your blog but just interested in the comments of a particular post.

The plugin has been tested with WP from version 2.1 up to 2.3.

Comments and (heaven forbid) bug reports are welcome. Just post a comment here or send a mail.

Download: » BirdFeederWP-104.zip (Version 1.0.4 • 01.10.2007)

21 Reaktionen zu “WP-Plugin BirdFeederWP”

  1. Benjamin Stein

    Update 26. 06. 2007:

    V 1.01 – add support for caching environments

  2. Benjamin Stein

    Update 29. 06. 2007:

    V 1.02 – fixed seed title generation for comment feeds

  3. WP Plugins DB » Plugin Details » BirdFeeder for WordPress

    […] Integrate Mint Bird Feeder with WordPress 2.x (Feed categories Articles, Comments and Comments on Articles with their respective flavours will be reported.) […]

  4. Benjamin Stein

    Information: Also successfully tested with Mint 2.11 and WordPress 2.2.2.

  5. Chris Palmer

    Have been just testing your plugin on my site. I am running WordPress 2.2.1 and Mint 2.11 + Birdfeeder. It seems to break my RSS2 feed, with it saying in Firefox that it is not styled XML. Any ideas?

  6. Benjamin Stein

    @Chris Palmer: Please make sure that you have installed and activated Mint and the Mint BirdFeeder Plugin correctly. If BirdFeeder is missing you will find PHP error messages in your feeds XML which render the feed invalid.

  7. Chris Palmer

    Okay, I’ll have a check tomorrow. Thanks for the advice.

  8. Benjamin Stein

    Update 07.09.2007

    While testing my other WordPress Plugin for Mint – MintPopularPostsWP – I noticed that BirdFeederWP may corrupt your feeds in case your Mint DB resides in another MySQL instance than WordPress.

    Version 1.0.3 now checks for this condition and makes sure the WordPress DB connection is fine after calling the external Mint DB.

    @Chris Palmer: This could have been your problem.

  9. stevenberg.net » Archives » Blogroll Autolinker: Conflict with Bird Feeder WP

    […] you happen to use the Blogroll Autolinker along with BirdFeederWP, you’ll probably notice something bad like this show up in your […]

  10. Benjamin Stein

    Update 01.10.2007

    WordPress 2.3 has been released. I had to enroll further tests with this version of WordPress. And everything looks fine. As stevenberg.net has pointed out I also had to change the way the plugin reconnects to the WordPress DB in cases where Mint resides in another DB than WordPress. This problem should be solved by version 1.0.4.

  11. stevenberg.net » Archives » BirdFeederWP Database Fix

    […] BirdFeederWP 1.0.4 fixes the problem with its re-initialization of the WordPress database. Now it’s no longer necessary to hack the plugin as I described in my earlier post. […]

  12. Chris Palmer

    Benjamin, thanks for the update. I believe the different MySQL database issue may well have been the problem. Thanks for resolving the problem.

  13. Martin Vereecken

    Hi,

    I have a problem with the plugin: after installing it, my rss feeds don’t work any longer. I don’t know if this has something to do with it, but in bird feeder itself I get a “cannot locate feeder”.

    Any ideas?

    Thanks for your work!

  14. Benjamin Stein

    The Birdfeeder error message means that your Birdfeeder installation is faulty. This way the plugin would insert the very same error message into your feed which in turn renders the feed invalid. Please follow the Birdfeeder instructions to make Birdfeeder work correctly. Afterwards the plugin will also do its job.

  15. Martin Vereecken

    Hi Benjamin,

    Thank you for pointing me to the right direction. I forgot to create the feeder directory and add the index.php of the mint plugin :-S.

    Now everything works fine. Thank you thank you!

  16. mitcho

    Hi Benjamin–

    Thank you for your work on this plugin. I unfortunately have had trouble with this plugin, as mentioned here.

    The issue is that, after activating the plugin, my RSS feed dies… I get this error in the first entry:

    <description><![CDATA[You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET feed_views = feed_views + 1
    , total = total + 1
    WHERE post_id IN (73' at line 2 on line: 453

    Please let me know if you know a fix for this issue. Thank you!

  17. Benjamin Stein

    @mitcho

    Please make sure that BirdFeeder is installed correctly and working. The error message from BirdFeeder may render the feed invalid. If this is not the very cause of the problem please send a detailed error message by mail.

    I have checked the code. The erroneous line is not from BirdFeederWP.

  18. arch

    I get the same error as mitcho, and am running MINT off a db other than the WordPress db.

  19. mitcho

    @arch — that’s the same setup here… do you think that’s the problem, Ben?

    Btw, I started a thread for this in the Mint forums. Another user had the same issue as well.

  20. Benjamin Stein

    @mitcho:

    Looks like you don’t believe me. The code mentioned above is not from my plugin! Check yourself. You won’t find it. That means: I cannot fix it since the error comes from somewhere else.

  21. Benjamin Stein

    As a response to mitchos question in the Mint forum, Mint developer Shaun Inman gave a short lesson on how to check whether BirdFeeder is installed correctly

    Bird Feeder is installed correctly in Mint if the Bird Feeder Pepper shows up in your Mint Preferences and you see the following when you visit yourdomain.com/feeder/:

    Mint Bird Feeder is active.

    For those running into problems when installing BirdFeederWP I suggest performing this check before investigating further potential issues.