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

always on the top of the page

Started by anthropographia, March 19, 2007, 09:56:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

anthropographia

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.

casNuy

Simply remove the java code from pnuser.php.

Cas

anthropographia

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

can you give me some more informations...

thank's

Joachim Müller

Quote from: casNuy on March 20, 2007, 08:44:09 PM
Simply remove the java code from pnuser.php.
It's JavaScript afaik. Java and JavaScript are two entirely different animals.

casNuy

True, it is the javascript.
In pnuser.php replace

echo "<iframe onload='iFrameHeight()' id='blockrandom' name='pnCPG'";
echo "  src='$url' width='100%' height='400' scrolling='auto' align='top' frameborder='0'>";
echo "</iframe>";

with

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

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