<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — forum order of topics.]]></title>
		<link>https://punbb.informer.com/forums/topic/4570/forum-order-of-topics/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/4570/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in forum order of topics..]]></description>
		<lastBuildDate>Tue, 23 Nov 2004 20:12:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: forum order of topics.]]></title>
			<link>https://punbb.informer.com/forums/post/25778/#p25778</link>
			<description><![CDATA[<p>Fixed.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Tue, 23 Nov 2004 20:12:38 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/25778/#p25778</guid>
		</item>
		<item>
			<title><![CDATA[Re: forum order of topics.]]></title>
			<link>https://punbb.informer.com/forums/post/20427/#p20427</link>
			<description><![CDATA[<p>why thank you snap</p>]]></description>
			<author><![CDATA[null@example.com (Gizzmo)]]></author>
			<pubDate>Mon, 06 Sep 2004 18:29:41 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/20427/#p20427</guid>
		</item>
		<item>
			<title><![CDATA[Re: forum order of topics.]]></title>
			<link>https://punbb.informer.com/forums/post/20411/#p20411</link>
			<description><![CDATA[<p>OffTopic <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>-Gizzmo<br />Website &amp; Fo<strong>R</strong>ums ... you missed a letter in your signature <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (snapsolutions)]]></author>
			<pubDate>Mon, 06 Sep 2004 13:13:22 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/20411/#p20411</guid>
		</item>
		<item>
			<title><![CDATA[Re: forum order of topics.]]></title>
			<link>https://punbb.informer.com/forums/post/20391/#p20391</link>
			<description><![CDATA[<p>thanx guys, and wow i feel proud to have one of my ideas to make it into punbb <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> makes me feel real good hehe</p>]]></description>
			<author><![CDATA[null@example.com (Gizzmo)]]></author>
			<pubDate>Mon, 06 Sep 2004 04:56:18 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/20391/#p20391</guid>
		</item>
		<item>
			<title><![CDATA[Re: forum order of topics.]]></title>
			<link>https://punbb.informer.com/forums/post/20376/#p20376</link>
			<description><![CDATA[<p>I think I&#039;ll add an option for this in 1.2.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Sun, 05 Sep 2004 22:50:23 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/20376/#p20376</guid>
		</item>
		<item>
			<title><![CDATA[Re: forum order of topics.]]></title>
			<link>https://punbb.informer.com/forums/post/20373/#p20373</link>
			<description><![CDATA[<p>ok here goes, you need to find the id of the forum you want to make the &quot;news forum&quot; (you can do this by looking at the number at the end of the hyperlink to go to it e.g. if the forums page was viewforum.php?id=1 the forum id would be 1)</p><p>then open viewforum.php and find (line: 126)<br /></p><div class="codebox"><pre><code>if ($cookie[&#039;is_guest&#039;] || $pun_config[&#039;o_show_dot&#039;] == &#039;0&#039;)
{
    // Without &quot;the dot&quot;
    $result = $db-&gt;query(&#039;SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to FROM &#039;.$db-&gt;prefix.&#039;topics WHERE forum_id=&#039;.$id.&#039; ORDER BY sticky DESC, last_post DESC LIMIT &#039;.$start_from.&#039;, &#039;.$disp_topics) or error(&#039;Unable to fetch topic list for forum&#039;, __FILE__, __LINE__, $db-&gt;error());
}
else
{
    // Fetch topic ID&#039;s
    $result = $db-&gt;query(&#039;SELECT id FROM &#039;.$db-&gt;prefix.&#039;topics WHERE forum_id=&#039;.$id.&#039; ORDER BY sticky DESC, last_post DESC LIMIT &#039;.$start_from.&#039;, &#039;.$disp_topics) or error(&#039;Unable to fetch topic list for forum&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div><p>and replace with</p><div class="codebox"><pre><code>$news_id = 1;
if ( $id == $news_id ) { $order_by = &quot;posted&quot;; }
else { $order_by = &quot;last_post&quot;; }

if ($cookie[&#039;is_guest&#039;] || $pun_config[&#039;o_show_dot&#039;] == &#039;0&#039;)
{
    // Without &quot;the dot&quot;
    $result = $db-&gt;query(&#039;SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to FROM &#039;.$db-&gt;prefix.&#039;topics WHERE forum_id=&#039;.$id.&#039; ORDER BY sticky DESC, &#039;.$order_by.&#039; DESC LIMIT &#039;.$start_from.&#039;, &#039;.$disp_topics) or error(&#039;Unable to fetch topic list for forum&#039;, __FILE__, __LINE__, $db-&gt;error());
}
else
{
    // Fetch topic ID&#039;s
    $result = $db-&gt;query(&#039;SELECT id FROM &#039;.$db-&gt;prefix.&#039;topics WHERE forum_id=&#039;.$id.&#039; ORDER BY sticky DESC, &#039;.$order_by.&#039; DESC LIMIT &#039;.$start_from.&#039;, &#039;.$disp_topics) or error(&#039;Unable to fetch topic list for forum&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div><p>making sure you change $news_id = 1; to equal the id of the news forum e.g. $news_id = 4; etc. save and upload viewforum.php and your done</p>]]></description>
			<author><![CDATA[null@example.com (Connorhd)]]></author>
			<pubDate>Sun, 05 Sep 2004 21:07:36 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/20373/#p20373</guid>
		</item>
		<item>
			<title><![CDATA[Re: forum order of topics.]]></title>
			<link>https://punbb.informer.com/forums/post/20365/#p20365</link>
			<description><![CDATA[<p>You mean order the topics according to the date the thread was started not according to the date of the last post. That way the latest news item goes to the top even if there are later replies to an earlier news item. I can see why that would be logical for a news forum. Maybe some clever person has a way to do it.</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Sun, 05 Sep 2004 19:17:34 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/20365/#p20365</guid>
		</item>
		<item>
			<title><![CDATA[forum order of topics.]]></title>
			<link>https://punbb.informer.com/forums/post/20360/#p20360</link>
			<description><![CDATA[<p>is there a way to have one forum order by the date of the topics bein posed, cuz i have a news section and its kinda out of order cuz of the comments that are made to them. so i was woudnering if there is a way. if not oh well.</p>]]></description>
			<author><![CDATA[null@example.com (Gizzmo)]]></author>
			<pubDate>Sun, 05 Sep 2004 18:39:02 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/20360/#p20360</guid>
		</item>
	</channel>
</rss>
