bbPress Plugin Browser »

Forum Last Poster (0.0.6)

  • Install forum-last-posters.php to my-plugins/ and activate

  • Edit your front-page.php and/or forum.php templates to add FRESHNESS column in the forum list like so:

<table id="forumlist">

<tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
</tr>

<?php while ( bb_forum() ) : ?>
<tr<?php bb_forum_class(); ?>>
    <td class="num"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_time(); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
</tr>

(Notice the new Freshness and forum_time() lines, compared to the default template)

  • You may also use any of the other topic-like functions in any combination, see the FAQ for the list.

  • You may specify a specifc forum by id if using a custom query/template, ie. forum_time(3) - otherwise it will automatically figure out the current forum id from the forum loop