How to Display Feedburner count as Text with styles?
Did you guys ever wonder, how people display feedburner stats in text? If you remember, I even did it a while back and then I took it off. Well a lot of people display it in text and have their own styling on it. In this post, I will show you how to display feedburner subscriber count as text on your site.
Why Feedburner Count as Text?
Simple, feedburner buttons are ugly. They don’t match with all the designs, and on most designs they just look ugly. This is the way you can style it and make it look like a part of a design rather than a copy and paste.
How to add Feedburner Count as Text?
This is a two step process.
Step 1
Paste the following codes in your template file where you want to display the count. And make sure you change the feed burner id from balkhis to your feedburner id.
<?php
//get cool feedburner count
$whaturl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=rss4real";
//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
curl_close($ch);
$xml = new SimpleXMLElement($data);
$fb = $xml->feed->entry['circulation'];
//end get cool feedburner count
?>
Step 2
Now paste the following codes to display the count wherever you like. Wrap it around the div tags to style it the way you want.
<?php echo $fb;?>
This will allow you to display feedburner subscriber count as text on your site. Credit of these codes goes to 45n5





















Hey, I am Syed Balkhi, The guy who is behind Balkhis Inc. I entered the industry back in 2002 not knowing a single thing. I barely spoke English at that time. In the past six years, my language barrier has been eliminated. Aside from English, now I also speak html, and php. Along with the languages I have also managed to master a few arts. Art of web-designing started when I first entered. Messing around with photoshop, I learned how to create my first web design. Now I founded a web designing firm Uzzz Productions. After running numerous amount of websites in various niche, I have mastered the art of web-development. Now I am compiling a resource of what I already know, and what I am learning on this blog. This resource is to help me if I ever need a guide to look back to, and it is help my fellow webmasters.




Woah, that code looks tricky – lucky it’s just a copy and paste, right?
It’s good because I don’t like the default feedburner button which is why I don’t have it up on my site. so this way I can add whatever images and styling I want around it.
From yesterday’s post: I learnt some CSS today – hope to know it really well / fluently within a week
That is awesome! I am going to have to get mine looking great!
I use a similar code since april
i love it, i make a nice and simple background, and put in top of my sidebar
is so cool
Well thanks for the code
. I didn’t know this before.
that’s a nice trick syed, but it would have been much better if there were few visual examples attached.
Visual example of this can be found at http://www.smashingmagazine.com
you can use the Feed count plugin to do this. Then you just need some CSS skills to make it nice
Thanks, nice tips dude
Another nice tip. I am going to think about adding this into my blog.
I never saw this in Feedburner before and I was wondering how other websites did that. Thanks for posting this here! Now I can change my feedburner count to text.
OMG, this is a great post, this widgets at Burner are ugly, love the step-by-step and code, thanks so much!
JR
[...] Balkhis – Syed posted a nice tutorial about how you can get your feedburner subscriber count to show up as text instead of the little ticker. This could be useful if you want to integrate it more into your [...]
I remember seeing this at Carl Ocab’s blog. This is a cool way of displaying the feed count. Thanks for the tip.
Thanks for sharing the code.
will this work on any wordpess site?
Yes it should.
Awesome tip! Feedburner is such a great resource. I’ve been guilty of not using it in the past but after some reading, I think it’s one of the best resources out there. Thanks for letting me know how to format this better!
ehm. thanks about that tips. I never know anything about that. Seems new to me.
Thanks for the info and the code. Will be very useful.
Will definitely try it.
Thank u for the info and the code. Your data is very useful
Thanks for the data and the code. Will take note of your tips and apply it to my file later
[...] found this tutorial on Balkhis. The original source 45n5 is no longer there. We have made it into a one step instead of a two step [...]