<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Topic: Alter Loop for Paged Forum Pages?</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: Alter Loop for Paged Forum Pages?</description>
<language>en</language>
<pubDate>Wed, 03 Dec 2008 03:31:18 +0000</pubDate>

<item>
<title>jenz on "Alter Loop for Paged Forum Pages?"</title>
<link>http://bbpress.org/forums/topic/alter-loop-for-paged-forum-pages#post-15704</link>
<pubDate>Wed, 23 Apr 2008 02:41:16 +0000</pubDate>
<dc:creator>jenz</dc:creator>
<guid isPermaLink="false">15704@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I figured it out and wanted to share.  This code goes at the top of my forums.php file (template).&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$forum_id = 1;
$limit = bb_get_option(&#38;#39;page_topics&#38;#39;);
$offset = ($page-1)*$limit;
$forum_one_topics = $bbdb-&#38;gt;get_results(&#38;quot;SELECT * FROM $bbdb-&#38;gt;topics WHERE forum_id = $forum_id AND topic_status = 0 ORDER BY topic_id DESC LIMIT $limit OFFSET $offset&#38;quot;)
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;My posts loop:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
foreach($forum_one_topics as $topic) : $forum_one_topic_posts = get_thread( $topic-&#38;gt;topic_id); ?&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Works like a charm
&#60;/p&#62;</description>
</item>
<item>
<title>jenz on "Alter Loop for Paged Forum Pages?"</title>
<link>http://bbpress.org/forums/topic/alter-loop-for-paged-forum-pages#post-15620</link>
<pubDate>Mon, 21 Apr 2008 16:35:02 +0000</pubDate>
<dc:creator>jenz</dc:creator>
<guid isPermaLink="false">15620@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Just for some more clarification - I would like my forum to show the most recent topics first - not the most active.  Is there some easy way to set this up?
&#60;/p&#62;</description>
</item>
<item>
<title>jenz on "Alter Loop for Paged Forum Pages?"</title>
<link>http://bbpress.org/forums/topic/alter-loop-for-paged-forum-pages#post-15553</link>
<pubDate>Sun, 20 Apr 2008 02:04:04 +0000</pubDate>
<dc:creator>jenz</dc:creator>
<guid isPermaLink="false">15553@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I really like how this works on the front page:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
$forum_id = 1;&#60;br /&#62;
$forum_one_topics = $bbdb-&#38;gt;get_results(&#34;SELECT * FROM $bbdb-&#38;gt;topics WHERE forum_id = $forum_id ORDER BY topic_time DESC LIMIT 0,10&#34;)&#60;br /&#62;
foreach($forum_one_topics as $topic) :&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;but would like to use this for the whole site.  Is it possible to make this the logic of the entire site loop?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
