Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Full Content of Most Recent Post on Front-Page?


outchy
Member

@outchy

sure, here is line 13:

foreach($forum_one_topics as $topic) :

and here is the surrounding stuff:

<h2><?php _e('Latest Post'); ?></h2>

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

<span class="gray">
<a>">
<?php echo $topic->topic_last_poster_name; ?></a> said:</span> <span class="justify"><?php echo $forum_one_topic_posts[0]->post_text;
endforeach;
?></span>

Skip to toolbar