Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Separating the first post of each topic


Ben L.
Member

@nightgunner5

Untested code below:

<?php $bb_post = $posts[0]; unset($posts[0]);   $del_class = post_del_class();?>
<div id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
<?php bb_post_template(); ?>
</div>
<h6>Responses</h6>
<ol id="thread" start="<?php echo $list_start; ?>">
<?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
<?php bb_post_template(); ?>
</li>
<?php endforeach; ?>
</ol>

Skip to toolbar