If you are using Casper's Photo of the Day / Week hack (http://forum.coppermine-gallery.net/index.php?topic=14600.0) and you find it stops working after applying the 1.4.5 fix (partial upgrade only... see http://forum.coppermine-gallery.net/index.php?topic=30655.0 (http://forum.coppermine-gallery.net/index.php?topic=30655.0)), you should check the index.php file to see if contains the following code. If not, go back and put it back in since this is the only file that needs to be hacked. Yes... instead of downloading the file that's on the server and fixing it, I spent an hour looking for the problem until I realized I uploaded an unhacked index.php. :P
Find:
case 'lasthits':
display_thumbnails('lasthits', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
flush();
break;
Add after (if not already there):
case 'potd':
if ($cat == 0) {
include('potd.php');
}
flush();
break;
case 'potw':
if ($cat == 0) {
include('potw.php');
}
flush();
break;
Cheers,
Billy
Thanks.. this helps alot. :P