So, here will be a dirty code which you may add to the bb_plugins.php file:
/* Advanced latest discussions */
if ($viewlastdiscussions!=0 and $action=='advld') {
$viewlastdiscussions=100;
if($row=db_simpleSelect(0,$Tf,'forum_id, forum_icon')){
do{
$fIcon[$row[0]]=$row[1];
}
while($row=db_simpleSelect(1));
}
$action='';
require($pathToFiles.'bb_func_ldisc.php');
$listTopics=$list_topics;
echo load_header();
if($list_topics!='') echo ParseTpl(makeUp('main_last_discussions'));
$action='advld';
}
/* --Advanced latest discussions */