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: Show newest albums  (Read 4835 times)

0 Members and 1 Guest are viewing this topic.

JorgoB

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Show newest albums
« 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?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Show newest albums
« Reply #1 on: February 11, 2005, 09:19:11 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'.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Show newest albums
« Reply #2 on: February 11, 2005, 10:01:35 am »

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

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Show newest albums
« Reply #3 on: February 11, 2005, 10:06:17 am »

Logged

JorgoB

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Show newest albums
« Reply #4 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"
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Show newest albums
« Reply #5 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.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Show newest albums
« Reply #6 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;

Code: [Select]
<a href="{LASTUP_TGT}">{LASTUP_LNK}</a> ::
Add in new line;

Code: [Select]
<a href="{LASTALB_TGT}">{LASTALB_LNK}</a> ::



Find;

Code: [Select]
'{LASTUP_TGT}' => "thumbnails.php?album=lastup$cat_l2",
Add in new lines, after it;

Code: [Select]
'{LASTALB_TGT}' => "thumbnails.php?album=lastalb$cat_l2",
        '{LASTALB_LNK}' => $lang_main_menu['lastalb_lnk'],
Logged
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
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.