<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PunBB Forums - show_unanswered query trouble]]></title>
		<link>http://punbb.informer.com/forums/topic/16148/showunanswered-query-trouble/</link>
		<description><![CDATA[The most recent posts in show_unanswered query trouble.]]></description>
		<lastBuildDate>Sat, 02 Jun 2007 17:46:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: show_unanswered query trouble]]></title>
			<link>http://punbb.informer.com/forums/post/95571/#p95571</link>
			<description><![CDATA[<p>I think I would need to test this out more personally in order to attempt to figure out what&#039;s going wrong.<br />If anyone is willing to give me a database dump of a forum that&#039;s having this issue, send me an email (smartys@ this domain)</p>]]></description>
			<author><![CDATA[dummy@example.com (Smartys)]]></author>
			<pubDate>Sat, 02 Jun 2007 17:46:32 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/95571/#p95571</guid>
		</item>
		<item>
			<title><![CDATA[Re: show_unanswered query trouble]]></title>
			<link>http://punbb.informer.com/forums/post/95569/#p95569</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>// Ugly hack:&nbsp; limit 100 workaround for punbb internal limitation Ju 20070529 other hack since we&#039;re big&nbsp; order by posted desc /o\<br /> $result = $db-&gt;query(&#039;SELECT t.id FROM &#039;.$db-&gt;prefix.&#039;topics AS t INNER JOIN &#039;.$db-&gt;prefix.&#039;forums AS f ON f.id=t.forum_id LEFT JOIN<br /> &#039;.$db-&gt;prefix.&#039;forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=&#039;.$pun_user[&#039;g_id&#039;].&#039;) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.num_replies=0 A<br />ND t.moved_to IS NULL and f.id!=7 and f.id!=43 and f.id!=8 and f.id!=4&nbsp; order by posted desc limit 100&#039;) or error(&#039;Unable to fetch topic list&#039;, __FILE__, __LINE__, <br />$db-&gt;error());</p></blockquote></div><p>Here is the code of the search.php action, the troubled query being search.php?action=show_unanswered</p><p>EDIT: the Ugly hack has recently been added by Ju (one of the admins).</p><p>Just ask if you need more information. thanks again for help</p>]]></description>
			<author><![CDATA[dummy@example.com (poupoul2)]]></author>
			<pubDate>Sat, 02 Jun 2007 17:30:12 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/95569/#p95569</guid>
		</item>
		<item>
			<title><![CDATA[Re: show_unanswered query trouble]]></title>
			<link>http://punbb.informer.com/forums/post/95567/#p95567</link>
			<description><![CDATA[<p>Thanks for your answer, Smartys. </p><p>I just requested the admins for additional information. I&#039;ll keep you updated</p>]]></description>
			<author><![CDATA[dummy@example.com (poupoul2)]]></author>
			<pubDate>Sat, 02 Jun 2007 17:12:16 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/95567/#p95567</guid>
		</item>
		<item>
			<title><![CDATA[Re: show_unanswered query trouble]]></title>
			<link>http://punbb.informer.com/forums/post/95565/#p95565</link>
			<description><![CDATA[<p>This isn&#039;t the first complaint I&#039;ve heard about this, but I&#039;d need to know more to be able to investigate.<br />Specifically, I&#039;d need to see what queries these no hits pages are running</p>]]></description>
			<author><![CDATA[dummy@example.com (Smartys)]]></author>
			<pubDate>Sat, 02 Jun 2007 17:06:42 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/95565/#p95565</guid>
		</item>
		<item>
			<title><![CDATA[show_unanswered query trouble]]></title>
			<link>http://punbb.informer.com/forums/post/95564/#p95564</link>
			<description><![CDATA[<p>Hi all</p><p>On the Ubuntu-fr forum, powered by PunBB, the show_unanswered query has been displaying this result for a few weeks: Your query did not send any result (instead of a possible &quot;there is no answer to your query&quot;). It seems that this result is due to a huge number of possible answers.</p><p>By now, the administrators of the forum limited the query to all hundred last unanswered posts. here are the questions:<br />- is there any PunBB configurable -or not- limit to a query, and especially this one?</p><p>Some tests were done by members:<br />querying &quot;nvidia&quot;: about 8300 posts, on 278 pages<br />querying &quot;ati&quot;: about 7500 posts, on 252 pages<br />querying &quot;ubuntu&quot;: No hits (strange as it has been done on an Ubuntu forum)<br />querying &quot;drivers&quot;: No hits (we all know there are no drivers issue on Linux <img src="http://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Here is the post on this subject (sorry, french post): <a href="http://forum.ubuntu-fr.org/viewtopic.php?pid=961010#p961010">http://forum.ubuntu-fr.org/viewtopic.ph &#133; 10#p961010</a></p><p>EDIT: Is there any mean to force this query to return only the related posts of the last week, 2 weeks or month?</p><p>Thanks for any suggestion to help the admins</p>]]></description>
			<author><![CDATA[dummy@example.com (poupoul2)]]></author>
			<pubDate>Sat, 02 Jun 2007 16:23:58 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/95564/#p95564</guid>
		</item>
	</channel>
</rss>
