<?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: troubleshooting</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Tag: troubleshooting</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 06:25:15 +0000</pubDate>

<item>
<title>cart3r on "Are these things possible?"</title>
<link>http://bbpress.org/forums/topic/are-these-things-possible#post-13070</link>
<pubDate>Wed, 09 Jan 2008 05:18:21 +0000</pubDate>
<dc:creator>cart3r</dc:creator>
<guid isPermaLink="false">13070@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks much! Finally got it working the way I want to. For everyone's reference here's how to do the separation:&#60;/p&#62;
&#60;p&#62;Where the first one is going to go: &#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
						foreach ($posts as $bb_post) : $del_class = post_del_class();&#60;br /&#62;
							post_text(); // Other variables, etc&#60;br /&#62;
							array_shift($posts);&#60;br /&#62;
							break;&#60;br /&#62;
						endforeach;&#60;br /&#62;
					?&#38;gt;&#60;/p&#62;
&#60;p&#62;Then, where the rest of them are going to appear:&#60;br /&#62;
&#38;lt;?php foreach ($posts as $bb_post) : $del_class = post_del_class();&#60;br /&#62;
				php bb_post_template();&#60;br /&#62;
			endforeach; ?&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Are these things possible?"</title>
<link>http://bbpress.org/forums/topic/are-these-things-possible#post-13067</link>
<pubDate>Tue, 08 Jan 2008 09:43:17 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">13067@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;The documentation should help you understand how to use array_shift(): &#60;a href=&#34;http://uk.php.net/manual/en/function.array-shift.php&#34; rel=&#34;nofollow&#34;&#62;http://uk.php.net/manual/en/function.array-shift.php&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>cart3r on "Are these things possible?"</title>
<link>http://bbpress.org/forums/topic/are-these-things-possible#post-13063</link>
<pubDate>Tue, 08 Jan 2008 03:55:32 +0000</pubDate>
<dc:creator>cart3r</dc:creator>
<guid isPermaLink="false">13063@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks! 1st and 3rd things are  resolved.&#60;/p&#62;
&#60;p&#62;I've been trying hundreds of different things/syntaxes to get the second item to work, but to no avail yet. I'm sure it must be the way I'm trying to code it (Full disclosure: I'm still trying to learn PHP).&#60;/p&#62;
&#60;p&#62;What I'm going for is as follows:&#60;br /&#62;
Run the foreach, and then using array_shift(), grab the first item in the array, and then display just the post_text() that is contained within that array (assuming this is an array within an array)&#60;/p&#62;
&#60;p&#62;This what my code (stripped down) looks like:&#60;/p&#62;
&#60;p&#62;INITIAL POST:&#60;br /&#62;
&#38;lt;? php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?&#38;gt;&#60;br /&#62;
&#38;lt;?&#60;br /&#62;
php array_shift();&#60;br /&#62;
echo post_text();&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#38;lt;?php endforeach; ?&#38;gt;&#60;br /&#62;
=====================================&#60;br /&#62;
and then later on, when the responses are displayed:&#60;/p&#62;
&#60;p&#62;&#38;lt;? php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?&#38;gt;&#60;br /&#62;
&#38;lt;?php echo post_text(); ?&#38;gt;&#60;br /&#62;
&#38;lt;?php endforeach; ?&#38;gt;&#60;/p&#62;
&#60;p&#62;I was hoping the first initial post wouldn't be displayed since array_shift() would have taken it out?&#60;/p&#62;
&#60;p&#62;Any help would be greatly appreciated...
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Are these things possible?"</title>
<link>http://bbpress.org/forums/topic/are-these-things-possible#post-13057</link>
<pubDate>Mon, 07 Jan 2008 08:42:58 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">13057@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;- You'd want to use &#60;code&#62;forum_name( $topic-&#38;gt;forum_id )&#60;/code&#62;.&#60;br /&#62;
- I think so. If you look at the code you'll see an array of posts, and by using &#60;code&#62;array_shift()&#60;/code&#62; you can detach the first one and have some special template code just for that. Be sure to check it's the first post of the topic, though, not just the first post of the page. Maybe a better thing to do would be to add a class to each post giving it a topic-specific number, so you can style topic-post-1 or whatever individually.&#60;br /&#62;
- Where in your template I assume it says &#60;code&#62;topic_posts()&#60;/code&#62;, replace that with &#60;code&#62;echo( get_topic_posts() - 1 );&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>cart3r on "Are these things possible?"</title>
<link>http://bbpress.org/forums/topic/are-these-things-possible#post-13054</link>
<pubDate>Mon, 07 Jan 2008 03:08:49 +0000</pubDate>
<dc:creator>cart3r</dc:creator>
<guid isPermaLink="false">13054@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hello all,&#60;br /&#62;
I recently dove into the exciting world of BBPress, and in the midst of working out a custom theme (tweaking structure as well), I was wondering if the following things were even possible to do, or are they more suited to be plugin requests?&#60;/p&#62;
&#60;p&#62;- attach forum name to latest topics of main page. ie I want to have a topic display like this:&#60;br /&#62;
&#34;Plugins &#124; Lorem ipsum dolor sit amet&#34;&#60;br /&#62;
(where &#34;Plugins&#34; is the forum name and &#34;Lorem ipsum dolor sit amet&#34; is the topic, obviously.&#60;/p&#62;
&#60;p&#62;- Within each topic, separate the original post from the comments. I guess this is similar to how a blog entry is; with the entry featured at the top, and the comments displayed below and less prominently. It seems like the way BBPress is coded they can only be stacked on top of each other and have a similar design treatment?&#60;/p&#62;
&#60;p&#62;- Tweak post count so that if no has yet replied to a post it is &#34;0&#34; instead of &#34;1&#34;&#60;/p&#62;
&#60;p&#62;Hopefully these are just things that are right under my nose that I haven't been able to figure out, but let's see...&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>stuboo on "Fix my bbpress - will pay $"</title>
<link>http://bbpress.org/forums/topic/fix-my-bbpress-will-pay-#post-9076</link>
<pubDate>Wed, 18 Jul 2007 23:21:13 +0000</pubDate>
<dc:creator>stuboo</dc:creator>
<guid isPermaLink="false">9076@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Sorry Trent.&#60;/p&#62;
&#60;p&#62;admin [at] pharmboard [dot] com&#60;/p&#62;
&#60;p&#62;Feel free to edit the post if you'd like.&#60;/p&#62;
&#60;p&#62;Ryan
&#60;/p&#62;</description>
</item>
<item>
<title>Trent on "Fix my bbpress - will pay $"</title>
<link>http://bbpress.org/forums/topic/fix-my-bbpress-will-pay-#post-9074</link>
<pubDate>Wed, 18 Jul 2007 23:04:18 +0000</pubDate>
<dc:creator>Trent</dc:creator>
<guid isPermaLink="false">9074@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#60;code&#62;Please let me know what you would charge to make these changes.&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;Please don't do that people!   Contact stuboo through their website or if you are reading this stuboo, leave a contact address as we don't want to use the forums as a place to bid or bidding wars.&#60;/p&#62;
&#60;p&#62;Trent
&#60;/p&#62;</description>
</item>
<item>
<title>stuboo on "Fix my bbpress - will pay $"</title>
<link>http://bbpress.org/forums/topic/fix-my-bbpress-will-pay-#post-9073</link>
<pubDate>Wed, 18 Jul 2007 22:09:59 +0000</pubDate>
<dc:creator>stuboo</dc:creator>
<guid isPermaLink="false">9073@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I need a couple of things done that I don't have time or knowledge to do.&#60;/p&#62;
&#60;p&#62;1.  Upgrade my bbpress&#60;br /&#62;
2.  Fix my bbpress (users create accounts but never receive emails telling them what their password is).&#60;/p&#62;
&#60;p&#62;It's possible that fixing #1 will fix #2, but there may also be a chance that the upgrade will break my theme.  I need you to not let that happen.&#60;/p&#62;
&#60;p&#62;Please let me know what you would charge to make these changes.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.pharmboard.com&#34; rel=&#34;nofollow&#34;&#62;http://www.pharmboard.com&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
