Auto scroll to image for cpg1.4.x Auto scroll to image for cpg1.4.x
 

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]

Main Menu

Auto scroll to image for cpg1.4.x

Started by Jr. tristan, August 20, 2006, 12:24:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jr. tristan

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.

Tranz

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

benj_gos

Perfect :)
Exactly what i was looking for as well! thanks for the help.