Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: Page Numbers Default  (Read 2714 times)

0 Members and 1 Guest are viewing this topic.

ncvettes

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
  • CPM 1.4.18
    • Carolina Corvettes
[Solved]: Page Numbers Default
« 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.
« Last Edit: June 17, 2008, 03:06:06 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Page Numbers Default
« Reply #1 on: June 17, 2008, 02:24:01 pm »

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

to

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

ncvettes

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
  • CPM 1.4.18
    • Carolina Corvettes
Re: Page Numbers Default
« Reply #2 on: June 17, 2008, 02:56:00 pm »

That worked.  ;D

Thanks!!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.