Upgadring to 1.4.5 kills Photo of the Day / Week hack Upgadring to 1.4.5 kills Photo of the Day / Week hack
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Upgadring to 1.4.5 kills Photo of the Day / Week hack

Started by Gizmo, April 23, 2006, 04:24:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gizmo

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), 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
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

leotan