<?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/"
xmlns:media="http://search.yahoo.com/mrss/"
><channel><title>YoastFeedburner - Archives - Yoast - Tweaking Websites</title> <atom:link href="http://yoast.com/tag/feedburner/feed/" rel="self" type="application/rss+xml" /><link>http://yoast.com</link> <description>Tweaking Websites</description> <lastBuildDate>Thu, 02 Sep 2010 14:00:08 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <image><title>Yoast</title> <url>http://cdn.yoast.com/wp-content/themes/yoast-v2/images/yoast-logo-rss.png</url><link>http://yoast.com</link> <width>144</width> <height>103</height> <description>Tweaking Websites</description> </image> <item><title>FeedBurner subscription show-off revisited</title><link>http://yoast.com/feedburner-subscription-feedproxy-google/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=feedburner-subscription-feedproxy-google</link> <comments>http://yoast.com/feedburner-subscription-feedproxy-google/#comments</comments> <pubDate>Sun, 21 Dec 2008 19:08:00 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[Feedburner]]></category> <category><![CDATA[WordPress Themes]]></category><guid
isPermaLink="false">http://yoast.com/?p=1311</guid> <description><![CDATA[<p>A couple of months back I blogged about how to show off your FeedBurner subscribers. In the comments then, a couple of people told me the code didn't work for them. After a few back and forths I found out those people were on FeedBurner's new servers, the Google ones. This new server actually has [...]</p><p><a
href="http://yoast.com/feedburner-subscription-feedproxy-google/">FeedBurner subscription show-off revisited</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>A couple of months back I blogged about how to <a
href="http://yoast.com/feedburner-subscriber-count/">show off your FeedBurner subscribers</a>. In the comments then, a couple of people told me the code didn't work for them. After a few back and forths I found out those people were on FeedBurner's new servers, the Google ones.</p><p>This new server actually has a new API Endpoint as well, and this endpoint brings along a bit of trouble. Google in all its wisdom decided to move the API onto HTTPS. Problem is, I was using Snoopy, which rocks, but doesn't work with HTTPS easily. It needs CURL for that, and if it needs CURL anyway, why not use the built-in PHP CURL. So, here's the code to use when you're on feedproxy (if this doesn't work for you, try the above linked older code):</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$url</span>	<span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=joostdevalk&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$ch</span> 	<span style="color: #339933;">=</span> curl_init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
curl_setopt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
curl_setopt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> curl_exec<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
curl_close<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>		
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/circulation=\&quot;([0-9]+)\&quot;/'</span><span style="color: #339933;">,</span><span style="color: #000088;">$data</span><span style="color: #339933;">,</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$matches</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$fb</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'count'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$fb</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lastcheck'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mktime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	update_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;feedburnersubscribecount&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$fb</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #990000;">echo</span> <span style="color: #000088;">$fb</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'count'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' Subscribers can\'</span>t be wrong<span style="color: #339933;">!</span> Subscribe by <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://yoast.com/email-blog-updates/&quot;</span><span style="color: #339933;">&gt;</span>email<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span> or to the <span style="color: #339933;">&lt;</span>a rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nofollow&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://feeds.feedburner.com/joostdevalk&quot;</span><span style="color: #339933;">&gt;</span>RSS feed<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span> now<span style="color: #339933;">!</span><span style="color: #0000ff;">';</span></pre></div></div><p>Enjoy!</p><p><a
href="http://yoast.com/feedburner-subscription-feedproxy-google/">FeedBurner subscription show-off revisited</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/feedburner-subscription-feedproxy-google/feed/</wfw:commentRss> <slash:comments>22</slash:comments> </item> <item><title>Showing off your FeedBurner subscribers</title><link>http://yoast.com/feedburner-subscriber-count/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=feedburner-subscriber-count</link> <comments>http://yoast.com/feedburner-subscriber-count/#comments</comments> <pubDate>Mon, 27 Oct 2008 13:47:54 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[Feedburner]]></category><guid
isPermaLink="false">http://yoast.com/?p=1272</guid> <description><![CDATA[<p>Quite a few websites have started to show of their FeedBurner subscriber count with something else than a widget. To do that, you have to be able to grab the number of subscribers through the FeedBurner API. Now I bet you want to know how! It's bloody easy in WordPress, just do this: $fb = [...]</p><p><a
href="http://yoast.com/feedburner-subscriber-count/">Showing off your FeedBurner subscribers</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p><img
src="http://cdn.yoast.com/wp-content/uploads/2008/10/smashing-subscribers.png" alt="smashing-subscribers.png" style="margin-top: -20px;" width="166" height="126" align="right" />Quite a few websites have started to show of their FeedBurner subscriber count with something else than a widget. To do that, you have to be able to grab the number of subscribers through the <a
href="http://code.google.com/apis/feedburner/">FeedBurner API</a>.</p><p>Now I bet you want to know how! It's bloody easy in WordPress, just do this:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$fb</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;feedburnersubscribecount&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$fb</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lastcheck'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&lt;</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">mktime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">600</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$snoopy</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Snoopy<span style="color: #339933;">;</span>
	<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$snoopy</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://api.feedburner.com/awareness/1.0/GetFeedData?uri=feedburnerid&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/circulation=\&quot;([0-9]+)\&quot;/'</span><span style="color: #339933;">,</span><span style="color: #000088;">$snoopy</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">results</span><span style="color: #339933;">,</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$matches</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
			<span style="color: #000088;">$fb</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'count'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$fb</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lastcheck'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mktime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		update_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;feedburnersubscribecount&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$fb</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #990000;">echo</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">.</span><span style="color: #000088;">$fb</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'count'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' Subscribers can\'</span>t be wrong<span style="color: #339933;">!</span> Subscribe by <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://yoast.com/email-blog-updates/&quot;</span><span style="color: #339933;">&gt;</span>email<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span> or to the <span style="color: #339933;">&lt;</span>a rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nofollow&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://feeds.feedburner.com/joostdevalk&quot;</span><span style="color: #339933;">&gt;</span>RSS feed<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span> now<span style="color: #339933;">!</span><span style="color: #0000ff;">';</span></pre></div></div><p>Copy, paste, replace <code>feedburnerid</code> with your own FeedBurner ID, and you're done!</p><p><strong>Update:</strong> updated the code to include caching, as you might overload the FeedBurner API otherwise.</p><p><strong>Update 2:</strong> if you get an error saying it can't find the class Snoopy, add this above the code:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>ABSPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'wp-includes/class-snoopy.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>If this doesn't work for you, and you're on FeedBurners new feedproxy.google.com servers, try <a
href="http://yoast.com/feedburner-subscription-feedproxy-google/">this solution</a>.</p><p><a
href="http://yoast.com/feedburner-subscriber-count/">Showing off your FeedBurner subscribers</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/feedburner-subscriber-count/feed/</wfw:commentRss> <slash:comments>57</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2008/10/smashing-subscribers.png" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2008/10/smashing-subscribers.png" medium="image"> <media:title type="html">smashing-subscribers.png</media:title> </media:content> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc (request URI is rejected)
Database Caching 6/14 queries in 0.011 seconds using apc
Content Delivery Network via cdn.yoast.com

Served from: yoast.com @ 2010-09-02 15:35:06 -->