coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: JorgoB on February 11, 2005, 09:09:23 AM

Title: Show newest albums
Post by: JorgoB on February 11, 2005, 09:09:23 AM
Is there a way to show the last (10 or 12) albums instead of all the thumbnails (last uploads)?
Sorry, if there is already an answer for my question in this board, but I didn´t find it. Can anybody help?
Title: Re: Show newest albums
Post by: Casper on February 11, 2005, 09:19:11 AM
Quote from: JorgoB on February 11, 2005, 09:09:23 AM
Is there a way to show the last (10 or 12) albums instead of all the thumbnails (last uploads)?
Sorry, if there is already an answer for my question in this board, but I didn´t find it. Can anybody help?

yep, replace 'lastup,2' with 'lastalb,3'.
Title: Re: Show newest albums
Post by: JorgoB on February 11, 2005, 10:01:35 AM
Thanks for your fast reply, but where have I to change it? I´m a newbie.
Title: Re: Show newest albums
Post by: Tranz on February 11, 2005, 10:06:17 AM
http://coppermine.sourceforge.net/faq.php#NoLastUploads
Title: Re: Show newest albums
Post by: JorgoB on February 11, 2005, 10:50:39 AM
That´s not what i mean. I don´t want to show the last albums on the index, I want them to show in the same way if I click the button "Last Upload"
Title: Re: Show newest albums
Post by: Tranz on February 11, 2005, 10:57:34 AM
The link I posted gives instructions for it all. The question is just an example.

If you mean something else, please post a link to your gallery and point out specifics.
Title: Re: Show newest albums
Post by: Casper on February 11, 2005, 11:57:04 AM
So you want a link in the menu.

This is based on the classic theme, you may have to adjust to give the correct formatting for other themes.

Open theme.php, and find;

<a href="{LASTUP_TGT}">{LASTUP_LNK}</a> ::

Add in new line;

<a href="{LASTALB_TGT}">{LASTALB_LNK}</a> ::




Find;

'{LASTUP_TGT}' => "thumbnails.php?album=lastup$cat_l2",

Add in new lines, after it;

'{LASTALB_TGT}' => "thumbnails.php?album=lastalb$cat_l2",
        '{LASTALB_LNK}' => $lang_main_menu['lastalb_lnk'],