coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: Squally on January 11, 2005, 08:32:28 PM

Title: Auto scroll to image.
Post by: Squally on January 11, 2005, 08:32:28 PM
I've been working on it so that when you click on a thumbnail, if the displayimage page is long enough to require a scrollbar, it would automatically scroll to the top of the image. That way it helps people with smaller resolutions skip past the top of the page and have the image at the top. I edited the displayimage.php file to put in a name anchor, but can't find where to put the target link in the thumbnails page or wherever you find the code for the links to the fullsize image.
Title: Re: Auto scroll to image.
Post by: Abbas Ali on January 12, 2005, 07:59:33 AM
You will find the code which create links for thumbnails in theme.php file of the current theme.

The target links for thumbnails are created in the function theme_display_thumbnails() and target links for filmstrip thumbnails are created in the function theme_display_film_strip().

'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",