<?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>phoenixheart - portfolio &#38; more &#187; digg</title>
	<atom:link href="http://www.phoenixheart.net/tag/digg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phoenixheart.net</link>
	<description>phoenixheart - portfolio &#38; more</description>
	<lastBuildDate>Wed, 23 Mar 2011 09:47:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<script type="text/javascript">
if (typeof Meebo == "undefined") {
Meebo=function(){(Meebo._=Meebo._||[]).push(arguments)};
(function(q){

	var args = arguments;
	if (!document.body) { return setTimeout(function(){ args.callee.apply(this, args) }, 100); }
	var d=document, b=d.body, m=b.insertBefore(d.createElement('div'), b.firstChild); s=d.createElement('script');
	m.id='meebo'; m.style.display='none'; m.innerHTML='<iframe id="meebo-iframe"></iframe>';
	s.src='http'+(q.https?'s':'')+'://'+(q.stage?'stage-':'')+'cim.meebo.com/cim/cim.php?network='+q.network;
	b.insertBefore(s, b.firstChild);

})({network:'phoenixheartnet_bo16we'});	}</script>	<item>
		<title>Digg This O&#8217; Mine</title>
		<link>http://www.phoenixheart.net/2008/10/digg-this-o-mine/</link>
		<comments>http://www.phoenixheart.net/2008/10/digg-this-o-mine/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 03:44:00 +0000</pubDate>
		<dc:creator>An</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Server stuffs]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[Digg This O' Mine]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.phoenixheart.net/?p=112</guid>
		<description><![CDATA[Just like most of us here, I love WordPress, and I like Digg. And as you may know, Digg allows us to integrate the &#8220;Digg This&#8221; button into virtually any web page. Yes, this naturally includes my WordPress posts. Yay! The integration is dead simple. To display a &#8220;Digg This&#8221; button in my post, I [...]]]></description>
			<content:encoded><![CDATA[<p><span class="drop-cap">J</span>ust like most of us here, I love WordPress, and I like Digg.</p>
<p>And as you may know, Digg allows us to <a href="http://digg.com/tools/integrate">integrate the &#8220;Digg This&#8221; button</a> into virtually any web page. Yes, this naturally includes my WordPress posts. Yay!</p>
<p>The integration is dead simple. To display a &#8220;Digg This&#8221; button in my post, I only need to place this code somewhere:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
    digg_url = &quot;My post's permalink&quot;;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://digg.com/tools/diggthis.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<p>Or, in case I want to customize the button a bit:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
    digg_url     = &quot;My post's permalink&quot;;
&nbsp;
    digg_title   = &quot;My post's title&quot;;
&nbsp;
    // The background color *around* the button
    digg_bgcolor = &quot;#ff9900&quot;;
&nbsp;
    // The &quot;skin&quot; of the button. &quot;Compact&quot; means that tiny icon.
    digg_skin    = &quot;compact&quot;;
&nbsp;
    // Clicking on the button will open the Digg link in a new tab/window
    digg_window  = &quot;new&quot;;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://digg.com/tools/diggthis.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<p>Can&#8217;t be simpler right? But I&#8217;m not satisfied with this&#8230; Firstly, I&#8217;m lazy and it bores me to death to copy and paste the scripts above into <em>every</em> new post. Second, if I change the permalink of my post, I&#8217;ll have to edit it to update the URL or the button will be in trouble. And third, it will be hell if someday I decide to change the layout of the buttons in <em>all</em> posts, or if Digg changes something in its integration code.</p>
<p>So I was thinking about a &#8220;Digg This&#8221; plugin that can automate everything for me. And it beat me to see that there&#8217;s none, or at least I couldn&#8217;t find any.<span id="more-112"></span></p>
<p>Then I decided to write one myself. By the way, this is my first attempt to write a plugin for WordPress &#8211; I&#8217;ve hacked plenty though, like WP-Syntax, All In One SEO Pack etc. It took me one day and lot of headache, but finally I managed to get my Digg This O&#8217; Mine working smoothly, and I&#8217;m using it right now.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/*
Plugin Name: Digg This O' Mine
Plugin URI: http://www.phoenixheart.net/2008/10/digg-this-o-mine
Description: Place a &quot;Digg This&quot; button at the end of your posts, pages, or anywhere at your choice.
Version: 1.0
Author: Phoenixheart
Author URI: http://www.phoenixheart.net
*/</span></pre></td></tr></table></div>

<p>It can be downloaded <a href="http://wordpress.org/extend/plugins/digg-this-o-mine">here</a>. Just like any other plugin, just unzip and upload it into your wp-content/plugins folder, activate it through the &#8220;Plugins&#8221; panel, and it will work out of the box. If you want more power, head to Settings-&gt;Digg This O&#8217; Mine to configure some options:</p>
<p><img src="/wp-content/uploads/2008/10/dtom_options.gif" alt="Digg This O' Mine Options" width="474" height="379" /></p>
<p>(The numbers and shading effect are added using Photoshop).</p>
<p>The (background) color picker was implemented using the fantastic <a href="http://acko.net/dev/farbtastic">Farbtastic</a> <a href="http://www.jquery.com">jQuery</a> plugin.</p>
<p>Feel free to download, use, and maybe extend this plugin, as it&#8217;s licensed under <a href="http://www.gnu.org/copyleft/gpl.html">GPL</a>. Comments and bug reports are always welcomed!</p>
<p><em>As the final line:</em> <span style="text-decoration: line-through;">I attempted to <a href="http://wordpress.org/extend/plugins/add/">add this plugin</a> into WordPress repository, but somehow I&#8217;ve not received any email from them. I would appreciate a lot if someone could guide me through the plugin adding process, as I&#8217;m now totally stuck.</span> I&#8217;ve managed to add it to WordPress. Now it&#8217;s an &#8220;official&#8221; plugin <a href="http://wordpress.org/extend/plugins/digg-this-o-mine">there</a>.</p>
<img style='display:none' id="post-112-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.phoenixheart.net/2008/10/digg-this-o-mine/',title:'Digg This O&#8217; Mine',tweet:'Just like most of us here, I love WordPress, and I like Digg. And as you may know, Digg allows us to',description:'Just like most of us here, I love WordPress, and I like Digg. And as you may know, Digg allows us to'})"><script type='text/javascript'>document.getElementById("post-112-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.phoenixheart.net/2008/10/digg-this-o-mine/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 2/10 queries in 0.010 seconds using disk
Object Caching 237/246 objects using disk

Served from: www.phoenixheart.net @ 2012-02-04 02:30:20 -->
