Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Go to center page <a name="center"></a>  (Read 4978 times)

0 Members and 1 Guest are viewing this topic.

zina

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Go to center page <a name="center"></a>
« on: November 14, 2005, 05:18:24 pm »

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
Logged

Nibbler

  • Guest
Re: Go to center page <a name="center"></a>
« Reply #1 on: November 14, 2005, 05:43:09 pm »

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

zina

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Go to center page <a name="center"></a>
« Reply #2 on: November 14, 2005, 06:55:46 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 ? ::)

Code: [Select]
    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 = "";
    }
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Go to center page <a name="center"></a>
« Reply #3 on: November 14, 2005, 08:05:27 pm »

erm, what's the actual question ::)?
Logged

zina

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Go to center page <a name="center"></a>
« Reply #4 on: November 14, 2005, 09:44:09 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Go to center page <a name="center"></a>
« Reply #5 on: November 14, 2005, 11:26:12 pm »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.