Adding FeedBurner’s FeedFlare to your WordPress blog ain’t as simple as it should be.
The FeedBurner FeedFlare Un-Plugin
I just upgraded WordPress. What did I forget? To re-re-add FeedFlare to my blog. I have to add FeedFlare each time I change themes, because adding FeedFlare to your site requires manually editing the underlying PHP files. And these files differ depending on which theme you’re using. Which is why I’ve previous referred to FeedFlare as the un-plugin.
Seriously, can we get one plugin for WordPress that redirects the feed to FeedBurner and installs FeedFlare?
How To Add FeedFlare To WordPress With The Cordoba Green Park Theme
For the record, to add the FeedFlare functionality to the Cordoba Green Park theme, you have to edit two files.
In the www.example.com/wp-content/themes/cordobo-green-park/single.php
file, insert the FeedFlare JavaScript code as follows:
<div class="main">
<?php the_content(''); ?>
<?php wp_link_pages(); ?>
</div>
<small><script src="http://feeds.feedburner.com/~s/example?i=<?php the_permalink() ?>"
type="text/javascript" charset="utf-8"></script></small>
In the www.example.com/wp-content/themes/cordobo-green-park/index.php
file, insert the FeedFlare JavaScript code as follows:
<div class="main">
<?php the_content(''); ?>
<?php wp_link_pages(); ?>
<ul class="readmore">
<li><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) : ><a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>">Continue reading</a><?php endif; if ('open' == $post->comment_status) : ?><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) { echo(" or "); } ><a href="<?php the_permalink() ?>#comments"><?php _e("Leave a comment..."); ?></a><?php elseif (get_comments_number() > 0) : ?><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) { _e(" or "); } ><a href="<?php the_permalink() ?>#reply"><?php _e("Read comments..."); ?></a><?php endif; ?> <?php comments_popup_link(__('(0)'), __('(1)'), __('(%)')); ?></li>
</ul>
</div>
<small><script src="http://feeds.feedburner.com/~s/example?i=<?php the_permalink() ?>"
type="text/javascript" charset="utf-8"></script></small>
The “<small>” tags are not strictly necessary (and violate good CSS rules by inserting style info where predefined styles should be). It’s a hack, but it works. Adding FeedFlare itself is a hack, and this is a hack on top of that hack. So I’m cutting myself some slack, mmm-kay?
If an all-in-one FeedBurner/FeedFlare plugin exists, then I am unaware of it.
The Need For (Better) Feeds
In my day, we used Usenet to distribute official news about new product releases. But that was in the pre-web pre-blog era. Today we use feeds. In an ideal world, there would be multiple official WordPress feeds:
- WordPress development feed for announcement of new WordPress versions. Got it.
- WordPress themes feed for announcements about new/improved WordPress themes. Does not exist, to my knowledge.
- WordPress plugins feed for announcements about new/improved WordPress plugins. Does not exist, to my knowledge.
- WordPress widgets feed for announcements about new/improved WordPress widgets. Does not exist, to my knowledge.
See also WordPress Planet, which aggregates news from other WordPress blogs.
Until there are official/better feeds, we all must blog to fill in the knowledge gaps. If I didn’t care about this stuff, then I wouldn’t blog about it.
Greetings Rick,
I found the problem. For no apparent reason, Firefox was configured to block images from feeds.feedburner.com. D’oh!
Regards,
Erik
Greetings,
Also, I just viewed the source of my feed in Google Reader and found the FeedBurner code just fine:
<div>
<a target=”_blank” href=”http://feeds.feedburner.com/%7Ef/erikjheels?a=ffSjSEcT”><img src=”http://feeds.feedburner.com/%7Ef/erikjheels?i=ffSjSEcT” border=”0″></a> <a target=”_blank” href=”http://feeds.feedburner.com/%7Ef/erikjheels?a=iBiXyWZu”><img src=”http://feeds.feedburner.com/%7Ef/erikjheels?i=iBiXyWZu” border=”0″></a> <a target=”_blank” href=”http://feeds.feedburner.com/%7Ef/erikjheels?a=gBmHALr4″><img src=”http://feeds.feedburner.com/%7Ef/erikjheels?i=gBmHALr4″ border=”0″></a> <a target=”_blank” href=”http://feeds.feedburner.com/%7Ef/erikjheels?a=bnmw2Qh4″><img src=”http://feeds.feedburner.com/%7Ef/erikjheels?i=bnmw2Qh4″ border=”0″></a> <a target=”_blank” href=”http://feeds.feedburner.com/%7Ef/erikjheels?a=60Osvk1S”><img src=”http://feeds.feedburner.com/%7Ef/erikjheels?i=60Osvk1S” border=”0″></a> <a target=”_blank” href=”http://feeds.feedburner.com/%7Ef/erikjheels?a=XP4XhUyK”><img src=”http://feeds.feedburner.com/%7Ef/erikjheels?i=XP4XhUyK” border=”0″></a> <a target=”_blank” href=”http://feeds.feedburner.com/%7Ef/erikjheels?a=cbSUGvos”><img src=”http://feeds.feedburner.com/%7Ef/erikjheels?i=cbSUGvos” border=”0″></a> <a target=”_blank” href=”http://feeds.feedburner.com/%7Ef/erikjheels?a=zwiAY49J”><img src=”http://feeds.feedburner.com/%7Ef/erikjheels?i=zwiAY49J” border=”0″></a> <a target=”_blank” href=”http://feeds.feedburner.com/%7Ef/erikjheels?a=HKbNlAla”><img src=”http://feeds.feedburner.com/%7Ef/erikjheels?i=HKbNlAla” border=”0″></a> <a target=”_blank” href=”http://feeds.feedburner.com/%7Ef/erikjheels?a=vrhZRlhy”><img src=”http://feeds.feedburner.com/%7Ef/erikjheels?i=vrhZRlhy” border=”0″></a>
</div>
It’s just not rendering in FireFox. Then again, I can’t see Headline Animator in FireFox either.
http://www.clocktowerlaw.com/blog.html
Perhaps there is a problem with one or more of my Firefox extensions.
Regards,
Erik
Greeting Rick,
A link. Could you spare a link? Like maybe from this page:
http://www.feedburner.com/fb/a/publishers/feedflare
to the FeedBurner (official and unofficial) plugins?
Regards,
Erik
Erik – sure, I agree one plugin would be great. We’re busy, but this is something we’d love to get done. In the meantime, at least there’s a good alternative.
On the report that FeedFlare isn’t displaying in GR using Firefox, it is for me – I’m seeing your FeedFlares just fine in Google Reader.
Greetings Rick,
OK, a plugin is better than adding FeedFlare manually. But one plugin that does both tasks (FeedBurner feed redirection and FeedFlare) would be better.
Plus, now FeedFlare appears in Google Reader using Internet Explorer, but FeedFlare does not appear in Google Reader using Firefox.
Sigh.
Regards,
Erik
Thomas McMahon built a nice plugin to auto-enable FeedFlare on sites:
http://bloggerdesign.com/133/fb-standardstats/