<?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>www.nerdscene.com &#187; digg</title>
	<atom:link href="http://www.nerdscene.com/tag/digg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nerdscene.com</link>
	<description>bitching about everything, one post at a time...</description>
	<lastBuildDate>Tue, 06 Apr 2010 17:40:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Can you digg it?</title>
		<link>http://www.nerdscene.com/2007/02/26/10/</link>
		<comments>http://www.nerdscene.com/2007/02/26/10/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 09:11:02 +0000</pubDate>
		<dc:creator>Eli Sand</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.hoktar.com/blog/archives/8</guid>
		<description><![CDATA[Everyone else seemed to have these &#8220;digg it&#8221; links on their sites, so I figured I needed it too since that&#8217;s the web 2.0 way apparently. So, now I have some pretty little &#8220;digg it&#8221; links beside each post! I haven&#8217;t tried any yet, but they should work. I&#8217;ll just wait for my first digg [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone else seemed to have these &#8220;digg it&#8221; links on their sites, so I figured I needed it too since that&#8217;s the web 2.0 way apparently.  So, now I have some pretty little &#8220;digg it&#8221; links beside each post!  I haven&#8217;t tried any yet, but they should work.  I&#8217;ll just wait for my first digg to happen and hope someone used a link to do it <img src='http://www.nerdscene.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Update: I have updated the iframe tag code to encode the URL, and also added a fix for IE so that the iframe would display properly.</strong></p>
<p>If people are interested in adding the links to their own installations you can follow the instructions on digg.com&#8217;s site about integration which says to just insert a &lt;script&gt; tag, but I personally don&#8217;t really like the idea of using in-line &lt;script&gt; tags.  They belong in the header, not strewn about in the body.  So instead of using their code, I decyphered what their code did and just inserted the actual HTML.  It turns out that all their script really does is just produce an &lt;iframe&gt; tag, so I took what they produced and tweaked it a bit and made it all web 2.0.<br />
<span id="more-10"></span><br />
<code>&lt;style type="text/css"&gt;<br />
.digger {<br />
width:      52px;<br />
height:     80px;<br />
overflow:   hidden;<br />
border:     none;<br />
}<br />
&lt;/style&gt;<br />
<strike> &lt;iframe class="digger" src="http://digg.com/tools/diggthis.php?u=&lt;?php the_permalink(); ?&gt;"&gt;&lt;/iframe&gt;</strike><br />
&lt;iframe class="digger" frameborder="0" scrolling="no" src="http://digg.com/tools/diggthis.php?u=&lt;?php echo rawurlencode(get_permalink()); ?&gt;&amp;t=&lt;?php echo rawurlencode(the_title()); ?&gt;&amp;b=&lt;?php echo rawurlencode(the_excerpt()); ?&gt;"&gt;&lt;/iframe&gt;</code></p>
<p>That&#8217;s essentially all you need &#8211; place the CSS anywhere really (I just made mine inline for now for simplicity), and then put the &lt;iframe&gt; tag in to the &#8220;post loop&#8221; in the index.php page for your theme and you&#8217;re all done!  You&#8217;ll want to add some extra CSS to the class though so you can position/format it nicely, but you&#8217;ll want to keep what I&#8217;ve given you already.</p>
<p>Enjoy!  No fancy plugins required (though perhaps one would be nice &#8211; maybe I&#8217;ll add one when I dive in to WordPress plugins some time) and no fancy JavaScript required either!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nerdscene.com/2007/02/26/10/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

