<?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>Money-Code &#187; feedburner</title>
	<atom:link href="http://www.money-code.com/tag/feedburner/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.money-code.com</link>
	<description>Coding For Online Success</description>
	<lastBuildDate>Fri, 12 Feb 2010 18:27:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple modification to FD Feedburner Plugin</title>
		<link>http://www.money-code.com/2009/10/simple-modification-to-fd-feedburner-plugin/</link>
		<comments>http://www.money-code.com/2009/10/simple-modification-to-fd-feedburner-plugin/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 18:38:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=596</guid>
		<description><![CDATA[Today for one of my sites, I needed to populate a Facebook page with a feed, but I didn&#8217;t want the entire post as the &#8216;note&#8217;. I found a great plugin called Feed Facebook, Leave Facebook that leaves a partial feed with a link to &#8216;leave Facebook&#8217; to your site. This is EXACTLY what I [...]


Related posts:<ol><li><a href='http://www.money-code.com/2010/01/issues-with-cjniche-wordpress-plugin/' rel='bookmark' title='Permanent Link: Issues with CJNiche WordPress Plugin'>Issues with CJNiche WordPress Plugin</a></li>
<li><a href='http://www.money-code.com/2007/09/simple-script-for-connecting-to-commission-junctions-product-web-service-and-populating-a-local-database/' rel='bookmark' title='Permanent Link: Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database'>Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database</a></li>
<li><a href='http://www.money-code.com/2009/08/including-your-wordpress-blogs-to-a-external-website/' rel='bookmark' title='Permanent Link: Including your WordPress blogs to a external website'>Including your WordPress blogs to a external website</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F10%2Fsimple-modification-to-fd-feedburner-plugin%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F10%2Fsimple-modification-to-fd-feedburner-plugin%2F" height="61" width="51" /></a></div><p>Today for one of my sites, I needed to populate a Facebook page with a feed, but I didn&#8217;t want the entire post as the &#8216;note&#8217;. I found a great plugin called <a href="http://www.keyvan.net/code/feed-facebook-leave-facebook/" target="_blank">Feed Facebook, Leave Facebook</a> that leaves a partial feed with a link to &#8216;leave Facebook&#8217; to your site. This is EXACTLY what I needed, but I was having problem with my <a href="http://flagrantdisregard.com/feedburner/" target="_blank">FD Feedburner Plugin</a> which auto-magically converts my RSS feeds to feedburner feeds. In this particular case, I needed to exclude a single feed from this. Unfortunately, this is not a configuration option.</p>
<p>So I&#8217;m posting this mainly for myself in case there is a plugin update and I need to know how I did this the first time, but I can see that few might find this useful.</p>
<p>Basically in the feedburner_redirect() function, we need to add a conditional:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$feed_url</span> != <span class="kw2">null</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Redirect the feed</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/header"><span class="kw3">header</span></a><span class="br0">&#40;</span><span class="st0">&quot;Location: &quot;</span>.<span class="re0">$feed_url</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/die"><span class="kw3">die</span></a>;<br />
<span class="br0">&#125;</span></div>
<p>Needs to be changed to this:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$feed_url</span> != <span class="kw2">null</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Redirect the feed</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>!<a href="http://www.php.net/eregi"><span class="kw3">eregi</span></a><span class="br0">&#40;</span><span class="st0">&#8216;facebook&#8217;</span>,<span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&#8216;REQUEST_URI&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/header"><span class="kw3">header</span></a><span class="br0">&#40;</span><span class="st0">&quot;Location: &quot;</span>.<span class="re0">$feed_url</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/die"><span class="kw3">die</span></a>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div>
<p>The feed url that Facebook will be using looks similar to this : http://www.yourdomain.com/feed?feedfacebook, if we detect this in the REQUEST_URI, we do nothing with the redirect. Now Facebook will be happy with our new feed, while any other requests to our site&#8217;s feed will be directed to Feedburner.</p>


<p>Related posts:<ol><li><a href='http://www.money-code.com/2010/01/issues-with-cjniche-wordpress-plugin/' rel='bookmark' title='Permanent Link: Issues with CJNiche WordPress Plugin'>Issues with CJNiche WordPress Plugin</a></li>
<li><a href='http://www.money-code.com/2007/09/simple-script-for-connecting-to-commission-junctions-product-web-service-and-populating-a-local-database/' rel='bookmark' title='Permanent Link: Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database'>Simple script for connecting to Commission Junction&#8217;s Product Web Service and populating a local database</a></li>
<li><a href='http://www.money-code.com/2009/08/including-your-wordpress-blogs-to-a-external-website/' rel='bookmark' title='Permanent Link: Including your WordPress blogs to a external website'>Including your WordPress blogs to a external website</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/10/simple-modification-to-fd-feedburner-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->