<?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>joey nelson &#187; wordpress</title>
	<atom:link href="http://jnjnjn.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://jnjnjn.com</link>
	<description></description>
	<lastBuildDate>Mon, 19 Dec 2011 14:49:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress plugin: x-y of z</title>
		<link>http://jnjnjn.com/37/wordpress-plugin-x-y-of-z/</link>
		<comments>http://jnjnjn.com/37/wordpress-plugin-x-y-of-z/#comments</comments>
		<pubDate>Wed, 02 May 2007 20:32:34 +0000</pubDate>
		<dc:creator>joey</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://jnjnjn.com/37/wordpress-plugin-x-y-of-z/</guid>
		<description><![CDATA[You can find it on the plugins download page now.  This basically just gives you a function that will print out a snippet of text like &#8220;Viewing 1-10 of 423 posts&#8221; based on the contents of the page.  Hopefully this is marginally useful to someone out there.
]]></description>
			<content:encoded><![CDATA[<p>You can find it on the <a href="/wordpress-plugins">plugins download page</a> now.  This basically just gives you a function that will print out a snippet of text like &#8220;Viewing 1-10 of 423 posts&#8221; based on the contents of the page.  Hopefully this is marginally useful to someone out there.</p>
]]></content:encoded>
			<wfw:commentRss>http://jnjnjn.com/37/wordpress-plugin-x-y-of-z/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Recalculate WordPress comment count</title>
		<link>http://jnjnjn.com/22/recalculate-wordpress-comment-count/</link>
		<comments>http://jnjnjn.com/22/recalculate-wordpress-comment-count/#comments</comments>
		<pubDate>Mon, 25 Sep 2006 02:33:50 +0000</pubDate>
		<dc:creator>joey</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bloop.org/joey/2006/09/24/recalculate-wordpress-comment-count/</guid>
		<description><![CDATA[So I&#8217;ve been doing some work on the long-neglected Fontleech and today found myself removing over .25 million spam comments.  That sounds herculean, but it was actually pretty easy.
The WordPress frontend pulls the comment count for each post from the &#8216;comment_count&#8217; field in the wp_posts table.  obviously that doesn&#8217;t get updated when you [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been doing some work on the long-neglected <a href="http://fontleech.com">Fontleech</a> and today found myself removing over .25 million spam comments.  That sounds herculean, but it was actually pretty easy.</p>
<p>The WordPress frontend pulls the comment count for each post from the &#8216;comment_count&#8217; field in the wp_posts table.  obviously that doesn&#8217;t get updated when you manually delete spam directly from the database, so here&#8217;s a simple ruby script that will update that for you (just define your db variables):</p>

<div class="wp_syntax"><div class="code"><pre class="ruby"><span style="color: #808080; font-style: italic;">#!/usr/bin/ruby</span>
<span style="color: #888888;">require</span> <span style="color: #888888; background-color: #fbf6c5;">'mysql'</span>
&nbsp;
db = Mysql.<span style="color: #F8320D;">real_connect</span><span style="color: #bbbbbb;">&#40;</span>host, user, pass, dbname<span style="color: #bbbbbb;">&#41;</span>
ids = db.<span style="color: #F8320D;">query</span><span style="color: #bbbbbb;">&#40;</span><span style="color: #888888; background-color: #fbf6c5;">&quot;SELECT `ID` FROM `wp_posts` WHERE 1&quot;</span><span style="color: #bbbbbb;">&#41;</span>
&nbsp;
ids.<span style="color: #F8320D;">each_hash</span> <span style="color: #888888">do</span> |post|
  id = post<span style="color: #bbbbbb;">&#91;</span><span style="color: #888888; background-color: #fbf6c5;">'ID'</span><span style="color: #bbbbbb;">&#93;</span>
  num = <span style="color: #F8320D;">0</span>
  comments = db.<span style="color: #F8320D;">query</span><span style="color: #bbbbbb;">&#40;</span><span style="color: #888888; background-color: #fbf6c5;">&quot;SELECT COUNT(1) FROM `wp_comments` WHERE `comment_post_ID`='#{id}' AND `comment_approved`='1';&quot;</span><span style="color: #bbbbbb;">&#41;</span>
  comments.<span style="color: #F8320D;">each</span> <span style="color: #bbbbbb;">&#123;</span>|x| num = x<span style="color: #bbbbbb;">&#91;</span><span style="color: #F8320D;">0</span><span style="color: #bbbbbb;">&#93;</span><span style="color: #bbbbbb;">&#125;</span>
  up = db.<span style="color: #F8320D;">query</span><span style="color: #bbbbbb;">&#40;</span><span style="color: #888888; background-color: #fbf6c5;">&quot;UPDATE `wp_posts` SET `comment_count`='#{num}' WHERE `ID`='#{id}';&quot;</span><span style="color: #bbbbbb;">&#41;</span>
<span style="color: #888888">end</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jnjnjn.com/22/recalculate-wordpress-comment-count/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Category Sort plugin</title>
		<link>http://jnjnjn.com/8/category-sort-plugin/</link>
		<comments>http://jnjnjn.com/8/category-sort-plugin/#comments</comments>
		<pubDate>Thu, 08 Jun 2006 00:01:00 +0000</pubDate>
		<dc:creator>joey</dc:creator>
				<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[If you&#8217;re a blogger with OCD you might be interested in my new Category Sort plugin.  It simply alphabetizes the category list that gets printed out when the the_category() function is called.  Wordpress sorts this list according to category ID, which has always seemed completely random and bugged the hell out of me. [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a blogger with OCD you might be interested in my new Category Sort plugin.  It simply alphabetizes the category list that gets printed out when the <code>the_category()</code> function is called.  Wordpress sorts this list according to category ID, which has always seemed completely random and bugged the hell out of me.  Since I&#8217;m using this plugin, the categories for this post are &#8220;plugins, wordpress&#8221; instead of &#8220;wordpress, plugins&#8221;.  This is not that exciting, but it looks nicer.  Download it at <a href="/wordpress-plugins/">the plugin page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jnjnjn.com/8/category-sort-plugin/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Snap blog launches</title>
		<link>http://jnjnjn.com/5/snap-blog-launches/</link>
		<comments>http://jnjnjn.com/5/snap-blog-launches/#comments</comments>
		<pubDate>Thu, 18 May 2006 23:00:00 +0000</pubDate>
		<dc:creator>joey</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The Snap blog has launched and pretty much all hell has broken loose.  Anyone who signs up can post to the blog with their &#8220;launch idea&#8221; and it will automatically get posted on the front page.  Then other users can vote on the best ideas, and the winner gets $5,000.  How could [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://blog.snap.com">Snap blog</a> has launched and pretty much all hell has broken loose.  Anyone who signs up can post to the blog with their &#8220;launch idea&#8221; and it will automatically get posted on the front page.  Then other users can vote on the best ideas, and the winner gets $5,000.  How could THAT go wrong?</p>
<p>I wrote several plugins for the blog, and it seems like the company is excited about releasing them to the public. This is pretty much the first significant stuff I&#8217;ve done with PHP and I really got to dig around in the guts of Wordpress to add some cool features:</p>
<p><strong>Simple Vote</strong><br />
Adds a Digg-style vote box to posts from a certain category.  Only registered users can vote.</p>
<p><strong>Simple Post</strong><br />
Allows <em>any</em> user to post to the blog from a watered down interface, regardless of their privileges.  Crazy, right?  This way we can let users post to the blog without giving them access to anything in the admin interface.</p>
<p><strong>Easy Author Info</strong><br />
Easily grab any author&#8217;s information.  For example, you could print out any author&#8217;s &#8220;About me&#8221; text like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #888888;">echo</span> get_easyauthor_attr<span style="color: #bbbbbb;">&#40;</span><span style="color: #F8320D;">$author_id</span>, <span style="color: #888888; background-color: #fbf6c5;">&quot;description&quot;</span><span style="color: #bbbbbb;">&#41;</span>;</pre></div></div>

<p>These scripts need to be cleaned up and made more configurable before they can be released, but hopefully that should be pretty soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://jnjnjn.com/5/snap-blog-launches/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>You don&#8217;t care</title>
		<link>http://jnjnjn.com/1/you-dont-care/</link>
		<comments>http://jnjnjn.com/1/you-dont-care/#comments</comments>
		<pubDate>Tue, 11 Apr 2006 23:09:21 +0000</pubDate>
		<dc:creator>joey</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bloop.org/joey/2006/06/21/well-that-sucks/</guid>
		<description><![CDATA[But this is mostly going to be a place to host Wordpress plugins.  And maybe talk about computer stuff.  And maybe post pictures of my dog.
]]></description>
			<content:encoded><![CDATA[<p>But this is mostly going to be a place to host Wordpress plugins.  And maybe talk about computer stuff.  And maybe post pictures of my dog.</p>
]]></content:encoded>
			<wfw:commentRss>http://jnjnjn.com/1/you-dont-care/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

