coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: ncvettes on June 17, 2008, 06:40:58 AM

Title: [Solved]: Page Numbers Default
Post by: ncvettes on June 17, 2008, 06:40:58 AM
I have a gallery with several member galleries and their albums. When I go into one of the user galleries with 2 pages, it opens page 2 instead of page 1. I've cleared caches, logged on as a guest, etc., but that user gallery still has the issue in that it starts on page 2. Tnx.

v1.4.18
www.ncvettes.com
Go to the "Chris" gallery to see if it opens page 2.
Title: Re: Page Numbers Default
Post by: Nibbler on June 17, 2008, 02:24:01 PM
Try changing index.php


    if (isset($_GET['page'])) {
        $PAGE = max((int)$_GET['page'], 1);
        $USER['lap'] = $PAGE;
    } elseif (isset($USER['lap'])) {
        $PAGE = max((int)$USER['lap'], 1);
    } else {
        $PAGE = 1;
    }


to


    if (isset($_GET['page'])) {
        $PAGE = max((int)$_GET['page'], 1);
    } else {
        $PAGE = 1;
    }
Title: Re: Page Numbers Default
Post by: ncvettes on June 17, 2008, 02:56:00 PM
That worked.  ;D

Thanks!!