Displaying one’s Feedburner count as text
I bet you are tired of all the very boring chicklets of Feedburner because I know I am. I love paying a visit to professional web blogs and web sites that have integrated their feedburner subscriber numbers into the site’s templates in a visually appealing and unique way.
The steps of doing this are shown below:
1. Get the numbers from feedburner
2. Display the total count in the web site’s theme
Initial step-Getting the numbers feedburner
In the initial step, you are required to embed a code into your website that will communicate with feedburner and acquire the number. It then will store the number in a variable which will be displayed in step two.
To start just copy-and-paste the code that follows below in your theme. Remember to replace ‘Feedburner-id’ with your real feedburner=id.
//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
Second step-Displaying into your theme the count
To show the number which has been automatically stored within the variable you have to paste the code below into your theme into the location at where you need to display the count of the feed.
How to show Feedburner count on your WordPress blog
In case you are using WordPress, you should consider using the format given below:
first, you should install Feedburner Circulation plugin
Second, paste the code below into your web blog’s theme in whichever place you want it displayed.
That’s all you got to do. I bet it looks very complicated, but it isn’t. Read through it slowly and I hope you will find the formula that enables you to display your Feedburner count as text.