<?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: vBulletin Similar Threads in PHP</title>
	<atom:link href="http://www.gabrielharper.com/2009/04/vbulletin-similar-threads-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gabrielharper.com/2009/04/vbulletin-similar-threads-in-php/</link>
	<description>Business, Web Sites and Life</description>
	<lastBuildDate>Thu, 15 Dec 2011 16:27:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: USER</title>
		<link>http://www.gabrielharper.com/2009/04/vbulletin-similar-threads-in-php/#comment-34608</link>
		<dc:creator>USER</dc:creator>
		<pubDate>Thu, 11 Jun 2009 02:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielharper.com/?p=306#comment-34608</guid>
		<description>Another two questions.

How do you retrieve page titles? = &quot;Gadgets and gizmos&quot;.

I&#039;m trying to integrate this to vbulletin itself and in showthread pages using $thread[&#039;title&#039;] variable for $text causing vbulletin to change the title of the original thread from one of the query results. I want to use this along with the builtin similar threads feature.

Requests:
A- Results are displayed in two columns with tables or divs
B- Dynamic $text variable to retrieve the page titles (at least a fix for showthread pages)

Thanks</description>
		<content:encoded><![CDATA[<p>Another two questions.</p>
<p>How do you retrieve page titles? = &#8220;Gadgets and gizmos&#8221;.</p>
<p>I&#8217;m trying to integrate this to vbulletin itself and in showthread pages using $thread['title'] variable for $text causing vbulletin to change the title of the original thread from one of the query results. I want to use this along with the builtin similar threads feature.</p>
<p>Requests:<br />
A- Results are displayed in two columns with tables or divs<br />
B- Dynamic $text variable to retrieve the page titles (at least a fix for showthread pages)</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: USER</title>
		<link>http://www.gabrielharper.com/2009/04/vbulletin-similar-threads-in-php/#comment-34521</link>
		<dc:creator>USER</dc:creator>
		<pubDate>Wed, 10 Jun 2009 03:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielharper.com/?p=306#comment-34521</guid>
		<description>Ok, i fixed the problem, thank you :)

How to display the results in two columns? (5 threads in each)</description>
		<content:encoded><![CDATA[<p>Ok, i fixed the problem, thank you <img src='http://www.gabrielharper.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>How to display the results in two columns? (5 threads in each)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GABRIEL HARPER</title>
		<link>http://www.gabrielharper.com/2009/04/vbulletin-similar-threads-in-php/#comment-34510</link>
		<dc:creator>GABRIEL HARPER</dc:creator>
		<pubDate>Tue, 09 Jun 2009 23:04:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielharper.com/?p=306#comment-34510</guid>
		<description>I&#039;m not sure what your exact problem is since it&#039;s running OK on my server. It appears the query is not returning any results. The script could be improved to check for this, but you should still be getting results.

Try printing the SQL query and mysql error. Find these lines in vb_get_similar_threads function:

$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result))

Change it to this:

echo $sql;
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result))
echo mysql_error();

If you can share the ouput I&#039;ll take a look!</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure what your exact problem is since it&#8217;s running OK on my server. It appears the query is not returning any results. The script could be improved to check for this, but you should still be getting results.</p>
<p>Try printing the SQL query and mysql error. Find these lines in vb_get_similar_threads function:</p>
<p>$result = mysql_query($sql);<br />
while ($row = mysql_fetch_assoc($result))</p>
<p>Change it to this:</p>
<p>echo $sql;<br />
$result = mysql_query($sql);<br />
while ($row = mysql_fetch_assoc($result))<br />
echo mysql_error();</p>
<p>If you can share the ouput I&#8217;ll take a look!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: USER</title>
		<link>http://www.gabrielharper.com/2009/04/vbulletin-similar-threads-in-php/#comment-34498</link>
		<dc:creator>USER</dc:creator>
		<pubDate>Tue, 09 Jun 2009 19:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielharper.com/?p=306#comment-34498</guid>
		<description>Can you please re-check your script? Mysql queries don&#039;t work.</description>
		<content:encoded><![CDATA[<p>Can you please re-check your script? Mysql queries don&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: USER</title>
		<link>http://www.gabrielharper.com/2009/04/vbulletin-similar-threads-in-php/#comment-34479</link>
		<dc:creator>USER</dc:creator>
		<pubDate>Tue, 09 Jun 2009 06:46:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielharper.com/?p=306#comment-34479</guid>
		<description>This doesn&#039;t work for me:

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in xxx on line 105

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in xxx on line 122</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t work for me:</p>
<p>Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in xxx on line 105</p>
<p>Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in xxx on line 122</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KEL</title>
		<link>http://www.gabrielharper.com/2009/04/vbulletin-similar-threads-in-php/#comment-31915</link>
		<dc:creator>KEL</dc:creator>
		<pubDate>Thu, 07 May 2009 09:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.gabrielharper.com/?p=306#comment-31915</guid>
		<description>great job</description>
		<content:encoded><![CDATA[<p>great job</p>
]]></content:encoded>
	</item>
</channel>
</rss>

