As per admin suggestion, here goes the modification in more legible format:
In your installation directory, open the file
index.php and try locating the following code somewhere under
// Main code:
case 'toprated':
display_thumbnails('toprated', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
flush();
break;
case 'lastcom':
display_thumbnails('lastcom', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
flush();
break;
Now, in between any two
break; and a new
case 'something', take 'lastcom' for example, insert the following code:
case 'lastimagefs':
$pic_data = get_pic_data('lastup', $thumb_count, $album_name, -1, 1);
$pic_url = get_pic_url($pic_data[0], 'fullsize');
theme_display_lastimage($pic_url);
flush();
break;
I hope you got the pattern ...
Then open up
include/themes.inc.php and add the following code at the bottom:
if (!function_exists('theme_display_lastimage')) { //{THEMES}
function theme_display_lastimage($picurl)
{
starttable('100%', "Last uploaded image");
echo "<tr><td align=\"center\"><img src=\"$prefix" . "$picurl\" class=\"image\" border=\"0\" alt=\"\"></td></tr>";
endtable();
}
} //{THEMES}
Now the groundwork is ready, get to your gallery in admin mode, go to "Config > Album List view". In the box "The content of the main page", there should be some / separated values. Insert
lastimagefs wherever you want the last uploaded image to appear in full-size.
An example can be seen in my gallery at
http://www.employees.org/~kousik/photography/Thanks,
Kousik