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

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

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.