Customize Front Page…
-
I’m trying to combine some of the functions in the “Latest Discussions” table with the main “Forums” table. I’d like to include the “Latest Poster” and “Freshness” to my forums section. So far, I’ve successfully displayed these items within the table, but they’re not showing the appropriate data. Instead, I’m getting only the most recent poster and freshness displayed for every forum. This should help clarify:
www (dot) eco-wheelz (dot) com/forum
This is the code:
<table id="forumlist">
<tr>
<th><?php _e(‘Main Categories’); ?></th>
<th><?php _e(‘Topics’); ?></th>
<th><?php _e(‘Posts’); ?></th>
<th><?php _e(‘Last Poster’); ?></th>
<th><?php _e(‘Freshness’); ?></th>
</tr>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<?php while ( bb_forum() ) : ?>
<tr<?php bb_forum_class(); ?><?php topic_class(); ?>>
<td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><b><font color=”#339900”><?php forum_name(); ?></font></b><small><?php forum_description(); ?></small><?php bb_forum_pad( ‘</div>’ ); ?></td>
<td class=”num”><?php forum_topics(); ?></td>
<td class=”num”><?php forum_posts(); ?></td>
<td class=”num”><?php topic_last_poster(); ?></td>
<td class=”num”>“>
<?php topic_time(); ?></td>
</tr>
<?php endwhile; ?>
<?php endforeach; endif; // $topics ?>
</table>
THANKS FOR YOUR HELP!
- You must be logged in to reply to this topic.