b2evolution is a great blog tool that includes all the features of traditional blog tools, and add cool stuff like file & photo management, advanced skinning, multiple blogs support, detailed user permissions and third party plug-ins!

FeedFlare is a way to give subscribers to you b2evolution blog easy ways to email, tag, share, and act on the content you publish. FeedFlare places a simple footer at the bottom of each content item, helping you to distribute, inform and create a community around your content.

So, the question is, how do you get FeedFlares to appear in your b2evo posts? At this writing, no FeedFlare plugin is available for b2evo. So, I document here the method that I used to hack a b2evo skin to display FeedFlares. In my installation, I have multiple blogs running on one b2evo install. FeedFlare code is specific to each feed (i.e. each blog), so I needed a custom solution that would change the FeedFlare code depending on what blog was being viewed.

Note that these instructions apply to b2evo version 2.3. Your mileage may vary with other b2evo versions.

At the end of this hack, you should have FeedFlare links at the bottom of your posts when your readers are looking at the full post view (the one that shows the comments and trackbacks.) It does not modify the blog “multi-post” view. You could extend this hack to do that easily.

Here are the steps:

  1. Burn your feed
  2. Under the Optimize tab in FeedBurner (under My Feeds, select your feed), enable the FeedFlares you desire (for example, Digg, del.ico.us, etc.
  3. Find your skin files. For this example, I am hacking the evocamp skin.
  4. Make a copy your current skin directory. Call it something that makes sense to you. Let’s call it foo-skin.
  5. Go into the foo-skin directory. Make a copy of the single.main.php file. Call it single.main.php.orig. This will be a backup for you, just in case. Read that file. You will see that this is php code that builds the single post page.
  6. Find the code that inserts the post content. In my file, this is clearly labeled with —- POST CONTENT INCLUDED HERE —-
  7. Find the end of that code block. In my file, this is clearly labeled. Look for the “?>” that indicates the end of the php code block. We want are FeedFlares to appear right after the post
  8. Insert the following code (below) after the end of the post content code.
  9. Edit the code below to match your feeds and your blog IDs.
  10. Wait for FeedBurner to resync with your feed. This can take a while, but will go faster if you ping them.

Hope this helps. Feedback is welcome.

 

// code to add FeedFlares to the end of the post
// works for multiple feeds (that is what the switch case is for)

// Find the blog ID
$items_blog = $Item->get_Blog();
$items_blog_ID = $items_blog->ID;

// Watch out for blogs without flares
$do_flare = 1;

switch ( $items_blog_ID ):

//Blog ID = 4
case 4:
$fb_src = “http://feeds.feedburner.com/~s/MasonWorldTestBlog”;
break;

//Blog ID = 5
case 5:
$fb_src = “http://feeds.feedburner.com/~s/FightinTexasAggieGoodBullBlog”;
break;

//Blog ID = 7
case 7:
$fb_src = “http://feeds.feedburner.com/~s/Masonworld”;
break;

//Blog ID = 8
case 8:
$fb_src = “http://feeds.feedburner.com/~s/CochlearWorld”;
break;

//Blog ID = 9
case 9:
$fb_src = “http://feeds.feedburner.com/~s/eBookMoneyOnline”;
break;

//Yikes, our blog is not set up for flares
default:
$do_flare =0;

endswitch;

if ($do_flare) {
echo ‘‘;
};

// END code to add FeedFlares to the end of the post
?>

TEST
Enter your name and email address below and I'll send your Domain Name Checklist directly to your inbox.

Enter your name and email address below and I'll send your Domain Name Checklist directly to your inbox.

It's the only domain name checklist you will ever need.

You have Successfully Subscribed!

Enter your name and email address below and I'll send your Blog Post SEO Checklist directly to your inbox.

It's the only SEO checklist you'll ever need.

You have Successfully Subscribed!

Enter your name and email address below and I'll send your awesome Become An ExpertChecklist directly to your inbox.

Crush Imposter Syndrome Starting Today!

You have Successfully Subscribed!

Monday Motivational Email

Yes!! Please help me stay motivated by sending me an awesome motivational email each Monday morning.

Success! Now check your email to confirm your subscription.

Affiliate Marketing Tips

Enter your name and email address below and I'll send your awesome Affiliate Tips Checklist.

More than 30 tips to help you increase commissions sent directly to your inbox.

You have Successfully Subscribed!

Join The Community!

 

Leave me your email and I will send you cool free stuff

You have Successfully Subscribed!

Sign Up To Get Notified About The Launch!

You have Successfully Subscribed!

utm parameters google analytics

Where should Isend your UTM Parameter Secret Decoder Ring?

It's the only UTM Parameter reference you will ever need, and I'll send it straight to your inbox.

You have Successfully Subscribed!

Want To Start Your Own Internet Profitable Online Business? Need Help Making It Grow?

Want To Start Your Own Internet Profitable Online Business? Need Help Making It Grow?

Just leave your email and I'll send you everything you need to get started, and helpful tips to make your business thrive.

You have Successfully Subscribed!

Enter your name and email address below and I'll send this presentation directly to your inbox.

These slides are perfectly with episodes 147 and 148.  They'll make everything crystal clear.

Your content is on the way!

Yes! Notify Me When New Late Night Internet Marketing Podcast Episodes Are Released!

You'll know when new episodes are available (and exactly where to find them).  Easy peasy.

You have Successfully Subscribed!

Yes! Notify Me When New Late Night Internet Marketing Podcast Episodes Are Released!

You'll know when new episodes are available (and exactly where to find them).  Easy peasy.

You have Successfully Subscribed!

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!