<?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>johnmu.com &#187; PHP</title>
	<atom:link href="http://johnmu.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnmu.com</link>
	<description>John Mueller's technical website tips and tricks</description>
	<lastBuildDate>Thu, 03 Dec 2009 12:42:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adding your Google Reader &#8217;shared items&#8217; to your site</title>
		<link>http://johnmu.com/google-shared-items-parse/</link>
		<comments>http://johnmu.com/google-shared-items-parse/#comments</comments>
		<pubDate>Sat, 28 Jul 2007 08:31:34 +0000</pubDate>
		<dc:creator>John Mueller</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://johnmu.com/google-shared-items-parse/</guid>
		<description><![CDATA[In order to display the Google Reader &#8217;shared items&#8217; on your site &#8211; using straight (X)HTML and not just the javascript widget supplied by Google &#8211; you need a tool that can read RSS feeds and display them (the shared items are an Atom feed, but that is similar enough). Using straight links instead of [...]]]></description>
			<content:encoded><![CDATA[<p>In order to display the Google Reader &#8217;shared items&#8217; on your site &#8211; using straight (X)HTML and not just the javascript widget supplied by Google &#8211; you need a tool that can read RSS feeds and display them (the shared items are an Atom feed, but that is similar enough). Using straight links instead of javascript you will be able to pass &#8220;link-value&#8221; to the items that you are linking to &#8211; your links will be seen as recommendations (as in my opinion they should be, if you tagged those items to be shared). I opted to use  the <a href="http://magpierss.sourceforge.net/">Magpie RSS PHP parser</a>. However, you will have to do a slight modification of one of the files in order to process and display the feed properly.<br />
<span id="more-87"></span><br />
With the original files, Magpie will combine the original URL of the post with the URL of the site itself (and similarly the title of the post with the title of the site). One solution would be to use Feedburner&#8217;s &#8220;feedconvert&#8221; feature to convert the feed with the shared items from Atom into a normal RSS feed &#8211; however, by doing that you will lose the title and URL of the site (only keeping the title and URL of the post). </p>
<p>The Magpie files are also included in the Wordpress installation (in /wp-includes/rss.php), instead of modifying them (and asking for trouble the next time you update Wordpress) I decided to create a copy of Magpie and modify that. The changes aren&#8217;t very complicated.</p>
<p>The steps required to set this up are:</p>
<ol>
<li>Download a copy of <a href="http://magpierss.sourceforge.net/">Magpie from SourceForge</a> as well as <a href="http://johnmu.com/files/magpie-mod/magpie-mod-011.zip">my modifications and test page</a></li>
<li>Create a folder on your website for Magpie, place Magpie there.</li>
<li>Create a folder for the cache (otherwise it will try to get the feeds every time the page is accesses), adjust the folder permissions to allow your code to write to it.</li>
<li>Modify the test page (use your feed instead of mine, set the cache folder properly) and <a href="http://johnmu.com/files/magpie-mod/test-magpie.php">try it out</a>.</li>
<li>Copy + paste part of the code into your site&#8217;s template, add the <a href="http://johnmu.com/files/magpie-mod/test-magpie.css">CSS</a> to your site&#8217;s stylesheet.</li>
<li>Done! Start sharing items <img src='http://johnmu.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ol>
<p>The current version of these modifications is v1.0 from July 28, 2007. </p>
<hr/>Copyright &copy; 2010 <strong><a href="http://johnmu.com">johnmu.com</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact johnmu.com so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>]]></content:encoded>
			<wfw:commentRss>http://johnmu.com/google-shared-items-parse/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.275 seconds -->
