News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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 1 Guest 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.