Most Comments Plugin

18th Jul 2006 Danny
Introduction

Introduction

This plugin creates a section in your blog sidebar that lists the most commented posts on your blog. It's an easy way to keep track of your most popular/controversial posts. It may even lead to those posts getting more comments.

Installation (v1.8)

Installation

Requires b2evolution 1.8 or later

  1. Download this file: _mostcomments.plugin.php.
  2. Upload it to your b2evolution plugins folder.
  3. In the backoffice, go to Settings > Plugins and find MostComments in the list. Click "install".
  4. Add this bit of code in your skin where you want the list to appear:
    <?php
            // MostComments plugin:
            $Plugins->call_by_code( 'mostCmts', array(
                          'limit'=>5,
                          'list_start'=>'<ol>',
                          'list_end'=>'</ol>'
                          ) );
                          // Add parameters in the array.
    ?>
    You can edit the limit value to make it show more or less in the list. If you want an unordered list instead of an ordered one, then you can change those tags, too.
 
 
 
 
 

Recent Comments

     
     

    Archives