You've all seen the little FeedBurner subscriber counters on sites that display a site or more often a blogs number of RSS subscribers. Whilst this is a nice widget to display on your site there isn't much in the way of customizing to display something different.
Plaint text subscriber count
There is a way to display the number of readers you have for your feed by using FeedBurners API. This means you can display your subscriber count within some text, for example as part of a blog post. You could also have a separate message somewhere on you site saying X number of readers subscribe to this site.
You can use the PHP code below. You need to have PHP5 otherwise the SimpleXMLElement command will not work.
//get cool feedburner count
//Initialize the Curl session
$ch = curl_init();
//Set curl to return the data instead of printing it to the browser.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//Set the URL
curl_setopt($ch, CURLOPT_URL, $whaturl);
//Execute the fetch
$data = curl_exec($ch);
//Close the connection
$xml = new SimpleXMLElement($data);
$fb = $xml->feed->entry['circulation'];
//end get cool feedburner count
The next line of PHP needs to be located where you want the subscriber count number to appear. This code needs to occur after the code above for it to work.
<?php echo $fb;?>
I borrowed this code from Mark over at 45n5 so thanks Mark.
OR subscribe via Email Feed Compare Feedburner subscriber graphs RSS advertising with Bidvertiser 3 things you really want to know about RSS Checking your own RSS feeds Selling RSS subscribers a sad day RSS Hugger FeedBurner feed count drop The value of an RSS subscriber at 30 dollars John Chow vs Shoemoney RSS competition How to display your RSS subscriber count How to transfer an RSS feed in FeedBurner RSS spam Protecting your RSS feeds image replacement Exchanging RSS feeds to increase subscribers River of news is now a flood and how not to drown in it The Best RSS podcast reader FeedGhost contest winner and the eBay RSS experiment RSS Brief feed summary RSS adgregation with Blogrush More secret RSS competitions Books about RSS Displaying RSS How to RSS News readers PHP RSS RSS advertising RSS Articles RSS autoresponders RSS content RSS in action RSS News RSS promotion RSS Publishers FAQ RSS publishing tools RSS resources RSS Subscribers FAQ RSS thoughts RSS tips and advice RSS tools reviewed RSS validators RSS widgets and tools Site admin