<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blogussion &#187; twitter count</title>
	<atom:link href="http://www.blogussion.com/tag/twitter-count/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogussion.com</link>
	<description>Blogging Discussion, Tips &#38; Tricks</description>
	<lastBuildDate>Wed, 08 Feb 2012 07:48:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How To Display RSS and Twitter Count in Plain Text</title>
		<link>http://www.blogussion.com/favorites/display-twitter-rss-count/</link>
		<comments>http://www.blogussion.com/favorites/display-twitter-rss-count/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 14:09:46 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Favorites]]></category>
		<category><![CDATA[Study of Design]]></category>
		<category><![CDATA[rss text]]></category>
		<category><![CDATA[twitter count]]></category>

		<guid isPermaLink="false">http://www.blogussion.com/?p=6823</guid>
		<description><![CDATA[Here is a neat trick to making your blog look better. I hate seeing those default Feedburner and Twittercounter chicklets on other people&#8217;s blog, because they look so ugly. No matter what color you change them, they never look nice. So, wouldn&#8217;t a neat trick be to display these counter on your own terms? As [...]


Related posts:<ol><li>
<a href='http://www.blogussion.com/favorites/customizing-input-forms/' rel='bookmark' title='4 Tricks For &#8220;Awesome-izing&#8221; Input Forms'>4 Tricks For &#8220;Awesome-izing&#8221; Input Forms</a></li>
<li>
<a href='http://www.blogussion.com/general/feedburner-crash/' rel='bookmark' title='Did Google&#8217;s FeedBurner Crash and Burn?'>Did Google&#8217;s FeedBurner Crash and Burn?</a></li>
<li>
<a href='http://www.blogussion.com/favorites/7-clever-strategies-for-earning-more-followers-on-twitter/' rel='bookmark' title='7 Clever Strategies For Earning More Followers on Twitter'>7 Clever Strategies For Earning More Followers on Twitter</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p><p><span class="drop_cap">H</span>ere is a neat trick to making your blog look better. I hate seeing those default Feedburner and Twittercounter chicklets on other people&#8217;s blog, because they look so ugly. No matter what color you change them, they never look nice. So, wouldn&#8217;t a neat trick be to display these counter on your own terms?</p>
<p><span id="more-6823"></span></p>
<p>As you can see here on Blogussion, at the top nav menu there is the count for both <acronym title="Really Simple Syndication">RSS</acronym> and the Blogussion Twitter followers. I like to have them display as text because I can easily customize the looks of them on my own terms.</p>
<h4>Why text is better than a chicklet</h4>
<p>When you change to the text form, I almost guarantee you will see more conversions and will gain new subscribers &#8211; <em>if</em> you do it right!</p>
<p>The real perk of using this text block is that it just shows the number of followers/subscribers you have. That means you are free to add any kind of text you want before or after that count. The real trick here is how to hook people in to clicking that link and subscribing to your feed or following you on Twitter.</p>
<p>A simple example of what may be a good catch to sign up would be something like <em>&#8220;Come join 1,568 other people who are learning about blogging.&#8221;</em> It&#8217;s simple, catchy and it shows that there are a number of people who are learning about blogging by reading from your blog.</p>
<h3>Displaying <acronym title="Really Simple Syndication">RSS</acronym> Count</h3>
<p>Create a new file, name it <code>feed.php</code> and paste the following into it:</p>
<pre>&lt;?php
//get cool feedburner count
$whaturl="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=<strong>Feed Here</strong>";

//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-&gt;feed-&gt;entry['circulation'];
//end get cool feedburner count

echo $fb;

?&gt;</pre>
<p>Edit the line at the very top with the name of your feed. For example, I would put &#8220;Blogussion&#8221; on the line. Then just simply add this line of code wherever you want the count to display: <code>&lt;?php include("feed.php"); ?&gt;</code></p>
<h6>Script found on <a href="http://www.hongkiat.com/">Hongkiat.com</a></h6>
<h3>Displaying Twitter Count</h3>
<p>Create a file called <code>twitter.php</code> and paste the following code into it:</p>
<pre>&lt;?php
$tw = get_option("twitterfollowerscount");
if ($tw['lastcheck'] &lt; ( mktime() - 3600 ) )
{
$xml=file_get_contents('http://twitter.com/users/show.xml?screen_name=<strong>Feed here</strong>');
if (preg_match('/followers_count&gt;(.*)&lt;/',$xml,$match)!=0) {
$tw['count'] = $match[1];
}
$tw['lastcheck'] = mktime();
update_option("twitterfollowerscount",$tw);
}
echo $tw['count'];
?&gt;</pre>
<h6>Script found at <a href="http://www.wprecipes.com/">WP Recipes</a></h6>
<p>Again, edit what&#8217;s in bold to your Twitter name and paste this code wherever you want the count to display: <code>&lt;?php include("twitter.php"); ?&gt;</code></p>
<p>So those are two coll little tricks that really make a difference on your blog. Let me know what you guys think of using this trick, let alone sharing the number of subscribers on your blog.</p>
<h6 style="float: right">Photo by<a href="http://www.flickr.com/photos/stewf/"> Stephen Coles</a></h6>


<p>Related posts:<ol><li><p><a href='http://www.blogussion.com/favorites/customizing-input-forms/' rel='bookmark' title='4 Tricks For &#8220;Awesome-izing&#8221; Input Forms'>4 Tricks For &#8220;Awesome-izing&#8221; Input Forms</a></p></li>
<li><p><a href='http://www.blogussion.com/general/feedburner-crash/' rel='bookmark' title='Did Google&#8217;s FeedBurner Crash and Burn?'>Did Google&#8217;s FeedBurner Crash and Burn?</a></p></li>
<li><p><a href='http://www.blogussion.com/favorites/7-clever-strategies-for-earning-more-followers-on-twitter/' rel='bookmark' title='7 Clever Strategies For Earning More Followers on Twitter'>7 Clever Strategies For Earning More Followers on Twitter</a></p></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.blogussion.com/favorites/display-twitter-rss-count/feed/</wfw:commentRss>
		<slash:comments>53</slash:comments>
		</item>
	</channel>
</rss>

