Make a block with this code:
<?
begin_block("Last Comments");
$res = mysql_query("SELECT * FROM torrents ORDER BY added DESC LIMIT 10") or die(mysql_error()); //Change the 10 to the number of torrents you want to display.
$arr = mysql_fetch_array($res);
while ($arr = mysql_fetch_assoc($res))
{
//////Cut Name///////////////
$char1 = 20; //cut name length change to the number of chars you want to display
$smallname = CutName(htmlspecialchars($arr["name"]), $char1);
$dispname = "<b>".$smallname."</b>";
////////////////////////////
$torid = $arr['id'];
$tornname = $arr['name'];
$visites = $arr['hits'];
$q = mysql_query("SELECT COUNT(*) FROM comments WHERE torrent=$torid") or die(mysql_error());
$r = mysql_fetch_row($q);
$numcomments = $r[0];
?>
<table width="100%" border="0">
<tr>
<td><div align="center"><b><?=$dispname?></b></div></td>
</tr>
<tr>
<td><div align="center"><font color="#009900">[Comments: <? echo "<a href=torrents-details.php?id=$torid&hit=1>$numcomments</a>";?>]</font></div></td>
</tr>
<tr>
<td><div align="center"><font color="#FF0000">[Hits: <?=$visites?>]</font></div></td>
</tr>
</table>
<?
}
end_block();
?>
