coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Jr. tristan on August 20, 2006, 12:24:35 PM

Title: Auto scroll to image for cpg1.4.x
Post by: Jr. tristan 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.
Title: Re: Auto scroll to image for cpg1.4.x
Post by: Tranz 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
<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
Title: Re: Auto scroll to image for cpg1.4.x
Post by: benj_gos on November 14, 2006, 05:05:35 PM
Perfect :)
Exactly what i was looking for as well! thanks for the help.