<?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"
	>

<channel>
	<title>unitstep.net &#187; plugins</title>
	<atom:link href="http://unitstep.net/blog/category/plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://unitstep.net</link>
	<description>the home of peter chng</description>
	<pubDate>Sun, 30 Nov 2008 23:12:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>Share This in jQuery</title>
		<link>http://unitstep.net/blog/2007/08/01/share-this-in-jquery/</link>
		<comments>http://unitstep.net/blog/2007/08/01/share-this-in-jquery/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 04:35:29 +0000</pubDate>
		<dc:creator>Peter Chng</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[jQuery]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://unitstep.net/blog/2007/08/01/share-this-in-jquery/</guid>
		<description><![CDATA[
Share This is an excellent WordPress plugin written by Alex King.  The plugin provides a neat and customizable pop-up menu for allowing readers to easily share one of your blog posts using many of the social bookmarking or social websites out there.  It&#8217;s an intelligent solution to the problem of having too many [...]]]></description>
			<content:encoded><![CDATA[<p class="image align-right"><a href="http://alexking.org" title="Share This icon Copyright Alex King"><img src='http://unitstep.net/wordpress/wp-content/uploads/2007/08/share-icon-128x128.png' alt='Share This icon Copyright Alex King (http://alexking.org)' /></a></p>
<p><a href="http://alexking.org/projects/wordpress">Share This</a> is an excellent WordPress plugin written by <a href="http://alexking.org/">Alex King</a>.  The plugin provides a neat and customizable pop-up menu for allowing readers to easily share one of your blog posts using many of the social bookmarking or social websites out there.  It&#8217;s an intelligent solution to the problem of having <a href="http://www.pronetadvertising.com/articles/why-too-many-little-icons-can-easily-distract-your-visitors.html">too many sharing icons</a> that may potentially distract or irritate readers.</p>
<p>Since launching, Share This has become <a href="http://alexking.org/blog/2006/12/27/share-this-catching-on">very popular</a>, with many blogs using it.  I recently began using the plugin for a site of mine, and was impressed by its usefulness. (And the <a href="http://alexking.org/blog/2006/12/11/shareiconscom">icon project it launched</a>)  However, I had also decided to use the <a href="http://jquery.com">jQuery</a> JavaScript framework (and its <a href="http://docs.jquery.com/Plugins">plugins</a>) for this site, and since Share This uses <a href="http://www.prototypejs.org/">Prototype</a> for its JavaScript functionality, there were some conflicts.  </p>
<p>So, I decided to do a minor re-write of Share This, altering only the JavaScript portion to use jQuery instead of Prototype.</p>
<h3>jQuery?</h3>
<p>I wanted to stick with jQuery for a variety of reasons, but mainly because I have more experience with it than with Prototype.  I won&#8217;t get into an argument over which of the frameworks is better, and will instead stick to the &#8220;Unto each his own&#8221; line of thinking.</p>
<p>While jQuery generally works well with existing JavaScript, as it doesn&#8217;t alter the global namespace, and additionally has a &#8220;no-conflict&#8221; mode, some of the plugins that I wanted to use (specifically <a href="http://jquery.com/demo/thickbox/">Thickbox</a>) weren&#8217;t written for the no-conflict mode.  The issue stems from the use of the &#8220;<code>$</code>&#8221; variable name.  In jQuery, it&#8217;s a shortcut for the be-all-end-all function <code>jQuery()</code>, while in Prototype, it&#8217;s a shortcut for <code>document.getElementById()</code>.</p>
<h3>Share This in jQuery</h3>
<p>Before I offer the download, I want to make it clear that this was a <strong>very minor</strong> change - no functionality was added or removed, as just the JavaScript portion was re-written (quickly) to support jQuery instead of Prototype.  Again, it&#8217;s not better than the original <a href="http://alexking.org/projects/wordpress">Share This</a>, only different.  Furthermore, 100% full credit still belongs to <a href="http://alexking.org/">Alex King</a>, as this is barely a derivative work.</p>
<p>In order to use this version, you will need the <a href="http://docs.jquery.com/Downloading_jQuery">jQuery framework</a> as well as the <a href="http://jquery.com/plugins/project/dimensions">Dimensions plugin</a>.  Their cumulative compressed sizes are comparable to the compressed size of the Prototype framework.  You will need to link them to your site in your WordPress theme&#8217;s <code>header.php</code> file by adding lines like these, preferably between the <code>head</code> tags.</p>
<pre><code>&lt;script type="text/javascript" src="/path-to-jquery/jquery.pack.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="/path-to-jquery-dimensions/jquery.dimensions.pack.js"&gt;&lt;/script&gt;</code></pre>
<p>You can then replace the original <code>share-this.php</code> with the jQuery version in the <a href='/wordpress/wp-content/uploads/2007/08/share-this-14-jquery.zip' title='Share This in jQuery'>zipped download</a>.  (You may want to backup the original file first, as always)</p>
<h3>Download</h3>
<ul>
<li><a href='/wordpress/wp-content/uploads/2007/08/share-this-14-jquery.zip' title='Share This in jQuery'><img src="/images/icons/silk/folder_go.png" alt="Download" />Share This 1.4 for jQuery</a></li>
</ul>
<h3>Credit and Misc.</h3>
<p>As mentioned before, all credit still belongs to Alex King for writing Share This in the first place.  I haven&#8217;t really changed anything, just adapted it to work with jQuery and thought I&#8217;d like to make it available for everyone to use.  It still works exactly as before, so configuring options and so forth isn&#8217;t any different.</p>
<p>What I changed was just the part of the plugin that outputs the JavaScript necessary to make Share This work.  It&#8217;s just been changed to use jQuery instead of Prototype.  I also commented out the parts of the plugin that link the Prototype framework (from WordPress) into the header.  As mentioned before, you&#8217;ll have to link in the requisite jQuery script files yourself.  Since it looks like <a href="http://trac.wordpress.org/ticket/3824">WordPress will be moving over to jQuery</a>, at least for the admin pages, this might be something worthwhile.</p>
<p>The JavaScript has been written in jQuery&#8217;s compatibility mode (using <code>jQuery()</code> instead of <code>$</code>), so you can continue to use Prototype on your site if you wish.  As mentioned, this was a very quick rewrite, so not much has changed. </p>
<p>Some people have pointed out that Prototype is a lot larger than jQuery in terms of file size.  This may be somewhat true, but when Prototype v 1.5.0 is <a href="http://dean.edwards.name/packer/">packed</a>, it comes in at only around 27 KB.  jQuery packed is about 21 KB, but with the Dimensions plugin needed to make Share This work with jQuery adds another 4-5 KB, bringing the total size close to that of Prototype.  So why use jQuery? Again, it&#8217;s just because I&#8217;m more familiar with it and like how jQuery expressions are formed, particularly with the ability to <a href="http://docs.jquery.com/How_jQuery_Works#Chainability_.28The_Magic_of_jQuery.29">chain function calls</a>.</p>
<h3>Update</h3>
<p><a href="http://www.thunderguy.com/semicolon/">Bennett McElwee</a>, author of many nice WordPress plugins (including some that I use on my own site), has <a href="http://www.thunderguy.com/semicolon/2007/07/30/share-this-jquery-a-wordpress-plugin/">already released a version of Share This in jQuery</a>, seemingly two days before I published this post - what a coincidence!  His appears to be more polished, though, as it doesn&#8217;t use the extra Dimensions plugin and also includes some nice effects.  Definitely give it a try.</p>
<hr/>Copyright &copy; 2008 <strong><a href="http://unitstep.net">unitstep.net</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 <strong><a href="mailto:webmaster@unitstep.net">webmaster@unitstep.net</a></strong> for more information.<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://unitstep.net/blog/2007/08/01/share-this-in-jquery/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Looking for a good WordPress tagging plugin</title>
		<link>http://unitstep.net/blog/2006/06/18/looking-for-a-good-wordpress-tagging-plugin/</link>
		<comments>http://unitstep.net/blog/2006/06/18/looking-for-a-good-wordpress-tagging-plugin/#comments</comments>
		<pubDate>Sun, 18 Jun 2006 20:36:05 +0000</pubDate>
		<dc:creator>Peter Chng</dc:creator>
		
		<category><![CDATA[Colophon]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[tags]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.unitstep.net/blog/2006/06/18/looking-for-a-good-wordpress-tagging-plugin/</guid>
		<description><![CDATA[
Since tagging is all the rage nowadays, I&#8217;ve been looking for a good plugin that adds this functionality to WordPress.  Tagging is a nice, quick way to add useful metadata to an entry or post, and besides this basic feature, it allows for other useful features as well.  For example, for an entry [...]]]></description>
			<content:encoded><![CDATA[<p>
Since <a href="http://en.wikipedia.org/wiki/Tags">tagging</a> is all the rage nowadays, I&#8217;ve been looking for a good plugin that adds this functionality to WordPress.  Tagging is a nice, quick way to add useful metadata to an entry or post, and besides this basic feature, it allows for other useful features as well.  For example, for an entry I could display a list of similar or related entries, based on common tags.  It would also make entries integrated better with <a href="http://www.technorati.com">Technorati</a>.  WordPress doesn&#8217;t currently include a tagging function, instead relying on its old categorization system, but I assume that tags are an upcoming feature, slated to either replace or complement categories.  But there are just a few snags preventing me from fully adopting a tagging system, despite the benefits it would offer.
</p>
<p>
Firstly, there are just <a href="http://wp-plugins.net/">so many tagging plugins</a> out there, that I have a tough time deciding which ones are good, or even which ones have the features I want.  (Or even <em>what</em> features I want!) Reading up on other people&#8217;s personal experiences, while useful, is also very time-consuming, but I&#8217;ve run into a few potential plugins.
</p>
<p>
Firstly, <a href="http://www.neato.co.nz/ultimate-tag-warrior/">Ultimate Tag Warrior</a> seems to be a feature-rich plugin that should have everything I&#8217;d ever need.  Besides tagging support, it also offers support for weighted tag clouds, similar to what you have at <a href="http://del.icio.us">del.icio.us</a>.   But, since it keeps tags separate from categories (not a bad thing), it uses its own table for tag storage, which could create problems when upgrading.  But this is a minor problem, as I&#8217;m sure a writing a script for the upgrade conversion would be trivial.  But, I&#8217;ve also heard some <a href="http://www.darcynorman.net/2006/01/15/dumping-ultimate-tag-warrior-plugin">negativity</a> about it, and from playing around with it for a bit, it seems to have almost <em>too</em> many features for me.
</p>
<p>
<a href="http://sw-guide.de/wordpress/category-tagging-plugin/">This category-tagging</a> plugin also looks decent.  In contrast to Ultimate Tag Warrior, it just uses the WordPress categories as tags, and thus shouldn&#8217;t have to rely on any other tables besides WordPress&#8217; own.  This plugin thus probably does the least modification, and this is good since less is often more.  An additional benefit is that no more work would be required in order to display tags, since categories would become tags.  It also includes nice functions such as a weighted tag cloud.  Yet another plugin, <a href="http://www.agkamai.org/cat2tag/">Cat2Tag</a> also seems to provide similar functionality to this one.  These plugins would also probably be the best option in considering future versions of WordPress - I believe it&#8217;s likely that categories will be supplanted by tags in the next major version.
</p>
<p>
But maybe the main reason for my apprehension is my unnatural like of the structure of categories.  You see, tags have become such a <a href="http://en.wikipedia.org/wiki/Folksonomy">big thing</a> because they are easy to use, and natural to most everyone.  But for me, it seems to be the opposite.  Despite not being able to deny the usefulness of tags, I would still like to have categories alongside them.  For me, tags can be <em>too</em> open-ended, but perhaps this is just in the sematics of how tags are used - I suppose tags can be just as structured as categories.   Perhaps a good compromise would be categories for the main subject and tagging for keywords; this would provide a good structure and still have the good metadata of tags.  This would also eliminate the need for a nightmare hierarchy of categories and sub-categories.  (Ultimate Tag Warrior could provide this functionality.)
</p>
<p>
But, maybe I&#8217;ll just have to learn to deal with a tags-only system if and when WordPress switches over to tags.  In the meantime, I&#8217;ll probably be fence-sitting, undecided on what to do, and inevitably, stuck without tags.
</p>
<h3>Update</h3>
<p>I&#8217;ve decided to go with the simple, but effective <a href="http://sw-guide.de/wordpress/category-tagging-plugin/">Category Tagging Plugin</a> for WordPress, since it uses WordPress&#8217; own categories as &#8220;tags&#8221;, and so integrates nicely while at the same time providing much-needed &#8220;Related Posts&#8221; and &#8220;Tag Cloud&#8221; functions.  The fact that it doesn&#8217;t create another table for the tags makes it easy to switch out from using this plugin, should the need arise.  Stay tuned for more details.</p>
<hr/>Copyright &copy; 2008 <strong><a href="http://unitstep.net">unitstep.net</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 <strong><a href="mailto:webmaster@unitstep.net">webmaster@unitstep.net</a></strong> for more information.<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://unitstep.net/blog/2006/06/18/looking-for-a-good-wordpress-tagging-plugin/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
