coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: ralfs on February 06, 2006, 12:22:27 PM

Title: Prevent lastalb in deeper levels ?
Post by: ralfs 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
Title: Re: Prevent lastalb in deeper levels ?
Post by: Nibbler on February 06, 2006, 02:37:30 PM
That would be easy, yes. Open your index.php with a text editor, locate the code


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


and change to


                    case 'lastalb':
                        if (!$cat) display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        break;
Title: Re: Prevent lastalb in deeper levels ?
Post by: ralfs 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