Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Album not starting on page 1 always  (Read 7174 times)

0 Members and 1 Guest are viewing this topic.

sactojay

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Album not starting on page 1 always
« 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/

« Last Edit: February 24, 2006, 06:49:55 pm by GauGau »
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Album not starting on page 1 always
« Reply #1 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
Logged

sactojay

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Album not starting on page 1 always
« Reply #2 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.
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Album not starting on page 1 always
« Reply #3 on: February 23, 2006, 11:59:33 pm »

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

Cas
Logged

sactojay

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Album not starting on page 1 always
« Reply #4 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.
Logged

Nibbler

  • Guest
Re: Album not starting on page 1 always
« Reply #5 on: February 24, 2006, 01:03:33 am »

Should be here in index.php

Code: [Select]
    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

Code: [Select]
    if (isset($_GET['page'])) {
        $PAGE = max((int)$_GET['page'], 1);
    } else {
        $PAGE = 1;
    }
Logged

sactojay

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Album not starting on page 1 always
« Reply #6 on: February 24, 2006, 06:18:00 am »

now thats an answer! Thank you :)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.