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: Prevent lastalb in deeper levels ?  (Read 2415 times)

0 Members and 1 Guest are viewing this topic.

ralfs

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Prevent lastalb in deeper levels ?
« on: February 06, 2006, 12:22:27 pm »

Hi again,

I included lastalb in my main page. It looks really fine and is a good feature for the users to see directly what has changed.
In deeper levels this information is no more really helpful, it makes less sense the deeper the levels go, and I would like to remove it.

Is that possible to have the last albums only on the main page ? Would that be easy to change and if yes, how ?

Best regards,

Ralf
« Last Edit: February 06, 2006, 04:20:30 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Prevent lastalb in deeper levels ?
« Reply #1 on: February 06, 2006, 02:37:30 pm »

That would be easy, yes. Open your index.php with a text editor, locate the code

Code: [Select]
                    case 'lastalb':
                        display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        break;

and change to

Code: [Select]
                    case 'lastalb':
                        if (!$cat) display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        break;
Logged

ralfs

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Re: Prevent lastalb in deeper levels ?
« Reply #2 on: February 06, 2006, 03:59:52 pm »

Hi Nibbler,

Thanks a lot - all of you are so good, really exciting!

Could you please mark it 'Solved'?

Ralf
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.