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: Only one row "lastup" when not on main page  (Read 2507 times)

0 Members and 1 Guest are viewing this topic.

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Only one row "lastup" when not on main page
« on: October 29, 2011, 05:16:50 pm »

I want only one row "lastup" when not on main page.

On the main page I have two rows last addition.
I want only one row when you go into a category.

I was thinking about this code in the index.php:

case 'lastup':
                       if ($cat == 0) {
                           display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                           flush();
                        }
                        break;

I could add an ELSE statement.
But how do I override the Lastup,2 in the config into Lastup,1 ?

Edward
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Only one row "lastup" when not on main page
« Reply #1 on: October 29, 2011, 07:44:39 pm »

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Only one row "lastup" when not on main page
« Reply #2 on: October 29, 2011, 07:58:56 pm »

Wow..

Works great, thanks.

Edward
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.