Hi!
search in your Templates/home.html "{whos_online}" and insert above ,or where ever you want:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="head1" valign="top">{lang_new_images}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="head1">{last_upload}</td>
</tr>
</table>
<br />
search in index.php:
//-----------------------------------------------------
//--- Print Out ---------------------------------------
insert above:
//###################################### End Mod Last Upload #################################################
$last_upload_num ="100"; // number e.g. 1,2,3,10,15,20,50,100,500... e.t.c
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."
FROM (".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")
ORDER BY i.image_date DESC
LIMIT $last_upload_num";
$result = $site_db->query($sql);
$last_upload = "<table style=\"width:".$config['image_table_width']."; border-style:none;\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"summary=\"new thumbs\">";
$last_upload .= "<tr class=\"imagerow2\">\n";
$last_upload .= "<td class=\"head\"style=\"width:5%;text-align:center; \"><b>Nr.:</b></td>\n";
$last_upload .= "<td class=\"head\"><b>".$lang['image_name']."</b></td>\n";
$last_upload .= "</tr>\n";
$count = 0;
$bgcounter = 0;
$rank = 1;
while ($image_row2 = $site_db->fetch_array($result)){
$row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
$last_upload .= "<tr class=\"imagerow".$row_bg_number."\">\n";
$last_upload .= "<td style=\"width:5%;text-align:center; \">".$rank++."</td>\n";
$last_upload .= "<td><a href=\"".$script_url."/".THUMB_DIR."/".$image_row2['cat_id']."/".$image_row2['image_media_file']."\">".$script_url."/".THUMB_DIR."/".$image_row2['cat_id']."/".$image_row2['image_media_file']."</a></td>\n";
$count++;
if ($count == $comments_num) {
$last_upload .= "</tr>\n";
$count = 0;
}
} // end while
if ($count > 0) {
$leftover = ($comments_num - $count);
if ($leftover >= 1) {
for ($f = 0; $f < $leftover; $f++) {
$last_upload .= "<td style=\"width:".$imgtable_width."\">\n \n</td>\n";
}
$last_upload .= "</tr>\n";
}
}
$last_upload .= "</table>\n";
$site_template->register_vars("last_upload", $last_upload);
unset($last_upload);
//###################################### End Last Upload #################################################
i hope this is what you want...
mfg Andi