Link album directly to intermediate page Link album directly to intermediate page
 

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

Link album directly to intermediate page

Started by ampm24, February 07, 2008, 04:29:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ampm24

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

Nibbler

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


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


to


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


in both the functions.

ampm24

Perfect.  It works like a charm.  Thank you very much.