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

<item>
<title>chrishajer on "Displaying a small snippet of the most recent post"</title>
<link>http://bbpress.org/forums/topic/displaying-a-small-snippet-of-the-most-recent-post#post-19282</link>
<pubDate>Tue, 16 Sep 2008 17:42:54 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">19282@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Now that you mention it, I think search returns just a snippet of results, not the full post.  Maybe look at how that's done?
&#60;/p&#62;</description>
</item>
<item>
<title>clicknathan on "Displaying a small snippet of the most recent post"</title>
<link>http://bbpress.org/forums/topic/displaying-a-small-snippet-of-the-most-recent-post#post-19281</link>
<pubDate>Tue, 16 Sep 2008 16:02:07 +0000</pubDate>
<dc:creator>clicknathan</dc:creator>
<guid isPermaLink="false">19281@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;So here's what I found, though I wasn't personally able to get it to work myself, I'm almost positive that someone with a bit more PHP knowledge &#60;em&#62;would&#60;/em&#62; have been able to:&#60;/p&#62;
&#60;p&#62;This plugin: &#60;a href=&#34;http://bbpress.org/plugins/topic/forum-last-poster/#post-1538&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/plugins/topic/forum-last-poster/#post-1538&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;+ _ck_'s advice in this post: &#60;a href=&#34;http://bbpress.org/plugins/topic/forum-last-poster/#post-1546&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/plugins/topic/forum-last-poster/#post-1546&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;He details how, using &#60;code&#62;substr&#60;/code&#62;, you can truncate the amount of words being pulled from the any piece of content. Theoretically you could use:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;post_text(forum_last_topic_id());&#60;/p&#62;
&#60;p&#62;But with the truncation method he mentions. I, unfortunately, just don't know how. :(&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>clicknathan on "Displaying a small snippet of the most recent post"</title>
<link>http://bbpress.org/forums/topic/displaying-a-small-snippet-of-the-most-recent-post#post-19252</link>
<pubDate>Mon, 15 Sep 2008 21:42:20 +0000</pubDate>
<dc:creator>clicknathan</dc:creator>
<guid isPermaLink="false">19252@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;That's a great start, Chris - however it basically drops an entire list of recents with excerpts, and I was hoping to have the excerpt for each group listed after that group. &#60;/p&#62;
&#60;p&#62;I'm quite the novice when it comes to PHP, but perhaps I can figure out how to mod this.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Displaying a small snippet of the most recent post"</title>
<link>http://bbpress.org/forums/topic/displaying-a-small-snippet-of-the-most-recent-post#post-19236</link>
<pubDate>Mon, 15 Sep 2008 17:37:19 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">19236@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;How about this as a starting point?&#60;br /&#62;
&#60;a href=&#34;http://bbpress.org/forums/topic/excerpts?replies=14#post-12656&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/excerpts?replies=14#post-12656&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>clicknathan on "Displaying a small snippet of the most recent post"</title>
<link>http://bbpress.org/forums/topic/displaying-a-small-snippet-of-the-most-recent-post#post-19231</link>
<pubDate>Mon, 15 Sep 2008 14:57:55 +0000</pubDate>
<dc:creator>clicknathan</dc:creator>
<guid isPermaLink="false">19231@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Would anyone perhaps know how I might display a small snippet of the most recent post in a forum under that forum's title on the front page? So, my front page might look like:&#60;/p&#62;
&#60;p&#62;My Forum&#60;br /&#62;
&#60;em&#62;Here is a bit of text from the most recent post in this forum&#60;/em&#62;&#60;br /&#62;
Another of my Forums&#60;br /&#62;
&#60;em&#62;And here is some text from this forum's most recent post&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Etc, etc.
&#60;/p&#62;</description>
</item>
<item>
<title>jenz on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-15552</link>
<pubDate>Sun, 20 Apr 2008 01:29:29 +0000</pubDate>
<dc:creator>jenz</dc:creator>
<guid isPermaLink="false">15552@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;If I used:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$forum_id = 1;
$number_of_topics = 7;
$forum_one_topics = $bbdb-&#38;gt;get_results(&#38;quot;SELECT * FROM $bbdb-&#38;gt;topics WHERE forum_id = $forum_id ORDER BY topic_id DESC LIMIT 0,$number_of_topics&#38;quot;)
?&#38;gt;
&#38;lt;?php
foreach($forum_one_topics as $topic) : $forum_one_topic_posts = get_thread( $topic-&#38;gt;topic_id); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;(as see at the beginning of this topic) - how can I show the initial topic time on the front page instead of the last reply time?
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9723</link>
<pubDate>Wed, 01 Aug 2007 15:34:54 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">9723@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Turn the time-string into a timestamp to be turned into a time-string.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php echo date( &#38;#39;g:i A&#38;#39;, strtotime( $latestpost-&#38;gt;post_time ) ); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;There's a template function that gives you the link to the latest post in the topic. I believe it's called &#60;code&#62;get_topic_last_post_link()&#60;/code&#62; but I'm not sure.
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9694</link>
<pubDate>Wed, 01 Aug 2007 02:54:06 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9694@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;how does one filter the output for time in this example?&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php echo $latestpost-&#38;gt;post_time; ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;i'd like it to be in the format of &#60;code&#62;( &#38;#39;g:i A&#38;#39; )&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;ps, my good, good people :)&#60;/p&#62;
&#60;p&#62;how would i turn this link into a link to the latest reply itself instead of just the topic:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a href=&#38;quot;&#38;lt;?php echo get_topic_link($latestpost-&#38;gt;topic_id); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php echo get_topic_title($latestpost-&#38;gt;topic_id); ?&#38;gt;&#38;lt;/a&#38;gt;&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9603</link>
<pubDate>Mon, 30 Jul 2007 17:20:36 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9603@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;yes, good call:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$latestpost = $bbdb-&#38;gt;get_row(&#38;quot;
	SELECT *
	FROM $bbdb-&#38;gt;posts
	WHERE post_status = 0

	ORDER BY post_time DESC
	LIMIT 1

&#38;quot;);
?&#38;gt;

Re:
&#38;lt;a href=&#38;quot;&#38;lt;?php echo get_topic_link($latestpost-&#38;gt;topic_id); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php echo get_topic_title($latestpost-&#38;gt;topic_id); ?&#38;gt;&#38;lt;/a&#38;gt;:&#38;lt;br /&#38;gt;&#38;lt;br /&#38;gt;

&#38;lt;a href=&#38;quot;&#38;lt;?php user_profile_link($latestpost-&#38;gt;poster_id); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php echo get_user_name($latestpost-&#38;gt;poster_id); ?&#38;gt;&#38;lt;/a&#38;gt; said:

&#38;lt;?php echo $latestpost-&#38;gt;post_text; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>fel64 on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9594</link>
<pubDate>Mon, 30 Jul 2007 13:23:41 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">9594@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Cool. :) Can you post the entirety of the code you're using now, in case someone else will be looking through the forums for a full solution?
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9580</link>
<pubDate>Mon, 30 Jul 2007 01:41:21 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9580@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;excellent!  i got it to work with this just before i checked back for your reply:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a href=&#38;quot;&#38;lt;?php echo get_topic_link($latestpost-&#38;gt;topic_id); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php echo get_topic_title($latestpost-&#38;gt;topic_id); ?&#38;gt;&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;i think i understand it better now, thanks again! :D
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9579</link>
<pubDate>Mon, 30 Jul 2007 01:37:22 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">9579@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;That's great! Passing parameters is just giving the function some data to work with.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$latestpost-&#38;gt;topic_id&#60;/code&#62; is the topic ID. There are probably some functions like &#60;code&#62;topic_title()&#60;/code&#62; and &#60;code&#62;link_to_topic()&#60;/code&#62; or similar that you can use to get the title and link. They too will need the topic ID passed as a parameter, so if those are the actual functions it could be &#60;code&#62;topic_title( $latestpost-&#38;gt;topic_id );&#60;/code&#62; :)
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9578</link>
<pubDate>Mon, 30 Jul 2007 01:10:57 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9578@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;wait, i got this to work to display the name:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php echo get_user_name($latestpost-&#38;gt;poster_id); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and this to make it into a link to the person's profile:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a href=&#38;quot;&#38;lt;?php user_profile_link($latestpost-&#38;gt;poster_id); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php echo get_user_name($latestpost-&#38;gt;poster_id); ?&#38;gt;&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;now all i need is to display the topic title and make it a link ... i need help with this one please :)
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9577</link>
<pubDate>Mon, 30 Jul 2007 01:06:21 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9577@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;so to get the last poster's username to display, do you do something like this?&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php echo get_user_name($user_id); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;i guess i don't understand the whole passing parameters thing :/
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9570</link>
<pubDate>Sun, 29 Jul 2007 17:46:24 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">9570@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;er, nevermind me, you're doing it within bbpress...
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9568</link>
<pubDate>Sun, 29 Jul 2007 17:18:36 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">9568@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I don't know which ones you had problems with but it's worth noting that some automatically echo and some don't.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php user_profile_link(); ?&#38;gt;&#60;/code&#62;&#60;br /&#62;
 =&#60;br /&#62;
&#60;code&#62;&#38;lt;?php echo get_user_profile_link(); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;If they're &#60;code&#62;get_anything&#60;/code&#62; then you have to echo them yourself, if they don't have &#60;code&#62;get_*&#60;/code&#62; then it'll echo on its own.&#60;/p&#62;
&#60;p&#62;[Edit] Also remember most functions don't need a $user_id passed as parameter but won't work in this case unless you do pass it.
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9565</link>
<pubDate>Sun, 29 Jul 2007 16:43:14 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9565@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;yes, that worked, thank you.&#60;/p&#62;
&#60;p&#62;i'm going through the template-functions.php trying to find how to display the last poster's username and his/her profile link, as well as the link to the topic itself but the only ones i can get to work are these:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php echo $latestpost-&#38;gt;post_text; ?&#38;gt;&#60;br /&#62;
&#38;lt;?php echo $latestpost-&#38;gt;poster_id; ?&#38;gt;&#60;br /&#62;
&#38;lt;?php echo $latestpost-&#38;gt;post_time; ?&#38;gt;&#60;/p&#62;
&#60;p&#62;any suggestions? :)
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9526</link>
<pubDate>Sun, 29 Jul 2007 04:23:51 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">9526@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;You'll need to order that query by using &#60;code&#62;ORDER BY post_time DESC&#60;/code&#62;. There is no guarantee that the last row of a table is the last row that was added.
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9524</link>
<pubDate>Sun, 29 Jul 2007 03:35:25 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9524@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;ok cool, thank you.  it's doing something so that's good :)&#60;/p&#62;
&#60;p&#62;this is what i'm using:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$latestpost = $bbdb-&#38;gt;get_row(&#38;quot;
	SELECT *
	FROM $bbdb-&#38;gt;posts
	WHERE post_status = 0
	LIMIT 1
&#38;quot;);
?&#38;gt;

&#38;lt;?php echo $latestpost-&#38;gt;post_text; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;it's displaying the first post from forum 3 for some reason, not the most recent post.  i've posted a few new posts since then in other forums and it never changes on the front page, it still shows that first post from that forum 3.  any idea how come?&#60;/p&#62;
&#60;p&#62;(thanks for your help on this)
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9523</link>
<pubDate>Sun, 29 Jul 2007 03:16:12 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">9523@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Sure that's possible. :)&#60;/p&#62;
&#60;p&#62;You want a query that gives you the last post. Forget anything messing around with the forum or the topic. You want the last post, right?&#60;/p&#62;
&#60;p&#62;There's no API function to do this AFAIK, so you will have to use a query. I think the structure could go something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$latestpost = $bbdb-&#38;gt;get_row(&#38;quot;
	SELECT *
	FROM $bbdb-&#38;gt;posts
	WHERE post_status = 0
	LIMIT 1
&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And then &#60;code&#62;$latestpost&#60;/code&#62; has &#60;code&#62;$latestpost-&#38;gt;post_text, poster_id&#60;/code&#62; and so on. But unfortunately not filtered, so you'd need to apply all those. Which is a bit nasty.&#60;/p&#62;
&#60;p&#62;But this is all unchecked and unresearched, you'll need to play around with it. :P All this is is a bare start.
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page/page/2#post-9521</link>
<pubDate>Sun, 29 Jul 2007 02:33:40 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9521@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;i want to display the most recent post, no matter what forum it happens to be from.  is that possible?&#60;/p&#62;
&#60;p&#62;i tried doing what you said but maybe i messed it up because i'm getting a mysql syntax error.  here is what i have, forgive me if it looks glaringly stupid:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$forum_id = 1;
$forum_one_topics = $bbdb-&#38;gt;get_row(&#38;quot;SELECT * FROM $bbdb-&#38;gt;topics WHERE forum_id = $forum_id ORDER BY topic_time DESC &#38;quot;) ?&#38;gt;
&#38;lt;?php
$forum_one_topic_posts = get_thread( $forum_one_topics-&#38;gt;topic_id); ?&#38;gt;
Re: &#38;lt;a href=&#38;quot;&#38;lt;?php topic_link(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php topic_title(); ?&#38;gt;&#38;lt;/a&#38;gt;
&#38;lt;span class=&#38;quot;gray&#38;quot;&#38;gt;
&#38;lt;a href=&#38;quot;&#38;lt;?php get_user_profile_link( $id = 0, $page = 1 ); ?&#38;gt;&#38;quot;&#38;gt;
&#38;lt;?php echo $forum_one_topics-&#38;gt;topic_last_poster_name; ?&#38;gt;&#38;lt;/a&#38;gt; said:&#38;lt;/span&#38;gt; &#38;lt;span class=&#38;quot;justify&#38;quot;&#38;gt;&#38;lt;?php echo $forum_one_topic_posts[0]-&#38;gt;post_text;
?&#38;gt;&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;sorry, i'm really trying to get it :/
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page#post-9518</link>
<pubDate>Sat, 28 Jul 2007 21:32:18 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">9518@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#60;code&#62;$forum_one_topics&#60;/code&#62; is not an array which is why it's failing (although I'm surprised it's not).&#60;/p&#62;
&#60;p&#62;Do you actually want the 1 latest topic from forum 1? Then use &#60;code&#62;$bbdb-&#38;gt;get_row()&#60;/code&#62; instead of &#60;code&#62;get_results()&#60;/code&#62; and stop treating it as an array (basically, just take out the &#60;code&#62;foreach&#60;/code&#62; part since you don't have several, and replace &#60;code&#62;$topic&#60;/code&#62; with &#60;code&#62;$forum_one_topics&#60;/code&#62;).&#60;/p&#62;
&#60;p&#62;If you want all the topics from forum one, then take out the LIMIT 0, 1 bit from the query which as I understand it would give you only one result.&#60;/p&#62;
&#60;p&#62;Also, you have some malformed HTML just under &#60;code&#62;span gray&#60;/code&#62;.
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page#post-9516</link>
<pubDate>Sat, 28 Jul 2007 20:44:56 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9516@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;sure, here is line 13:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;foreach($forum_one_topics as $topic) :&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and here is the surrounding stuff:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;h2&#38;gt;&#38;lt;?php _e(&#38;#39;Latest Post&#38;#39;); ?&#38;gt;&#38;lt;/h2&#38;gt;

&#38;lt;?php
$forum_id = 1;
$forum_one_topics = $bbdb-&#38;gt;get_results(&#38;quot;SELECT * FROM $bbdb-&#38;gt;topics WHERE forum_id = $forum_id ORDER BY topic_time DESC LIMIT 0,1&#38;quot;) ?&#38;gt;
&#38;lt;?php
foreach($forum_one_topics as $topic) :
$forum_one_topic_posts = get_thread( $topic-&#38;gt;topic_id); ?&#38;gt;
Re: &#38;lt;a&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php topic_title(); ?&#38;gt;&#38;lt;/a&#38;gt;

&#38;lt;span class=&#38;quot;gray&#38;quot;&#38;gt;
&#38;lt;a&#38;gt;&#38;quot;&#38;gt;
&#38;lt;?php echo $topic-&#38;gt;topic_last_poster_name; ?&#38;gt;&#38;lt;/a&#38;gt; said:&#38;lt;/span&#38;gt; &#38;lt;span class=&#38;quot;justify&#38;quot;&#38;gt;&#38;lt;?php echo $forum_one_topic_posts[0]-&#38;gt;post_text;
endforeach;
?&#38;gt;&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>fel64 on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page#post-9510</link>
<pubDate>Sat, 28 Jul 2007 18:22:30 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">9510@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;What does it say at /Library/WebServer/Documents/bb-templates/superbold/front-page.php  on line 13? Also the significant surrounding lines. Would be kind of useful to know.
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page#post-9507</link>
<pubDate>Sat, 28 Jul 2007 18:18:55 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9507@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;thank you, i will try that.&#60;/p&#62;
&#60;p&#62;any idea about the &#34;invalid argument&#34; error i'm getting?
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page#post-9483</link>
<pubDate>Sat, 28 Jul 2007 12:22:31 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">9483@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#60;code&#62;$topic-&#38;gt;topic_last_poster&#60;/code&#62; is the ID of the last poster to the topic. &#60;code&#62;user_profile_link( $user_id )&#60;/code&#62; echoes the url of the user's profile. You'd do something like this I think:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;a href=&#38;quot;&#38;lt;?php user_profile_link( $topic-&#38;gt;topic_last_poster ); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php echo $topic-&#38;gt;topic_last_poster_name; ?&#38;gt;&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page#post-9462</link>
<pubDate>Sat, 28 Jul 2007 05:04:25 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9462@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;i have another question about the most recent post on the front page.  i got it working great from what was written in this post.  however, i then deleted a forum (from position 0) and once i did that, an error appeared where the text from the most recent post used to be:&#60;/p&#62;
&#60;p&#62;Warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/bb-templates/superbold/front-page.php on line 13&#60;/p&#62;
&#60;p&#62;any thoughts on how i can correct this and make it work again?
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page#post-9461</link>
<pubDate>Sat, 28 Jul 2007 04:56:36 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9461@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;i hear what you're saying but believe me, i tried my damndest to figure it out myself before i posted (as i do before all my questions).  the problem is i don't really understand the syntax of php code just yet so i don't know how to use the get_user_profile_link(); function in this particular example (getting the profile link of the last poster from the entire messageboard onto the front page, it's a little confusing).  if you can give me some help on this one, i'd appreciate it.
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page#post-9450</link>
<pubDate>Fri, 27 Jul 2007 22:06:01 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">9450@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I don't know off the top of my head. What I'd do in this case, as for pretty much every question that's asked, is open my copy of bbPress and look around in the files. So that sort of thing sounds like a template tag, so I'd look at bb-includes/template-functions.php, then search for &#34;profile_link&#34; or a couple other similar terms if I couldn't find it.&#60;/p&#62;
&#60;p&#62;This time I tested it and searching for &#34;profile_link&#34; will pretty quickly get you the function you want. But finding out what you need is something you can pretty easily do yourself most of the time. :)&#60;/p&#62;
&#60;p&#62;(Not that there's a problem with you asking anything, this is just teach-a-man-to-fish thinkin'.)
&#60;/p&#62;</description>
</item>
<item>
<title>outchy on "Full Content of Most Recent Post on Front-Page?"</title>
<link>http://bbpress.org/forums/topic/full-content-of-most-recent-post-on-front-page#post-9425</link>
<pubDate>Fri, 27 Jul 2007 12:58:01 +0000</pubDate>
<dc:creator>outchy</dc:creator>
<guid isPermaLink="false">9425@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;awesome, how would i get the poster's name to become a link to their profile?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
