Go to center page <a name="center"></a> Go to center page <a name="center"></a>
 

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

Go to center page <a name="center"></a>

Started by zina, November 14, 2005, 05:18:24 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

zina

Dear members,

I have this link in my template
<a name="center"></a>

i want evrey page of coppermine to go to that spot, how can i do this

thanks

Zina

Nibbler

You'd need to modify every link in Coppermine to have #center at the end.

zina

Quote from: Nibbler on November 14, 2005, 05:43:09 PM
You'd need to modify every link in Coppermine to have #center at the end.

oke i changed displayimage.php now it only works for 2 times and then it stops
(i named the spot , <a name="content"> </a> )
can some one help me a little ? ::)

    if ($pos > 0) {
        $prev = $pos - 1;
        $prev_tgt = "$PHP_SELF$content?album=$album$cat_link&pos=$prev#content";
        $prev_title = $lang_img_nav_bar['prev_title'];
    } else {
        $prev_tgt = "javascript:;";
        $prev_title = "";
    }
    if ($pos < ($pic_count -1)) {
        $next = $pos + 1;
        $next_tgt = "$PHP_SELF$content?album=$album$cat_link&pos=$next#content";
        $next_title = $lang_img_nav_bar['next_title'];
    } else {
        $next_tgt = "javascript:;";
        $next_title = "";
    }


Joachim Müller


zina

Quote from: GauGau on November 14, 2005, 08:05:27 PM
erm, what's the actual question ::)?
well to have evrey page go to te place i  so you dont have to scroll evrey time, so i thought lets start with the displayimage.php page.

Joachim Müller

as Nibbler suggested: you'll have to go through all of the coppermine code and add the anchor. A very big task if you ask me. Another option would be to implement a bit of JavaScript that is run onload and that scrolls down to the anchor.