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: Link album directly to intermediate page  (Read 2487 times)

0 Members and 1 Guest are viewing this topic.

ampm24

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Link album directly to intermediate page
« on: February 07, 2008, 04:29:57 pm »

I've searched and read a ton on this forum, and just need to be poined in the right direction.  I see there are mods to skip the intermediate page to go directly to a full size image, but I want to skip the main album page.  Just go directly to the intermediate page when you click on the album name or main thumbnail on the album list page.  I'm not sure if i'm explaining it right, so the page with the URL in my case that ends with /index.php?cat=10003 to go directly to the URL that ends with \displayimage.php?album=5&pos=0.  Basically just skip the page that shows all the thumbnails for photos in the album.  Any way to do this easly.  I'm guessing it's just changing a href tag somewhere right?  I'm not super keen on php.

thanx,
pete
« Last Edit: February 07, 2008, 11:08:02 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Link album directly to intermediate page
« Reply #1 on: February 07, 2008, 05:46:55 pm »

Copy the functions theme_display_album_list() and theme_display_album_list_cat() from the sample theme.php into your custom theme.php and change

Code: [Select]
'{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",

to

Code: [Select]
'{ALB_LINK_TGT}' => "displayimage.php?album={$album['aid']}&pos=0",

in both the functions.
Logged

ampm24

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Link album directly to intermediate page
« Reply #2 on: February 07, 2008, 09:54:53 pm »

Perfect.  It works like a charm.  Thank you very much.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.