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
- Download this file: _mostcomments.plugin.php.
- Upload it to your b2evolution plugins folder.
- In the backoffice, go to Settings > Plugins and find MostComments in the list. Click "install".
- 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