WordPress Feedburner Plugin Hack

I’ve finally switched my feeds here over to feedburner. I like having the stats. I’m a stats junkie. I found a nifty WordPress Feedburner plugin that takes care of most of the dirty work for you, but of course anytime I do anything with this site, there were problems.

At first feedburner wouldn’t recognize any of the changes. After much detective work, I’ve discovered that the main problem the whole time was installing WordPress into a directory instead of on the root. The plugin doesn’t do a very good job of seeing that and making any changes.

The first thing I had to do was a little PHP editing. If your not comfortable doing this, well, you might want to consider finding a different way to send your feeds. Basically, you have to edit the plugin file and .htaccess so it’s not for the technically uninclined.


so… open up the .php file for the plugin and find the following: get_settings(‘home’)

This should be: get_settings(’siteurl’)

Make the change and save and reupload. You shouldn’t have to reactivate the plugin as all wordpress does is load the file each time you go to use the plugin.

After making those changes, I reran the plugin and made the necessary changes to .htaccess that it tells you to. It does recreate the entire file including the permalink structure and anything else you had in there to begin with, so just copy and paste it all in, replacing the existing code.

Problem #2 took me a while to nail down as it still wasn’t working with feedburner. Essentially, the plugin gives you a new URI to have feedburner check for the feeds. It did not exist after I had gotten this far. I checked the Codex and the plugin homepage but found only people with the same problem, and no answers.

Obviously I figured it out and here’s what the issue was.
The URI that the plugin gave me was something like: http://www.mysite.com/wp-folder/feedburner-0934353

The problem again was the fact that I did not have WordPress installed into the root. I edited the URI to read http://www.mysite.com/feedburner-0934353 and it works fine.

So, why did I have to do that? Well, the plugin gives the URI with the WordPress directory in it, however it does not include the WordPress directory in the .htaccess file it creates.
In the .htaccess file it is merely /feedburner-0934353/ so the solution is to delete the WordPress directory from the URI that it gives you.

Note that it may be possible to prefix the /feedburner-0934353/ with your WordPress directory so that it looks like this: /wp-folder/feedburner-0934353/ but I have not tested that solution, so try at your own risk. If you do it that way and it works, please let me know.

NOTE: The URI’s are examples and are not the exact URI’s to be used. The URI’s for your site will be completely different.

Check the WordPress Codex for further info.

Technorati Tags: , , ,

Be Sociable, Share!
About Shane Ede

Shane Ede is an IT guy by day and a Entrepreneurial Blogger by night. You can follow him here on Thatedeguy or over on Twitter and Google+.

Comments

  1. There are two places where there is get_settings(’home’), should I change the both?

    I’m never given anything by the plugin to copy and paste, what are you talking about?

  2. Thatedeguy says:

    Scott,

    This hack has only been tested with WordPress 1.5 so if you are using 2.0 your experience may be different. I have upgraded to 2.0 now and did not have any problems with it.

    Without having tried this with 2.0, I would still guess that you would need to change the get_settings(‘home’) in both places. 2.0 doesn’t give you anything to copy and paste if I recall.

    t

  3. 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.

  4. If you think vista print is a good company
    you should try using a company called http://www.printsmadeeasy.com everything about this
    company is superior to vista. If you want to
    try them out use a coupon code called firstonefree
    when you check out and they will print 100 free
    business cards.

    Brian

  5. Hi,

    I downloaded the Feedburner plugin file, “FeedBurner_FeedSmith_Plugin.php” opened it up with a text editor and could not find “home” or “get_settings” anywhere.

    Any suggestions?

    I’m running WordPress 2.2.1.

  6. Thatedeguy says:

    Carma, I believe the problem has been fixed in the latest version of the plugin. The last time I had any trouble with the plugin was with version 1.5 of wordpress.

  7. The cool thing about this plugin is that it converts any existing subscribers to my old feeds to the feedburner one.

  8. worked like a charm

Trackbacks

  1. [...] WordPress Feedburner Plugin Hack (tags: wordpress Feedburner) [...]

  2. [...] If you have WordPress installed into a folder other than your root folder, you may encounter errors. If so, try Thatedeguy’s Hack for a workaround. [...]

  3. FeedBurner Plugin

    Using some WordPress plugin magic, and user agent detection, this plugin simply forwards all your feed traffic to FeedBurner.

    Table of Contents

    Name??????
    Author??????
    Version??????
    Download??????
    Int…

  4. […] other than root folder, after installing the plugin, if you encounter any error, read this hack: WordPress Feedburner Plugin Hack In case if you are using index.php file in your permalinks structure or having Custom Structure, […]

Speak Your Mind

*