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: Auto scroll to image.  (Read 3539 times)

0 Members and 1 Guest are viewing this topic.

Squally

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Auto scroll to image.
« 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.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Auto scroll to image.
« Reply #1 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().

Code: [Select]
'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",
Logged
Chief Geek at Ranium Systems
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.