When viewing gallery, I get double vertical scrollbars - Page 2 When viewing gallery, I get double vertical scrollbars - Page 2
 

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

When viewing gallery, I get double vertical scrollbars

Started by d00mz, February 10, 2005, 06:10:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joachim Müller


Daniel123

As described in tips.txt, the double scrollbars disappear after inserting

include ("iframe_SSI.html");

in header.php and copying iframe_SSI.html  to the root folder of the postnuke site. If the site is viewed with Mozilla Firefox, the double scrollbars remain.
Using Coppermine 1.4.4, pnCPG 3.2, Firefox 1.5.0.1
Is there a way to avoid the double scrollbars also in Firefox?
Regards,

Daniel


casNuy

I have not found  a solution for Mozilla.

Cas

msbr

Has anyone found a solution to this problem??


FYI - There is something in the pnCPG TIPS.txt file:

NETSCAPE
========
Change the iframe line within index.php as follows :
echo "<div class=\"cpgframe\">"
     ."<iframe id='pnCPG' src='$url'  width='580'
height='1500' scrolling='no' marginwidth=0
marginheight=0 frameborder=0 ></iframe></div>";

then in the styleNN.css add :
.cpgframe {
PADDING-BOTTOM: 3px; FONT: 11px/16px tahoma, verdana,
arial; COLOR: #3e494a; PADDING-TOP: 10px; HEIGHT:
1500px; TEXT-ALIGN: center
}



But I cant figure out where this line is in index.php?   Maybe this was for an older version of pnCPG/Coppermine/Postnuke?



It seems that this would be a high priority issue!  More than 50% of my users are using netscape (really firefox) accourding to my stats...  Please let me know if anyone has an answer.

msbr

Has anyone found a solution to this problem??


FYI - Is this some sort of fix (from the pnCPG TIPS.txt file):

NETSCAPE
========
Change the iframe line within index.php as follows :
echo "<div class=\"cpgframe\">"
     ."<iframe id='pnCPG' src='$url'  width='580'
height='1500' scrolling='no' marginwidth=0
marginheight=0 frameborder=0 ></iframe></div>";

then in the styleNN.css add :
.cpgframe {
PADDING-BOTTOM: 3px; FONT: 11px/16px tahoma, verdana,
arial; COLOR: #3e494a; PADDING-TOP: 10px; HEIGHT:
1500px; TEXT-ALIGN: center
}


But I cant figure out where this line is in index.php?   Maybe this was for an older version of pnCPG/Coppermine/Postnuke?


It seems that this would be a high priority issue!  More than 50% of my users are using netscape (really firefox) accourding to my stats...  Please let me know if anyone has an answer.

casNuy

That line now can be found in pnuser.php

Cas

casNuy


Joachim Müller


msbr

Quote from: casNuy on November 28, 2006, 11:44:50 AM
double posted, check pnuser.php for that line.

cas

Thanks!

I am going to change this:


if (file_exists($filename)){
echo "<iframe id='postwrap-content' name='pnCPG' src='$url' align='center' width='100%' height='800px' space=0 vspace=0 marginwidth=0 marginheight=0 frameborder=0 scrolling=auto onload='parent.scrollTo(0,0);' ></iframe>";
} else {
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>";
}


to this:

if (file_exists($filename)){
echo "<div class=\"cpgframe\">"."<iframe id='postwrap-content' name='pnCPG' src='$url' align='center' width='100%' height='800px' space=0 vspace=0 marginwidth=0 marginheight=0 frameborder=0 scrolling=auto onload='parent.scrollTo(0,0);' ></iframe></div>";
} else {
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>";
}





But I still have two questions:

1. Do I need to add the div / style to the second iframe reference also?
2. In what file do I actually define the style?  There is no reference to styleNN.css in the pnuser.php file, and I can't find styleNN.css anywhere.

Thanks again!
Mike

casNuy

There is no fixed answer for that one, it is a bit trial and error.
Currently i do not use FF so cannot help you there.

Cas

msbr

I have put the div tag on both iframe lines (it seems that firefox always uses the second line) and I have added the style to the theme's style.css file (which is included in the index.htm iframe reference), but it still doesnt work...

Can someone please look at this for me:
http://msbragginrights.com

You will find the div tag around the iframe, and the style is available, but firefox/netscape/mozilla still show double scrollbars.

I still cant belive that no one has encountered/fixed this issue... please help if you can.

Thanks!

casNuy

I have implemented another way which seems to work also for Firefox.
I will release this here on the board as version 3.5

Cas