<?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 Tag: first post!</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Tag: first post!</description>
<language>en</language>
<pubDate>Fri, 29 Aug 2008 19:48:52 +0000</pubDate>

<item>
<title>Lookfab on "Detecting whether a post is the first in a topic"</title>
<link>http://bbpress.org/forums/topic/detecting-whether-a-post-is-the-first-in-a-topic#post-16110</link>
<pubDate>Sat, 10 May 2008 03:09:32 +0000</pubDate>
<dc:creator>Lookfab</dc:creator>
<guid isPermaLink="false">16110@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Yes, this does the trick. Thanks very much!
&#60;/p&#62;</description>
</item>
<item>
<title>bobbyh on "Detecting whether a post is the first in a topic"</title>
<link>http://bbpress.org/forums/topic/detecting-whether-a-post-is-the-first-in-a-topic#post-16075</link>
<pubDate>Fri, 09 May 2008 01:29:03 +0000</pubDate>
<dc:creator>bobbyh</dc:creator>
<guid isPermaLink="false">16075@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Try this (inserted into the code I had above):&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php if ( ( $i == 0 ) &#38;#38;&#38;#38; ( $page == 1 ) ) { echo &#38;#39;class=&#38;quot;firstpost&#38;quot;&#38;#39;; } elseif !($i % 2) { echo (&#38;#39;class=&#38;quot;alt&#38;quot;&#38;#39;); }?&#38;gt;&#38;gt;&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Lookfab on "Detecting whether a post is the first in a topic"</title>
<link>http://bbpress.org/forums/topic/detecting-whether-a-post-is-the-first-in-a-topic#post-16074</link>
<pubDate>Fri, 09 May 2008 00:43:35 +0000</pubDate>
<dc:creator>Lookfab</dc:creator>
<guid isPermaLink="false">16074@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks bobbyh. I think this is what I am doing now, but the problem is that when the thread goes onto a second page, the first post on the second page gets class=&#34;firstpost&#34; too.&#60;/p&#62;
&#60;p&#62;Is there any other way to find out programmatically whether a post is the first one in a topic?
&#60;/p&#62;</description>
</item>
<item>
<title>bobbyh on "Detecting whether a post is the first in a topic"</title>
<link>http://bbpress.org/forums/topic/detecting-whether-a-post-is-the-first-in-a-topic#post-16021</link>
<pubDate>Wed, 07 May 2008 09:31:48 +0000</pubDate>
<dc:creator>bobbyh</dc:creator>
<guid isPermaLink="false">16021@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Lookfab, here's a slight tweak to the default kakumei topic.php theme file that should do what you want:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;ol id=&#38;quot;thread&#38;quot; start=&#38;quot;&#38;lt;?php echo $list_start; ?&#38;gt;&#38;quot;&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;?php $i = 0; ?&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;li id=&#38;quot;post-&#38;lt;?php post_id(); ?&#38;gt;&#38;quot;&#38;lt;?php if ($i == 0) { echo &#38;#39;class=&#38;quot;firstpost&#38;quot;&#38;#39;; } elseif !($i % 2) { echo (&#38;#39;class=&#38;quot;alt&#38;quot;&#38;#39;); }?&#38;gt;&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;?php bb_post_template(); ?&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;?php $i++; ?&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;?php endforeach; ?&#38;gt;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#38;lt;/ol&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;You can then style the class &#34;firstpost&#34; using CSS to make it stand out however you want...&#60;/p&#62;
&#60;p&#62;I didn't test this, but I think it should work either by itself or with a tweak or two.
&#60;/p&#62;</description>
</item>
<item>
<title>Lookfab on "Detecting whether a post is the first in a topic"</title>
<link>http://bbpress.org/forums/topic/detecting-whether-a-post-is-the-first-in-a-topic#post-15991</link>
<pubDate>Tue, 06 May 2008 02:28:25 +0000</pubDate>
<dc:creator>Lookfab</dc:creator>
<guid isPermaLink="false">15991@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I want to format the first post differently to the rest in a thread. How do I detect whether the post currently being displayed using &#34;post_text()&#34; is the first one?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
