<?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>Learning the World &#187; del.icio.us</title>
	<atom:link href="http://learningtheworld.eu/tag/delicious/feed/" rel="self" type="application/rss+xml" />
	<link>http://learningtheworld.eu</link>
	<description></description>
	<lastBuildDate>Tue, 06 Nov 2012 00:17:33 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>WordPress Goodies with InlineRSS</title>
		<link>http://learningtheworld.eu/2008/wordpress-goodies-with-inlinerss/</link>
		<comments>http://learningtheworld.eu/2008/wordpress-goodies-with-inlinerss/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 19:00:46 +0000</pubDate>
		<dc:creator><![CDATA[Martin Kliehm]]></dc:creator>
				<category><![CDATA[downloads]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Christian Heilmann]]></category>
		<category><![CDATA[del.icio.us]]></category>
		<category><![CDATA[Ed Eliot]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[inlineRSS]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[upcoming]]></category>
		<category><![CDATA[XSL]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://learningtheworld.eu/2008/wordpress-goodies-with-inlinerss/</guid>
		<description><![CDATA[Christmas is over, but I thought I might share a few of the scripts used on this site with you anyway. The key is an <strong>incredibly useful plugin called inlineRSS</strong> that pulls everything you throw at it into your site. You only need some <acronym title="Extensible Stylesheet Language Transformation">XSLT</acronym> magic. Since <acronym>XSLT</acronym> isn&#8217;t everyone&#8217;s strength, just copy my files. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Christmas is over, but I thought I might share a few of the scripts used on this site with you anyway. The key is an <strong>incredibly useful plugin called <a href="http://www.iconophobia.com/wordpress/?page_id=55">inlineRSS</a></strong> that pulls everything you throw at it into your site. You only need some <acronym title="Extensible Stylesheet Language Transformation">XSLT</acronym> magic. Since <acronym>XSLT</acronym> isn&rsquo;t everyone&rsquo;s strength, just copy my files:</p>

<ol>
<li>
<p>Let&rsquo;s start with the simplest transformation, pulling <strong>the number of people who have bookmarked your post</strong> on del.icio.us. There are two components: one line of <acronym>PHP</acronym> code to insert the result in the footer of a page (found in template file <code>single.php</code>), and a few lines of <acronym>XSLT</acronym> for the transformation:</p>
<ol class="code">
<li><code>&lt;?php inlineRSS(</code></li>
<li class="indent"><code>&#39;delicious-incoming-&#39;&nbsp;. $id,<br />
&#39;<ins datetime="2008-07-27">http://feeds.delicious.com</ins>/rss/url?url=&#39;&nbsp;. get_permalink(), 60, <strong>&#39;inline-rss-linked.xslt&#39;</strong>);</code></li>
<li><code>?&gt;</code></li>
</ol>
<p>The function <code>inlineRSS()</code> takes four arguments: the filename where you want to cache the result, the feed <acronym title="Uniform Resource Identifier">URI</acronym>, the time to cache in minutes, and the filename of the transformation stylesheet. The latter has to be in the same directory as <code>inlineRSS.php</code> (the plugin).</p>
<ol class="code">
<li><code>&lt;xsl:template match=&quot;/rdf:RDF&quot;&gt;</code></li>
<li class="indent"><code>&lt;xsl:if test=&quot;count( rss:item ) &amp;gt; 0&quot;&gt;</code></li>
<li class="indent double"><code>Saved by &lt;span class="linked-in"&gt;<strong>&lt;xsl:value-of select=&quot;count( rss:item )&quot;&nbsp;/&gt;</strong>&lt;/span&gt; other people.</code></li>
<li class="indent"><code>&lt;/xsl:if&gt;</code></li>
<li><code>&lt;/xsl:template&gt;</code></li>
</ol>
<p><strong>Download:</strong> <a href="/downloads/inline-rss-linked.xslt"><code>inline-rss-linked.xslt</code></a></p>
</li>
<li>
<p>In the sidebar of this blog you see a section &ldquo;current reading&rdquo; which displays <strong>my latest five del.icio.us entries</strong> I have tagged with <code>show-in-blog</code>. Because I&rsquo;m too lazy to add a description on del.icio.us there is just the title and the tags, minus &ldquo;show-in-blog.&rdquo; Here is the code for <code>sidebar.php</code>:</p>
<ol class="code">
<li><code>&lt;?php inlineRSS(</code></li>
<li class="indent"><code>&#39;delicious-links&#39;,<br />
&#39;http://<ins datetime="2008-07-27">feeds.delicious.com</ins>/rss/<span class="codeSpace">&nbsp;</span><strong>your-delicious-name</strong>/show-in-blog&#39;, 60, <strong>&#39;inline-rss-delicious.xslt&#39;</strong>);</code></li>
<li><code>?&gt;</code></li>
</ol>
<p>Of course &ldquo;your-delicious-name&rdquo; needs to be replaced. <img src="http://learningtheworld.eu/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /> </p>
<p><strong>Download:</strong> <a href="/downloads/inline-rss-delicious.xslt"><code>inline-rss-delicious.xslt</code></a></p>
</li>

<li>
<p>Finally there is a list of <strong>my upcoming events</strong>, including microformatted semantic information. The <acronym>XSLT</acronym> is a little longer, but not really complicated. You just need to replace the upcoming ID with your own.</p>
<ol class="code">
<li><code>&lt;?php inlineRSS(</code></li>
<li class="indent"><code>&#39;upcoming&#39;,<br />
&#39;http://upcoming.yahoo.com/<span class="codeSpace">&nbsp;</span>syndicate/v2/<span class="codeSpace">&nbsp;</span>my_events/<span class="codeSpace">&nbsp;</span><strong>123456</strong>&#39;, 60, <strong>&#39;inline-rss-upcoming.xslt&#39;</strong>);</code></li>
<li><code>?&gt;</code></li>
</ol>
<p><strong>Download:</strong> <a href="/downloads/inline-rss-upcoming.xslt"><code>inline-rss-upcoming.xslt</code></a></p>
</li>
</ol>

<p>I&rsquo;d like to point out that this is certainly not the only, and perhaps not even the best way to implement feeds into your site, but it&rsquo;s pretty convenient once you&rsquo;ve installed inlineRSS.</p>

<p><strong>Chris Heilmann</strong> approaches the issue with a <a href="http://www.wait-till-i.com/2007/08/01/yummy-add-delicious-boomarks-to-your-wordpress-blog-with-a-simple-plugin/">client side plugin</a> to distribute tasks from the server to the client. His JavaScript is insofar unobtrusive as the list of inline del.icio.us links is replaced with an external link to his del.icio.us category, but then you give away the responsibility that the list is accessible as well. That&rsquo;s why I would prefer a server side solution.</p>

<p><strong>Ed Eliot</strong> has written a script to create a very pretty <a href="http://www.ejeliot.com/blog/74">server side del.icio.us badge</a> that I highly recommend, but it&rsquo;s not as universal as the <em>inlineRSS</em> plugin, and it&rsquo;s not a WordPress plugin to begin with (the same applies to his neat <a href="http://www.ejeliot.com/blog/77">SimpleRSS</a> script). But both Chris&rsquo; and Ed&rsquo;s solutions are decent alternatives to take into consideration.</p>
]]></content:encoded>
			<wfw:commentRss>http://learningtheworld.eu/2008/wordpress-goodies-with-inlinerss/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
