2
There is a simple and quick way to do this. Just edit the xoops_version.php file as follows:
Search for:
$modversion['blocks'][3]['file'] = "newbb_block.php";
$modversion['blocks'][3]['name'] = _MI_NEWBB_BNAME3;
$modversion['blocks'][3]['description'] = "Shows most active topics in the forums";
$modversion['blocks'][3]['show_func'] = "b_newbb_show";
$modversion['blocks'][3]['options'] = "10|0|replies|0";
$modversion['blocks'][3]['edit_func'] = "b_newbb_edit";
$modversion['blocks'][3]['template'] = 'newbb_block.html';
And add:
$modversion['blocks'][4]['file'] = "newbb_block.php";
$modversion['blocks'][4]['name'] = _MI_NEWBB_BNAME3;
$modversion['blocks'][4]['description'] = "Shows most active topics in the forums";
$modversion['blocks'][4]['show_func'] = "b_newbb_show";
$modversion['blocks'][4]['options'] = "10|0|replies|0";
$modversion['blocks'][4]['edit_func'] = "b_newbb_edit";
$modversion['blocks'][4]['template'] = 'newbb_block.html';
Save the file and update the module in the system admin. You'll see that a new block is available. You can add as many blocks as you like...
All the best,
Bob
P.S.
This is for the most recent topic, didn't see that you needed the most viewed. To do that replace line 5 with:
$modversion['blocks'][4]['options'] = "10|0|views|0";
That should do!