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: always on the top of the page  (Read 6378 times)

0 Members and 1 Guest are viewing this topic.

anthropographia

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
always on the top of the page
« on: March 19, 2007, 09:56:21 pm »

Every time I look at a new pict. the page reload to the top of the page.
Is there any possibility to stop that move in order to keep the web page always in the same position so we don't need every time to go down manualy.

Thank's

Mat.
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: always on the top of the page
« Reply #1 on: March 20, 2007, 08:44:09 pm »

Simply remove the java code from pnuser.php.

Cas
Logged

anthropographia

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: always on the top of the page
« Reply #2 on: March 20, 2007, 10:38:19 pm »

sorry but i cannot find the pnuser.php in my coppermine folder

can you give me some more informations...

thank's
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: always on the top of the page
« Reply #3 on: March 21, 2007, 09:04:45 am »

Simply remove the java code from pnuser.php.
It's JavaScript afaik. Java and JavaScript are two entirely different animals.
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: always on the top of the page
« Reply #4 on: March 24, 2007, 11:36:24 am »

True, it is the javascript.
In pnuser.php replace
Code: [Select]
echo "<iframe onload='iFrameHeight()' id='blockrandom' name='pnCPG'";
echo "  src='$url' width='100%' height='400' scrolling='auto' align='top' frameborder='0'>";
echo "</iframe>";
with
Code: [Select]
echo "<iframe src='$url' align='center' width='100%' height='800px' space=0 vspace=0 marginwidth=0 marginheight=0 frameborder=0 scrolling=auto name='pnCPG' onload='parent.scrollTo(0,0);' ></iframe>";
or with
Code: [Select]
echo "<iframe src='$url' align='center' width='100%' height='800px' space=0 vspace=0 marginwidth=0 marginheight=0 frameborder=0 scrolling=auto name='pnCPG'  ></iframe>";

Cas
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.