Advanced search  

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

Pages: [1]   Go Down

Author Topic: Auto scroll to image for cpg1.4.x  (Read 3684 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.014 seconds with 19 queries.