coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: sactojay on February 19, 2006, 11:16:22 PM

Title: Album not starting on page 1 always
Post by: sactojay on February 19, 2006, 11:16:22 PM
I'm using post nuke and coppermine gallery and all my albums are in the root. this is the setup. breadcrumb/alblist/catlist/

Now i'm having a problem with users not being directed to the first page of the gallery. What is happening is it takes them to the last gallery they viewed. I upload albums on a daily basis, so if they dont go to the site in like, 3-4 days, then they end up going to page 2 instead of page 1 because i've added 10 or so albums. Does that make sense? So they see page 2 thinking the gallery hasnt been updated, when they need to click on page 1. Is there a way to force page 1 to load when they visit? I'm getting many complaints from different people about that. They dont realize its starting them on the last album they viewed which may be on page 2 or 3.
Any help would be appreciated.

http://www.916online.com/

Title: Re: Album not starting on page 1 always
Post by: casNuy on February 22, 2006, 08:25:52 PM
You can change the lay-out of the initial page of Coppermine such thta this not happens. Is not a feature of pnCPG.

Cas
Title: Re: Album not starting on page 1 always
Post by: sactojay on February 22, 2006, 11:58:25 PM
You mean by adding more albums to the page? Thats not what i want. I have 145 albums.
Title: Re: Album not starting on page 1 always
Post by: casNuy on February 23, 2006, 11:59:33 PM
Have you tried to use this setting for the main page :
Quotebreadcrumb/catlist/alblist/random,2/lastup,2

Cas
Title: Re: Album not starting on page 1 always
Post by: sactojay on February 24, 2006, 12:46:28 AM
yeah i dont want those. This still doesnt answer my question. Force Page one to load, not the page stored in the cookie that was last viewed.
Title: Re: Album not starting on page 1 always
Post by: Nibbler on February 24, 2006, 01:03:33 AM
Should be here in 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;
    }


Tell it not to look at the cookie


    if (isset($_GET['page'])) {
        $PAGE = max((int)$_GET['page'], 1);
    } else {
        $PAGE = 1;
    }
Title: Re: Album not starting on page 1 always
Post by: sactojay on February 24, 2006, 06:18:00 AM
now thats an answer! Thank you :)