<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Disallow topics from appearing in "recent posts" results?]]></title>
		<link>https://punbb.informer.com/forums/topic/20984/disallow-topics-from-appearing-in-recent-posts-results/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/20984/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Disallow topics from appearing in "recent posts" results?.]]></description>
		<lastBuildDate>Thu, 05 Mar 2009 20:12:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Disallow topics from appearing in "recent posts" results?]]></title>
			<link>https://punbb.informer.com/forums/post/125323/#p125323</link>
			<description><![CDATA[<p>Many thanks Tieguy!</p>]]></description>
			<author><![CDATA[null@example.com (mujitsu)]]></author>
			<pubDate>Thu, 05 Mar 2009 20:12:45 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/125323/#p125323</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disallow topics from appearing in "recent posts" results?]]></title>
			<link>https://punbb.informer.com/forums/post/125249/#p125249</link>
			<description><![CDATA[<p>In search.php, find:</p><div class="codebox"><pre><code>            // If it&#039;s a search for new posts
            if ($action == &#039;show_new&#039;)
            {
                if ($pun_user[&#039;is_guest&#039;])
                    message($lang_common[&#039;No permission&#039;]);

                $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 &#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.last_post&gt;&#039;.$pun_user[&#039;last_visit&#039;].&#039; AND t.moved_to IS NULL &#039;) or error(&#039;Unable to fetch topic list&#039;, __FILE__, __LINE__, $db-&gt;error());
                $num_hits = $db-&gt;num_rows($result);

                if (!$num_hits)
                    message($lang_search[&#039;No new posts&#039;]);
            }
            // If it&#039;s a search for todays posts
            else if ($action == &#039;show_24h&#039;)
            {
                $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 &#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.last_post&gt;&#039;.(time() - 86400).&#039; AND t.moved_to IS NULL&#039;) or error(&#039;Unable to fetch topic list&#039;, __FILE__, __LINE__, $db-&gt;error());
                $num_hits = $db-&gt;num_rows($result);

                if (!$num_hits)
                    message($lang_search[&#039;No recent posts&#039;]);
            }</code></pre></div><p>Replace with:<br /></p><div class="codebox"><pre><code>            // If it&#039;s a search for new posts
            if ($action == &#039;show_new&#039;)
            {
                if ($pun_user[&#039;is_guest&#039;])
                    message($lang_common[&#039;No permission&#039;]);

                $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 &#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.last_post&gt;&#039;.$pun_user[&#039;last_visit&#039;].&#039; AND t.moved_to IS NULL AND t.forum_id != *forumidhere*  &#039;) or error(&#039;Unable to fetch topic list&#039;, __FILE__, __LINE__, $db-&gt;error());
                $num_hits = $db-&gt;num_rows($result);

                if (!$num_hits)
                    message($lang_search[&#039;No new posts&#039;]);
            }
            // If it&#039;s a search for todays posts
            else if ($action == &#039;show_24h&#039;)
            {
                $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 &#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.last_post&gt;&#039;.(time() - 86400).&#039; AND t.moved_to IS NULL AND t.forum_id != *forumidhere* &#039;) or error(&#039;Unable to fetch topic list&#039;, __FILE__, __LINE__, $db-&gt;error());
                $num_hits = $db-&gt;num_rows($result);

                if (!$num_hits)
                    message($lang_search[&#039;No recent posts&#039;]);
            }</code></pre></div><p>Be sure to replace *forumidhere* with the forum id of the buy/sell forum.</p>]]></description>
			<author><![CDATA[null@example.com (Tieguy)]]></author>
			<pubDate>Wed, 04 Mar 2009 01:27:13 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/125249/#p125249</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disallow topics from appearing in "recent posts" results?]]></title>
			<link>https://punbb.informer.com/forums/post/125216/#p125216</link>
			<description><![CDATA[<div class="quotebox"><cite>mujitsu wrote:</cite><blockquote><p>I&#039;m receiving more posts than I would like in the buy/sell forum of my site. I was wondering if it is possible to allow posts to this buy/sell forum but not allow them to appear in the &quot;recent posts&quot; search. That way buy/sell topics won&#039;t overwhelm members when they click on &quot;recent post.&quot; The other forums would remain unchanged. </p><p>The idea is that if members are interested in buy/sell forum, they could open it manually and search. </p><p>Is it possible to do this?</p><p>Thanks for any help!</p></blockquote></div><p>I still haven&#039;t been able to figure this out. Would anyone know about this?&nbsp; Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (mujitsu)]]></author>
			<pubDate>Tue, 03 Mar 2009 14:40:13 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/125216/#p125216</guid>
		</item>
		<item>
			<title><![CDATA[Disallow topics from appearing in "recent posts" results?]]></title>
			<link>https://punbb.informer.com/forums/post/123671/#p123671</link>
			<description><![CDATA[<p>I&#039;m receiving more posts than I would like in the buy/sell forum of my site. I was wondering if it is possible to allow posts to this buy/sell forum but not allow them to appear in the &quot;recent posts&quot; search. That way buy/sell topics won&#039;t overwhelm members when they click on &quot;recent post.&quot; The other forums would remain unchanged. </p><p>The idea is that if members are interested in buy/sell forum, they could open it manually and search. </p><p>Is it possible to do this?</p><p>Thanks for any help!</p>]]></description>
			<author><![CDATA[null@example.com (mujitsu)]]></author>
			<pubDate>Wed, 28 Jan 2009 16:09:03 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/123671/#p123671</guid>
		</item>
	</channel>
</rss>
