<?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>RandomStringOfWords &#187; Plugins</title>
	<atom:link href="http://randomstringofwords.com/category/dev-diary/rsow-com/wordpress/plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://randomstringofwords.com</link>
	<description>RandomStringOfWords.com &#124;&#124; RSoW.com</description>
	<lastBuildDate>Tue, 03 Jan 2012 19:38:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Plugin: Desired Functionality</title>
		<link>http://randomstringofwords.com/plugin-desired-functionality-v01/</link>
		<comments>http://randomstringofwords.com/plugin-desired-functionality-v01/#comments</comments>
		<pubDate>Wed, 20 Dec 2006 22:47:12 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://info.rsow.com/?p=18</guid>
		<description><![CDATA[NOTE: This plug-in is dead with the introduction of WP2.3+ .. The desired functionality plugin is a collection of .. well .. desired functionality that wordpress for whatever reason either is lacking completely, or in my opinion does poorly. Much of it will be things that I wanted to fix in the wordpress core, but [...]]]></description>
			<content:encoded><![CDATA[<p><strong>NOTE: This plug-in is dead with the introduction of WP2.3+ .. </strong></p>
<p>The desired functionality plugin is a collection of .. well .. desired functionality that wordpress for whatever reason either is lacking completely, or in my opinion does poorly.  Much of it will be things that I wanted to fix in the wordpress core, but I don&#8217;t want to hassle with the source repository (as it&#8217;s a mess and things don&#8217;t seem to get done in a timely fashion).</p>
<p><span id="more-18"></span></p>
<p>Note;  If you&#8217;re using any of my Theme&#8217;s you will need this plug-in.  As of this writing I have only tested this plug-in on wordpress 2.05.  It should work on all though, please let me know if it doesn&#8217;t.</p>
<p><strong>Latest Version</strong>: v0.4 for WordPress 2.05+<br />
<strong>Download Plugin</strong>: Link Removed.</p>
<p><strong>Instructions</strong>:</p>
<p>If something in wordpress doesn&#8217;t work the way you think it should, or you wish it had better functionality, LET ME KNOW! Send me an email and I&#8217;ll add it to the desired functionality plugin.</p>
<p>You will note that ALL functions in the desired functionality plugin are prefaced with &#8220;PAL_&#8221;;   This is intentional and is intended to be a way to keep function names from colliding, think of it as the poormans name space..  Also note that while all functions are meant to either augment or replace the wordpress equivelant, it may not be a one for one transition, and arguments may change.  In other words, read the instructions below.</p>
<p><em>function </em><strong>pal_list_categories</strong></p>
<blockquote><p>The  pal_list_categories function is meant to ultimately replace the wp_list_cats and list_cats functions that come with wordpress.  Some functionality isn&#8217;t present yet, but the important stuff is as well as a couple additional features.</p>
<p>Arguments:</p>
<ul>
<li>start &#8211; User may start anywhere in their category &#8220;tree&#8221; be designating a single point as the TOP and navigate down from there. Defaults to 0</li>
<li>exclude &#8211; A comma delimited exclusion list, excludes at the db level, defaults to nothing.</li>
<li>orderby &#8211; User may order by ID or NAME of the category at the db level, defaults to ID</li>
<li>orderdir &#8211; User may order ascending or descending, defaults to asc</li>
<li>depth &#8211; How many parent child levels do you want to display? 0 means only display top most level starting at start and no children. Default is 1. (so start=0&amp;depth=1 means show top parents, and their first children)</li>
<li>show_count &#8211; A user may choose to display in the category link the number of posts, default is true</li>
<li>show_count_zero &#8211; A user may choose to not display those counts that would be (0), default is false (hide (0))</li>
<li>use_desc_for_title &#8211; Show the description as the title of the link (mouse hover), false by default</li>
<li>hide_empty &#8211; hide categories that are empty at the database level. Note: empty parents that have a child with content will be hidden, so be careful with this one.</li>
<li>parent_style &#8211; Defines the style name of the immediate parent of the currently selected category, defaults to &#8220;parent-cat&#8221;</li>
<li>current_style &#8211; Defines the style name of the currently open category, defaults to &#8220;current-cat&#8221;</li>
<li>children_style &#8211; Defines the style name of the UL block for children, defaults to &#8220;children&#8221;</li>
<li>show_count_style &#8211; Defines the style name of the count span when enabled, defaults to &#8220;cat-count&#8221;</li>
</ul>
<p>Example Usage:</p>
<p>The side bar of this site uses this;</p>
<p><em>pal_list_categories(&#8216;depth=1&amp;show_count=1&#8242;); </em><br />
which says show be the entire list of categories starting at zero (start defaults to zero), and show me just their immediate children (depth = 1), and display the count after the link in the menu item (show_count = 1), but hide those that have a count of zero (show_count_zero defaults to false).</p>
<p>The Archives page of this site uses this;</p>
<p><em>pal_list_categories(&#8216;start=&#8217;.$_REQUEST['cat'].<br />
&#8216;&amp;depth=0&amp;show_count=1&#8242;);</em><br />
which says to show all categories starting at the level of whatever category we are viewing but none of their children.</p></blockquote>
<p><em>function</em> <strong>pal_getCategoryByName</strong></p>
<blockquote>
<p align="left">As of this writing, the wordpress &#8220;get_the_category&#8221; function is completely broken.  It will return very very wrong results based on the order the children are in, in the database.  I needed a way to get a categories ID and this was a quick solution.</p>
<p align="left">&nbsp;</p>
</blockquote>
<p><strong>In the works ~ Desired Functionality</strong>:</p>
<ul>
<li><em>IP Denial</em> &#8211; I want to create an IP denial system that will completely deny the entire website OR individual parts of it (like comments) based on IP addresses.</li>
<li><em>Comment Signal or Noise</em> &#8211; I&#8217;d like to create a system where by users can mark posts and comments as either signal or noise.  You would then be able to search by signal and noise levels.  It will also hide those posts and comments from users that have a noise level at a certain level.  So if 10 others have marked someones comment as noise, then that comment will be hidden from future users &#8211; if it gets 20 or so, you can mark it for auto-pruning..etc..</li>
</ul>
<p><strong>Revisions</strong>:</p>
<p>v0.4 ~ Added a function</p>
<ul>
<li>Added getCategoryByName</li>
</ul>
<p>v0.3 ~ Additional Features</p>
<ul>
<li>Added Parent_Style, Current_Style, Children_Style and Show_Count_Style</li>
</ul>
<p>v0.2 ~ Bug Fixes</p>
<ul>
<li>Caught a couple errors that would be cause by attempting to parse an array that wasn&#8217;t</li>
<li>And the incorrect category wont be highlighted when you&#8217;re viewing a page</li>
<li>Exclude list is now sent to children as well</li>
</ul>
<p>v0.1 ~ Initial release</p>
<ul>
<li>Creation of &#8220;pal_list_categories&#8221; and associated private functions to facilitate its function.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://randomstringofwords.com/plugin-desired-functionality-v01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

