How to define position of browser How to define position of browser
 

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

How to define position of browser

Started by joydealer, November 05, 2005, 12:50:04 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

joydealer

Hello,
i already tried to find such a topic, but did not discovered something like that.

My Problem is that when you click every single picture further, the browser always starts at the top of the Coppermine Gallery.
For Example: If i click refresh in the SMF Forum, the browser stays at the same position as before. But if you refresh in the Coppermine Gallery, the browser gets up to the top.
How can i change this?

Sorry, i'm german, so my english is not the best. ;)

Joachim Müller

you'll have to define anchors in your theme like this <a name="foo_bar"></a> and change the navigation links to match your anchors. Search the board for the term "anchor" for details.

joydealer

Thank you for your reply.
I read this thread: http://forum.coppermine-gallery.net/index.php?topic=9181.0
and followed the instructions. It works!
But where do i have to put the anchor, so that it starts at the small navigationbar?

I tested to put $pic_html = '<a name="picture" id="picture" />'; to another place where i thought it would be right, but nothing changed.

Joachim Müller

edit themes/yourtheme/theme.php, find// HTML template for the image navigation bar
$template_img_navbar = <<<EOT
and add the anchor beneath that line

joydealer

Thanks! This works great!
But now it displays over the navigationbar this 3 signs: = '';

Joachim Müller

I'm not able to replicate - must be a leftover edit you made in the wrong place. Impossible to say where exactly without having access to your files. Undo your modifications and try once again.