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: Only one row "lastup" when not on main page  (Read 2470 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: 1543
  • 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.017 seconds with 19 queries.