<?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 This O&#8217; Mine</title>
	<atom:link href="http://www.phoenixheart.net/tag/digg-this-o-mine/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>Trouble in my WordPress plugin&#8217;s readme.txt file</title>
		<link>http://www.phoenixheart.net/2008/11/trouble-in-my-wordpress-plugins-readmetxt-file/</link>
		<comments>http://www.phoenixheart.net/2008/11/trouble-in-my-wordpress-plugins-readmetxt-file/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 17:14:58 +0000</pubDate>
		<dc:creator>An</dc:creator>
				<category><![CDATA[Blahblahblah]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Digg This O' Mine]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.phoenixheart.net/?p=125</guid>
		<description><![CDATA[As you may know, I&#8217;ve just written my first WordPress plugin some days ago. You guess it, one of the most important steps to popularize a software is preparing a good readme file. With WordPress, a readme file has more than that &#8211; WordPress will parse the text in a standardized readme.txt into data to [...]]]></description>
			<content:encoded><![CDATA[<p>As you may know, I&#8217;ve just written my first WordPress plugin some days ago. You guess it, one of the most important steps to popularize a software is preparing a good readme file. With WordPress, a readme file has more than that &#8211; WordPress will parse the text in a standardized readme.txt into data to display on the plugin directory page.</p>
<p>Following the instruction, I placed a readme.txt file inside my /trunk/ repository folder. It followed strictly the standard, I can swear this. Here is some texts taken from my readme file:</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
16
17
</pre></td><td class="code"><pre class="htmlstrict4" style="font-family:monospace;">&nbsp;
== Description ==
&quot;Digg This O' Mine&quot; is a plugin that allows you to place the famous [&quot;Digg This&quot; button](http://digg.com/tools/integrate) at the end of your posts, pages, or anywhere at your choice. While it will run out of the box, it has several options that can be used to custom the button to fit your needs [...]
&nbsp;
== Installation ==
1. Download and extract the plugin
1. Upload the entire `digg-this-o-mine` folder into to the `/wp-content/plugins/` directory
[...]
&nbsp;
== Frequently Asked Questions ==
= I want to change the background color **inside** the button. How? =
As Digg specifies [here](http://digg.com/tools/integrate), only the background *around* the button is customizable. So until the folks at Digg change their mind, I don't see how [...]
&nbsp;
== Screenshots ==
1. The options panel
2. The plugin in action
&nbsp;</pre></td></tr></table></div>

<p>With this, I expected my plugin repository to show at least 4 tabs: Description, Installation, FAQ, and Screenshots. So it came to me as a sudden to see no tabs shown &#8211; except for the default Description taken from the plugin itself, and the &#8220;Stats&#8221; panel. What the heck? <span id="more-125"></span></p>
<p>It was really an annoyance. I googled around and tried many solutions: create a new tags folder and place another readme.txt file there, change readme.txt to README.txt, even copy the content of another working plugin. All was in vain &#8211; the stupid tabs just wouldn&#8217;t show up.</p>
<p>Well, not until today, when I opened two readme.txt files in Notepad++ at the same time. I noticed that the working one (taken from another good plugin out there) was in UNIX format and encoded in ANSI, when my bad boy was in Windows, UCS2-Big Endian. If was likely the ONLY difference! So I decided to convert my file into UNIX and ANSI (well, I doubt the latter is relevant now, but hell with it). And voilà: the tabs showed themselves up, just like magic!</p>
<p><img class="shot" src="/wp-content/uploads/2008/11/tabs.gif" alt="Digg This O' Mine" /></p>
<p>This turns out to be very simple in the end, but trust me, it was truly a headache. So if you&#8217;re encountering something like this, hope this post helps!</p>
<img style='display:none' id="post-125-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.phoenixheart.net/2008/11/trouble-in-my-wordpress-plugins-readmetxt-file/',title:'Trouble in my WordPress plugin&#8217;s readme.txt file',tweet:'As you may know, I&#8217;ve just written my first WordPress plugin some days ago. You guess it, one ',description:'As you may know, I&#8217;ve just written my first WordPress plugin some days ago. You guess it, one '})"><script type='text/javascript'>document.getElementById("post-125-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.phoenixheart.net/2008/11/trouble-in-my-wordpress-plugins-readmetxt-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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/14 queries in 0.010 seconds using disk
Object Caching 291/309 objects using disk

Served from: www.phoenixheart.net @ 2012-02-04 02:58:40 -->
