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 for cpg1.4.x  (Read 3417 times)

0 Members and 1 Guest are viewing this topic.

Jr. tristan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Auto scroll to image for cpg1.4.x
« on: August 20, 2006, 12:24:35 pm »

I have found so many posts about auto scroll to image after pressing the next button.
But I have found none (or I have missed??) of scripts for cpg1.4.x

I want to put an anchor right at the image tool bar / directory bar.
Grateful if anyone could provide such codes/scripts for us. Please help.
« Last Edit: November 14, 2006, 05:40:13 pm by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Auto scroll to image for cpg1.4.x
« Reply #1 on: August 21, 2006, 08:48:52 am »

In your theme's theme.php, edit the following. If you don't have the blocks, copy from sample/theme.php and paste into your theme.php file.

Add the following somewhere in the html for $template_img_navbar
Code: [Select]
<a name="top_display_media"></a>
In function theme_html_img_nav_menu append #top_display_media to the end of the links variables. It looks like they're $next_tgt and $prev_tgt
Logged

benj_gos

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 32
    • My Myspace Page
Re: Auto scroll to image for cpg1.4.x
« Reply #2 on: November 14, 2006, 05:05:35 pm »

Perfect :)
Exactly what i was looking for as well! thanks for the help.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.