ok... here we go!
In includes/page_header.php
find
?>
Add before:
$sql = "SELECT user_comments, user_name, user_id FROM ".USERS_TABLE."
WHERE user_level >= '".USER."'
ORDER BY user_comments DESC
LIMIT 25";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$last_action_user_list .= '<a href ="'.ROOT_PATH.'member.php?action=showprofile&user_id='.$row['user_id'].'"><b>'.$row['user_name'].'</b></a> <span class="smalltext">'.$row['user_comments'].'</span><br>';
}
$site_template->register_vars(array(
"user_comments_list" => $last_action_user_list,
));
unset($user_comments_list);
insert in templates/<your templates>/home.html
<table border="0" cellspacing="1" cellpadding="1" background="{template_url}/images/cat.gif" width="100%">
<tr>
<td height="20" background="{template_url}/images/back1.gif">
<b>Top 25 commenter </b></td>
</tr>
<tr>
<td class="row1">{user_comments_list}</td>
</tr>
</table>
design is your part..
If u want to change from top 25 commenter to top 10 commenter just change this in page_header.php
LIMIT 25";
to
LIMIT 10";