<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Converting XDForum to BBPress</title>
	<atom:link href="http://www.fastpipe.com/2008/06/23/converting-xdforum-to-bbpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fastpipe.com/2008/06/23/converting-xdforum-to-bbpress</link>
	<description>Gasoline and Whiskey Don't Mix</description>
	<pubDate>Wed, 07 Jan 2009 14:16:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: clicknathan</title>
		<link>http://www.fastpipe.com/2008/06/23/converting-xdforum-to-bbpress/comment-page-1#comment-12362</link>
		<dc:creator>clicknathan</dc:creator>
		<pubDate>Thu, 28 Aug 2008 18:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.fastpipe.com/?p=39#comment-12362</guid>
		<description>My bad, I /was/ using a 4.x version of MySQL, though the "MySQL client version 5.0.41" in phpMyAdmin thing was a bit of a throw off for the novice such as myself.</description>
		<content:encoded><![CDATA[<p>My bad, I /was/ using a 4.x version of MySQL, though the &#8220;MySQL client version 5.0.41&#8243; in phpMyAdmin thing was a bit of a throw off for the novice such as myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: clicknathan</title>
		<link>http://www.fastpipe.com/2008/06/23/converting-xdforum-to-bbpress/comment-page-1#comment-12343</link>
		<dc:creator>clicknathan</dc:creator>
		<pubDate>Thu, 28 Aug 2008 00:41:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.fastpipe.com/?p=39#comment-12343</guid>
		<description>The Select statement seems to work (in that it doesn't return an error).

I'm using MySQL 5.0.41

I'm not that schooled at SQL in general - should I be trying to run this from the main SQL tab or from inside one of the tables. (Maybe that doesn't even matter....)

Thanks for your reply!</description>
		<content:encoded><![CDATA[<p>The Select statement seems to work (in that it doesn&#8217;t return an error).</p>
<p>I&#8217;m using MySQL 5.0.41</p>
<p>I&#8217;m not that schooled at SQL in general - should I be trying to run this from the main SQL tab or from inside one of the tables. (Maybe that doesn&#8217;t even matter&#8230;.)</p>
<p>Thanks for your reply!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FastPipe Media, Inc.</title>
		<link>http://www.fastpipe.com/2008/06/23/converting-xdforum-to-bbpress/comment-page-1#comment-12342</link>
		<dc:creator>FastPipe Media, Inc.</dc:creator>
		<pubDate>Thu, 28 Aug 2008 00:30:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.fastpipe.com/?p=39#comment-12342</guid>
		<description>It could be that your server is using an earlier version of MySQL as views were introduced in version 5.

However, the SQL statement you posted was after a view had been used earlier so probably not. Does just the select statement work for you?

&lt;code&gt;
SELECT xp_xt_id AS topic_ID, COUNT(xp_xt_id) AS my_count, xp_author_ip AS author_ip, FROM_UNIXTIME( MIN( xp_date ) ) AS post_time, FROM_UNIXTIME( MAX( xp_date ) ) AS last_post_time
FROM wp_xdforum_posts
GROUP BY xp_xt_id
ORDER BY xp_xt_id, post_time DESC
&lt;/code&gt;

If that works, then most likely you're using a version of MySQL that doesn't support subselects. If that's the case, you'll have to figure out how to recreate the view into a temporary table so you can update the counts, which is the whole purpose of the view, which just displays the number of items in the thread, the date the topic was started and the date it was last updated.</description>
		<content:encoded><![CDATA[<p>It could be that your server is using an earlier version of MySQL as views were introduced in version 5.</p>
<p>However, the SQL statement you posted was after a view had been used earlier so probably not. Does just the select statement work for you?</p>
<p><code><br />
SELECT xp_xt_id AS topic_ID, COUNT(xp_xt_id) AS my_count, xp_author_ip AS author_ip, FROM_UNIXTIME( MIN( xp_date ) ) AS post_time, FROM_UNIXTIME( MAX( xp_date ) ) AS last_post_time<br />
FROM wp_xdforum_posts<br />
GROUP BY xp_xt_id<br />
ORDER BY xp_xt_id, post_time DESC<br />
</code></p>
<p>If that works, then most likely you&#8217;re using a version of MySQL that doesn&#8217;t support subselects. If that&#8217;s the case, you&#8217;ll have to figure out how to recreate the view into a temporary table so you can update the counts, which is the whole purpose of the view, which just displays the number of items in the thread, the date the topic was started and the date it was last updated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: clicknathan</title>
		<link>http://www.fastpipe.com/2008/06/23/converting-xdforum-to-bbpress/comment-page-1#comment-12339</link>
		<dc:creator>clicknathan</dc:creator>
		<pubDate>Wed, 27 Aug 2008 23:45:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.fastpipe.com/?p=39#comment-12339</guid>
		<description>Howdy there. 

Great job sorting this out! I've been trying to work through your instructions and got hung up on step 7. I get an SQL syntax error, which I'll paste below. 

Any chance you might know what I'm doing wrong?

Error

SQL query: Documentation

CREATE VIEW topic_info AS SELECT wp_xdforum_posts.xp_xt_id AS topic_ID, COUNT( wp_xdforum_posts.xp_xt_id ) AS my_count, xp_author_ip AS author_ip, FROM_UNIXTIME( MIN( xp_date ) ) AS post_time, FROM_UNIXTIME( MAX( xp_date ) ) AS last_post_time
FROM wp_xdforum_posts
GROUP BY xp_xt_id
ORDER BY xp_xt_id, post_time DESC

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VIEW topic_info AS SELECT wp_xdforum_posts.xp_xt_id AS topic_ID, COUNT(wp_xdforu' at line 1</description>
		<content:encoded><![CDATA[<p>Howdy there. </p>
<p>Great job sorting this out! I&#8217;ve been trying to work through your instructions and got hung up on step 7. I get an SQL syntax error, which I&#8217;ll paste below. </p>
<p>Any chance you might know what I&#8217;m doing wrong?</p>
<p>Error</p>
<p>SQL query: Documentation</p>
<p>CREATE VIEW topic_info AS SELECT wp_xdforum_posts.xp_xt_id AS topic_ID, COUNT( wp_xdforum_posts.xp_xt_id ) AS my_count, xp_author_ip AS author_ip, FROM_UNIXTIME( MIN( xp_date ) ) AS post_time, FROM_UNIXTIME( MAX( xp_date ) ) AS last_post_time<br />
FROM wp_xdforum_posts<br />
GROUP BY xp_xt_id<br />
ORDER BY xp_xt_id, post_time DESC</p>
<p>MySQL said: Documentation<br />
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;VIEW topic_info AS SELECT wp_xdforum_posts.xp_xt_id AS topic_ID, COUNT(wp_xdforu&#8217; at line 1</p>
]]></content:encoded>
	</item>
</channel>
</rss>
