bbPress

Simple, fast, elegant

bbPress Plugin Browser »

Mini Track (0.1.6)

  • Install mini-track.php to my-plugins/ and activate

  • Edit options (true / false) at the top of the plugin until an admin menu is made

  • This plugin now inserts itself into the footer automatically, no template edits required unless you want custom placement.

  • ONLY if you want CUSTOM placement, edit your footer.php template (or other template) to add the info like so:

    <div id="footer">
        <?php mini_track(1);  // who's online now ?>
        <?php mini_track_today(1);  // who's been online today ?>
        <?php mini_track_statistics(2);  // general statistics ?>
        <p><?php printf(__('%1$s is proudly powered by <a href="%2$s">bbPress</a>.'), bb_option('name'), "http://bbpress.org") ?></p>
    </div>
    

In the above example the (1) indicates don't show extended info, ie. usernames. (2) would also show usernames.

  • With non-automatic placement, if you also want a list of the member names, use <?php mini_track(2); ?> or if you only want it on the front page you can do it like this: <?php if (is_front() ) {mini_track(1);} ?> or you can put it anywhere in front-page.php that you'd like.

  • Mini-Track can now show some basic statistics in your footer, or with manual placement anywhere on the page via <?php mini_track_statistics(); ?>

  • it is highly recommend you put this line in your bb-config.php which will help with database performance on active forums by loading all bbPress options at once instead of piecemeal

    $bb->load_options = true;

Code is Poetry.