flagrantdisregard

Feedburner Plugin for Wordpress 2.0  

I’ve written a new plugin that redirects the main feed and optionally the comments feed to Feedburner.com. Notable differences from similar plugins: It does this without the need to modify templates, setup new hidden feeds, modify .htaccess files, or asking users to migrate to a new feed. It works with IIS and Apache. All existing feeds simply become Feedburner feeds seamlessly and transparently for all users. Just tell the plugin what your Feedburner feed URL is and you’re done.

Update Aug 24 2006: Added the ability to individually redirect category feeds in addition to the main feed.

Update Nov 14 2006: Fixed a bug with comment feed redirecting.

Click here to read more and download.

40 Responses to “Feedburner Plugin for Wordpress 2.0”

  1. ski says:

    How does this compare to “Steve Smith’s awesome plugin” as mentioned on the “Feedburner for WordPress” page?

  2. john says:

    His plugin sets up a special feed URL just for Feedburner to use. With mine you just burn your existing RSS/Atom feed and all your feeds will automatically redirect to that. I think that’s easier and it allows you to use an existing Feedburner feed if you have one without having to modify the source URL. Also, his won’t work with IIS (or with hosts that don’t allow you to modify .htaccess) since it makes changes to the .htaccess file (IIS doesn’t use .htaccess files). And mine will optionally redirect the comment feed.

  3. j.j. says:

    Plugin sounds great, but after i activated no sub-menu showed up in my Plugins menu. Another plugin which used to work–WP Database Backup–now says “Fatal error: Cannot redeclare class…on line 26″ when i try to access its submenu in Manage menu. I’m assuming in my ignorance i am failing to recognize a problem in my wp-content/plugins directory, but i wouldn’t know. Any help would be really appreciated.

  4. john says:

    Well, deactivate it and see if your troubles go away. I can’t see how this plugin could cause that error. The class declared on line 26 of the Database Backup plugin is wpdbBackup. I suspect you’ve got something else wonky going on in your plugins directory.

  5. j.j. says:

    Yeah, i’ve tried that to no avail. Just thought i’d ask–trying to see if these problems are stemming fr the same issue. My site and other plugins seem to be ok, just probs w/ these two. I’m a novice and not sure what to do, but i’ll keep digging and hit up the WP Forums for help. Plugin sounds great–cant wait to use it.

    btw, your site and photos are really nice. I like your woody guthrie post–i’ve been to the woody festival in okemah several times. Lots of fun.

    thanks for the help

  6. Charles says:

    Hello! Quick question - does this plugin automatically forward ALL feeds to feedburner or just the main feed, e.g. http://example.com/wp-rss2.php. The reason I ask is that I might want to have my main feed forwarded to feedburner feed A, but my category feed for category X forwarded to feedburner feed B.

    In other words:
    http://example.com/wp-rss2.php -> feeds.feedburner.com/example
    http://example.com/wp-rss2.php?cat=8 -> feeds.feedburner.com/example2

    Is this possible? Thanks!

  7. john says:

    No, it redirects them all to a single feed.

  8. j.j. says:

    itunes no longer recognizes my feed as a valid url when i activate the plugin. I submitted feed to itunes before i set permalinks so itunes feed is /?feed=rss2. What do i do?

  9. a laundry list of hand-wringing apologies » I’m back says:

    [...] i’m very sorry to everyone whose feedreader or livejournal friends page i have just spammed.

  10. Kim says:

    I’m really happy to have found your plugin! Thanks for your hard work. Only thing is, when I enter the feed URL into my reader (I enter http://www.get-hooked.net/feed/), it doesn’t register. Any ideas on what could be going wrong?

  11. john says:

    Someone else let me know about this issue as well. In both cases it looks as though you’ve got something configured in Apache that is converting the 302 redirects to Feedburner into a 200 OK page with a link to Feedburner. It’s weird, I don’t know much about Apache. I’d ask your web host about it.

  12. Kim says:

    Thanks!

  13. 紫雨~网上创业教战手册 says:

    Is it possible for someone who only wana subscribe to certain category, only subs to that particular category? Or once it is activated, all readers are forced to subs to all category?

  14. Ward says:

    Any fix for that Apache 200 OK page problem? I’m getting it and it’s breaking my old rss feed links.

  15. Marco Raaphorst says:

    It doesn’t seem to work on my Dutch blog. The comments-feeds is pointing to the wrong url, the normal feed-page!

  16. Marco Raaphorst says:

    Btw. I am not using it because of this, so you can’t check it on my blog. Don;t know exactly why, but it’s not working. I am using a Dutch translated version of Wordpress, using only the Dutch MO-file for the translation.

  17. lil wyte says:

    Hello!

    I installed Wordpress on my server, and set up a site. It’s a relly nice piece of software. However, I am missing a piece of functionality, and

    couldn’t find a suitable answer for it. Mayou you know a plugin I could use?I need to automatically inserts ads in my posts.And not AdSense ads, but rather HTML snippets defined by me (affiliate links, etc). Let’s say I would insert a tag in my post:
    – ad here –
    and the plugin would automatically replace it with some HTML code, when the post is displayed on my site.I really don’t need any fancy configuration options etc, just the basic replace functionality.
    Do you know a plugin that can handle this?

  18. Des Walsh says:

    Seemed to work very smoothly for me. As a non-techie, I appreciated not having to futz around with .htaccess etc - things that are simple for others seem to create havoc for me.

  19. Antoine Khater says:

    First let me thank you for this plugin, I’ve been looking for one that works on IIS

    I am running into a problem, when I activate it i am getting the following error

    msxml3.dll error ‘80070005′

    Access is denied.

    /errorpage.asp, line 116

    please not I am using the following http://www.keyboardface.com/IIS-Permalinks/ in my IIS to be able to use permanent link

    Regards

  20. john says:

    Hard to say without knowing what’s on line 116 of your errorpage.asp. My plugin doesn’t use msxml3.dll and it isn’t an ASP page. It isn’t causing your error. This looks like a permissions issue within IIS/Windows.

  21. Antoine Khater says:

    thank you for your quick reply, however when I disactivate the plugin the error is gone

    Function ReturnPage(URL)
    Response.Buffer = True

    ‘Parse the querystring using Regular Expressions
    ‘Put them in the Variables variable and then send it.
    ‘It should work. Just have to match the idiosyncrosis of the others.
    ‘Mod_Rewrite.php is ISAPI Lite’s way of doing this actually.

    Dim objXMLHTTP, xml
    Set xml = Server.CreateObject(”Microsoft.XMLHTTP”)

    ‘ Notice the two changes in the next two lines:
    SiteName = Request.ServerVariables(”SERVER_NAME”)
    ‘response.write(sitename)
    xml.Open “GET”, “http://” & SiteName & URL, False
    xml.Send

  22. john says:

    That may be, but the error you’re getting is still in errorpage.asp line 116 and not in my plugin. I’m not going to debug it for you, but if it were me, I’d start with the SiteName & URL variables and then check on permissions. Good luck.

  23. Antoine Khater says:

    No need I did fix the error
    Thanks

  24. Patricia says:

    Hi,

    First thanks John for the plugin. Great work!

    I was running into the same 200 OK issue with the feed not redirecting instantly to feedburner. After some searching I found the following post on the WordPress forum:

    http://wordpress.org/support/topic/75286

    Quote:
    “I did some more reading in the trac db and found that I had to delete the “elseif” statement in the handle_404 function in the classes.php file. My redirected pages now work fine. Sorry. ”

    I tried this myself and it works for the feedburner plugin as well! :-)

    The classes.php file is located in the wp-includes folder. All the way at the bottom of the file you’ll find the following php code:

    function handle_404() {
    global $wp_query;
    // Issue a 404 if a permalink request doesn’t match any posts. Don’t
    // issue a 404 if one was already issued, if the request was a search,
    // or if the request was a regular query string request rather than a
    // permalink request.
    if ( (0 == count($wp_query->posts)) && !is_404() && !is_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], ‘?’))) ) ) {
    $wp_query->set_404();
    status_header( 404 );
    } elseif( is_404() != true ) {
    status_header( 200 );
    }
    }

    Change this to:

    function handle_404() {
    global $wp_query;
    // Issue a 404 if a permalink request doesn’t match any posts. Don’t
    // issue a 404 if one was already issued, if the request was a search,
    // or if the request was a regular query string request rather than a
    // permalink request.
    if ( (0 == count($wp_query->posts)) && !is_404() && !is_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], ‘?’))) ) ) {
    $wp_query->set_404();
    status_header( 404 );
    }
    }

    Re-upload the classes.php file and test your feed link. It should redirect straight to your feedburner feed now. It does for me…

    I have no idea how changing the classes.php file will affect any other error handling. Hopefully nothing bas will happen. I am quite keen on using the feedburner plugin!

    Hope this was helpfull…

    Patricia

  25. sparkletack says:

    all praise to patricia - amazingly well timed post. :)

  26. Kevin says:

    Hey!
    I was trying this plugin out and it seems to work when I click the RSS button in the address bar in Safari but the actual links to my feeds in my template (at the bottom of the page) do not show up.
    Safari gives “Safari can’t open the page “feed://portway-ave.com/noexit/feed/”. The error was: “unknown error” (NSURLErrorDomain:-1) “.
    Any ideas?

    (love the flickr toys btw… went right for your feedburner plugin because I recognized the site :) )

  27. Charlie says:

    What I want to do on my blog, is every few hours take the oldest post and move it to the
    front of the queue, all automatically. Anyone know if there is a plugin that can do this or
    a simple way to set up another plugin to do this (use my own feed perhaps)?
    Thanks.

  28. Tri Nguyen says:

    Has anyone been successful using Feedburner Plugin for Wordpress 2.0 in conjunction with the plugin, Atom 1.0 for WordPress?

    http://benjamin.smedbergs.us/wordpress-atom-1.0/

    I’m unable to get a re-direct to the Feedburner feed.

    Thanks much.

  29. Tri Nguyen says:

    Has anyone been successful using Feedburner Plugin for Wordpress 2.0 in conjunction with the Atom 1.0 for WordPress plugin?

    As far as I can tell, FBPWP doesn’t re-direct my Atom 1.0 feeds to Feedburner.

    Thanks much in advance!

  30. Ross M Karchner says:

    Feature suggestions: let the user configure the category separator (I like “/” better) and an alternate domain name for feeds.feedburner.com (for users of their MyBrand service).

    I ended up hacking both into my copy of the plugin.

  31. wifigod says:

    Just wanted to say thanks for writing this plugin, it’s exactly what I needed! :)

  32. Jeff McNeill says:

    Hi,

    Great plugin! Everything works except it is putting in an additional “%20″ before the name, e.g.,

    http://feeds.feedburner.com/%20jeffmcneill/blog
    and
    http://feeds.feedburner.com/%20jeffmcneill/comments

    if we can get rid of the %20 that would be awesome. Any clues? I don’t have a problem mucking about the code.

    Cheers,
    Jeff McNeill

  33. John says:

    Hi, Jeff. Is there a space in your feedburner URL?

  34. Jeff McNeill says:

    Aloha John, et al,

    Yah, i knowz that the %20 is a space, and no there is no space on teh feedburnurz site nor in any config pagez. Is tehre like some kinda bugz here? Or do I hack the plugin or turn it off?

    BTW, upgraded to latest WordPress today, so maybe wordpress bugz?

    Thankz broz!

  35. John says:

    All the plugin does is redirect to the URL that you enter. It doesn’t add any spaces.

  36. Jeff McNeill says:

    Fixed it!

  37. Today's Christian Jazz says:

    @lil wyte I am wanting to do the exact same thing, did you ever get an answer to this? You asked: (I need to automatically insert ads in my posts. And not AdSense ads, but rather HTML snippets defined by me (affiliate links, etc).

    Can anyone help me with this?
    I don’t really need a plugin, the file I need to call is php. I just need to know which file to edit and where to place the call.

    Thanks,
    Jas.

  38. Sam says:

    Doesn’t the “Append category slug to feedburner URL” option break in 2.3? ( $wpdb->categories being used)

  39. Wordpress Themes And Plugins for BrokenCodes says:

    [...] suitable to my requirements. · Adsense-Deluxe · Category Livemarks · Comment Email Responder · FD Feedburner Plugin · FeedBurner Stats · Get Recent Comments · Share [...]

  40. MJ Klein says:

    the feed burner feed works correctly when manually entered into Akregator. however, clicking on the “Subscribe” button takes one to a malformed URL. instead of “http://feeds.feedburner.com/TheNewHampshireBushmanInTaiwan” it adds “www.” before “feeds” like a normal webpage. i have no idea why this is happening. can you help? thanks for a great plug-in that made it possible for me to keep my former RSS subscribers up to date.

Leave a Reply