<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Simple Threading With PHP and MySQL</title>
	<atom:link href="http://www.brainhandles.com/2007/03/31/simple-threading-with-php-and-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brainhandles.com/2007/03/31/simple-threading-with-php-and-mysql/</link>
	<description>Whatever's tugging at my brain handles</description>
	<pubDate>Fri, 22 Aug 2008 03:17:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: voxunius</title>
		<link>http://www.brainhandles.com/2007/03/31/simple-threading-with-php-and-mysql/#comment-6624</link>
		<dc:creator>voxunius</dc:creator>
		<pubDate>Sat, 19 Apr 2008 12:58:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainhandles.com/2007/03/31/simple-threading-with-php-and-mysql/#comment-6624</guid>
		<description>Do you have a working example of this code? I agree if the lineage string worked it would be pure genius, but I have yet to see the concept work practically. 

For starters, if you use the zero fill option and sort via ASC, -0001-0004-0008 is a smaller number than -0001-0004 and therefore posts *above* its parent. One would think that sorting DESC would fix this problem, it does, but it doesn't fix what happens regardless of zerofill or not... the lineage sort breaks at at the 10's place value. 1-2 is greater than 1-11 and all 10+ digit posts will list the same way a directory lists 
1.file --&#62; .10.file --&#62; 2.file first, second and last respectively.

Urgh... as far as the query goes, it is short and sweet which makes the lineage string too good to be true. I would love to see this concept in action, and would appreciate it if you'd point me to where there is a working example.

I've tried it and it simply doesn't work for me, but I'm hoping this doesn't mean that it doesn't work at all. Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Do you have a working example of this code? I agree if the lineage string worked it would be pure genius, but I have yet to see the concept work practically. </p>
<p>For starters, if you use the zero fill option and sort via ASC, -0001-0004-0008 is a smaller number than -0001-0004 and therefore posts *above* its parent. One would think that sorting DESC would fix this problem, it does, but it doesn't fix what happens regardless of zerofill or not... the lineage sort breaks at at the 10's place value. 1-2 is greater than 1-11 and all 10+ digit posts will list the same way a directory lists<br />
1.file --&gt; .10.file --&gt; 2.file first, second and last respectively.</p>
<p>Urgh... as far as the query goes, it is short and sweet which makes the lineage string too good to be true. I would love to see this concept in action, and would appreciate it if you'd point me to where there is a working example.</p>
<p>I've tried it and it simply doesn't work for me, but I'm hoping this doesn't mean that it doesn't work at all. Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith P. Graham</title>
		<link>http://www.brainhandles.com/2007/03/31/simple-threading-with-php-and-mysql/#comment-131</link>
		<dc:creator>Keith P. Graham</dc:creator>
		<pubDate>Mon, 02 Apr 2007 13:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainhandles.com/2007/03/31/simple-threading-with-php-and-mysql/#comment-131</guid>
		<description>I, too, wanted to create a threaded bbs style comment forum for my web pages. I wanted to keep individual threads in order, but I had the additional requirement that the most recently updated threads would bubble to the top. I think that active threads should be shown first and inactive threads drop down as they are ignored.
I use a thread string to do the sorting and I keep a last-comment-date on the root record.  The string was an interesting problem. You show it as 4 digit decimal with a dash to separate. I went a step further and made a "base 94" conversion routine that makes the id a much smaller string and gives me a larger total message base. Why 94 ? I wanted to use printable ascii characters below 127 and use another printable character as a separator. I got 94.
I put the thing on a bunch of my sites and I have about 6000 messages. It seems to be working fine except for some badly designed web pages.
I works with a javascript snippet or can be embedded on the page with a php script. It uses the current page is the index so you can put one on every page and have a different set of threads.
You can see one the pages at: http://www.harptab.com/
I wanted to make it a "product" but I'll probably never get around to writing the extra management pages.

Keith</description>
		<content:encoded><![CDATA[<p>I, too, wanted to create a threaded bbs style comment forum for my web pages. I wanted to keep individual threads in order, but I had the additional requirement that the most recently updated threads would bubble to the top. I think that active threads should be shown first and inactive threads drop down as they are ignored.<br />
I use a thread string to do the sorting and I keep a last-comment-date on the root record.  The string was an interesting problem. You show it as 4 digit decimal with a dash to separate. I went a step further and made a "base 94" conversion routine that makes the id a much smaller string and gives me a larger total message base. Why 94 ? I wanted to use printable ascii characters below 127 and use another printable character as a separator. I got 94.<br />
I put the thing on a bunch of my sites and I have about 6000 messages. It seems to be working fine except for some badly designed web pages.<br />
I works with a javascript snippet or can be embedded on the page with a php script. It uses the current page is the index so you can put one on every page and have a different set of threads.<br />
You can see one the pages at: <a href="http://www.harptab.com/" rel="nofollow">http://www.harptab.com/</a><br />
I wanted to make it a "product" but I'll probably never get around to writing the extra management pages.</p>
<p>Keith</p>
]]></content:encoded>
	</item>
</channel>
</rss>
