forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: ampm24 on February 07, 2008, 04:29:57 pm

Title: Link album directly to intermediate page
Post by: ampm24 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
Title: Re: Link album directly to intermediate page
Post by: Nibbler 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.
Title: Re: Link album directly to intermediate page
Post by: ampm24 on February 07, 2008, 09:54:53 pm
Perfect.  It works like a charm.  Thank you very much.