Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Show newest albums  (Read 4856 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.02 seconds with 19 queries.