Album not starting on page 1 always Album not starting on page 1 always
 

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

Album not starting on page 1 always

Started by sactojay, February 19, 2006, 11:16:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sactojay

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/


casNuy

You can change the lay-out of the initial page of Coppermine such thta this not happens. Is not a feature of pnCPG.

Cas

sactojay

You mean by adding more albums to the page? Thats not what i want. I have 145 albums.

casNuy

Have you tried to use this setting for the main page :
Quotebreadcrumb/catlist/alblist/random,2/lastup,2

Cas

sactojay

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.

Nibbler

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;
    }

sactojay