Hi Every one this MOD was here before the hack attack but then disapear so I'm going to re-post it
I not the one who made this MOD so don't ask me for Support.
Files to edit:includes/
page_header.phptemplates/<your templates>/
home.html Step 1 If you have The MOD Memberlist you don't need to do this step. Add a new field in the database called user_t_images [Propieties:
Type: smallint; Lenght: 6; Null: not null; Default: 0. (from my phpAdmin)]
Or you can use the table update from the MOD Memberlist.
Step 2In includes/
page_header.phpFind:
?>
Add before:
$last_action_user_list = "";
$sql = "SELECT user_t_images, user_name, user_id FROM ".USERS_TABLE."
WHERE user_level >= '".USER."'
ORDER BY user_t_images 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_t_images'].'</span><br>';
}
$site_template->register_vars(array(
"user_uploaders_list" => $last_action_user_list,
));
unset($user_uploaders_list);
Step 3:
In templates/<your templates>/
home.html:
Add this:
<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 Usuarios</b></td>
</tr>
<tr>
<td class="row1">{user_uploaders_list}<br></td>
</tr>
</table>
If u want to change from top 25 uploader to top 10 uploader just change this
LIMIT 25";
to this
LIMIT 10";