Show newest albums Show newest albums
 

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]

Main Menu

Show newest albums

Started by JorgoB, February 11, 2005, 09:09:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JorgoB

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?

Casper

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'.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JorgoB

Thanks for your fast reply, but where have I to change it? I´m a newbie.


JorgoB

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"

Tranz

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.

Casper

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'],
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here