FeedBurner, Delicious and Twitter provided a way to showing you the several times the URL of the current page has actually appeared on their services. So the visitors assessed to your website can know How many people were Subscribed your feed url, how many people you have bookmarked your website url at Delicious or how many follower of your Twitter account ...

Display plan text counter

Display plan text counter

Simple, their counter buttons are ugly. They don’t match with all the designs, and on most designs they just look ugly. The ability to display the subscriber count gives you a lot of control over styling and make the count work with your design. Therefore in this article we will share a way you can display FeedBurner subscriber, Twitter followers, Delicious saver count as text in WordPress (it also has the same effect in other blog, cms platform) which allows you can style it and make it look like a part of a design rather than a copy and paste.

Display your FeedBurner count in full text

Copy paste the following code into your template, replace feedburner-id with your FeedBuner username. This script will grab you the feed count in numbers.

//get cool FeedBurner count
$fburl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=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
curl_close($ch);
$xml = new SimpleXMLElement($data);
$rsscount = $xml->feed->entry['circulation'];
//end get cool feedburner count
echo $rsscount;
?>

To Display Feed Counter For Google FeedProxy In Text you can use the above code but you need to change this:

$fburl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=feedburner-id";

Into This:

$fburl="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=feedburner-id";

You can surround it with the styling you like.

Get the number of Twitter follower in full text

When you have a website or blog and use Twitter, it is cool to display how many followers you have. To do so, simply use the short code snippet below.

<?php
$xml=file_get_contents('http://twitter.com/users/show.xml?screen_name=catswhocode');
if (preg_match('/followers_count>(.*)</',$xml,$match)!=0) {
	$tw['count'] = $match[1];
}
echo $tw['count'];
?>

Replace twitter-id with your twitter username.

Show how many times your url has been added to Delicious

To make your count into plain text (for now and then you can do with it what ever you want) I'll use small JavaScript and del.icio.us JSON feeds.
The HTML code

I was found <span id="delicious-count">0</span> reader who has been saved me to del.icio.us

The JavaScript

<script type="text/javascript">
//the callback -- what do we do with the json response?
function get_delicious_count(info) {
	//get the number of saves
	var num = info[0].total_posts
	//if none, do nothing
	if(!num) return;
	//if some, I add the number to the end of my link, like at the top of every one of my article posts.
	return $('delic').set({
		'text': $('delic').get('text') + ' (' + num + ')',
		'title': num + ' people found this post delicious!'
	});
}
</script>

<!-- GET THE JSON DATA -->
<script src='http://badges.del.icio.us/feeds/json/url/data?url=http://www.narga.net/display-plan-text-counter-of-feedburner-delicious-and-twitter/&callback=get_delicious_count'></script>

That’s it. It might look complicated, but it’s not. Just read it over slowly and let me know if you have any questions.