PDA

View Full Version : Scroll Bar in Popup Comments Window


Chester
04-20-2005, 05:22 PM
Hi all.
I'm using PP1.4 and I have noticed that my popup comments window doesn't generate a scroll bar when the content exceeds the size of the window.

You can see this here:

http://www.24fifty.net/index.php?showimage=33#

and then click the comments link.

I'm using Firefox as my browser, and haven't checked this functionality in any other browser....

Any ideas? Thanks
Pat a.k.a. Chester

Joe[y]
04-20-2005, 06:31 PM
'scrollbars=yes' into the javascript popup link should do the job i think!

blinking8s
04-20-2005, 07:19 PM
or scrollbar=auto

Chester
04-20-2005, 07:54 PM
'scrollbars=yes' into the javascript popup link should do the job i think!

Where do I find this javascript popup link?? Is it this line from the index.php file?

$tpl = str_replace("<COMMENT_POPUP>","<a href='#' onclick=\"window.open('index.php?popup=comment&
showimage=$image_id','Comments','width=480,height= 540');\">
$lang_comment_popup</a>",$tpl);

thanks...

Joe[y]
04-20-2005, 08:23 PM
yes. that's the one.

blinking8s
04-21-2005, 02:36 AM
$tpl = str_replace("<COMMENT_POPUP>","<a href='#' onclick=\"window.open('index.php?popup=comment&
showimage=$image_id','Comments','width=480,height= 540, scrollbar=auto');\">
$lang_comment_popup</a>",$tpl);

should be correct...

Connie
04-21-2005, 07:31 AM
it would be very good if you test this with different browsers and tell us exactly with which browser you don't get scrollbars

as I looked very closely to this popup-command to get a proper working popup window whithout the necessity that people have to edit index.php
and I tested with at least 4 browsers, also Firefox

so I am disappointed that it is not generating a scrollbar here

blinking8s
04-21-2005, 08:23 AM
i dont see a scrollbar in any browser

Connie
04-21-2005, 12:29 PM
friends,

maybe the scrollbar will be visible when there is a need for it? As a picture has no comment yet, the whole content fits into the comment window

as a picture has many comments and all these comments are repeated in the popup-window, this window needs a scrollbar and will have it

please test it and tell me if I am totally wrong :oops:

Chester
04-21-2005, 02:22 PM
Connie,

I am using Firefox and when I look at the comments for the following picture:

http://www.24fifty.net/index.php?showimage=28#

the window that opens up is not big enough - the section to enter new comments is hidden.

I tested this out in Firefox1.03 and IE6.0

I haven't had a chance to edit the index.php to include the 'scrollbar=auto' command yet. i will get to this on the weekend.

thanks all for your help
pat

blinking8s
04-21-2005, 09:51 PM
there is no scrollbar present and the mousewheel allows scrolling to run down to the bottom...the scrollbar should show up as soon as the main div stretches and breaks the height of the content window in this case it is...its not showing up for me. Has it been changed like stated above?

Joe[y]
04-21-2005, 09:54 PM
scrollbars=yes didn't work either. i had never noticed this as i always used my click wheel. but this is a problem that i can't explain!

blinking8s
04-21-2005, 10:07 PM
*scratches head*

im officially confused as to why mine is working and yours is not

could for some odd reason the way the template is arranged effect the browser knowing to display the scrollbar? because on everything I have tried mine has displayed, the index.php code posted is the same as mine...

Joe[y]
04-23-2005, 01:53 PM
i had one too many apostrophes. sorted now! :lol:

Connie
04-23-2005, 02:01 PM
yes, now there are scrollbars...

I am glad!

blinking8s
04-23-2005, 04:00 PM
i still dont get a scrollbar on the links comments page posted there

Connie
04-23-2005, 04:25 PM
I see scrollbars at http://www.24fifty.net/index.php?showimage=28# with OPERA, Firefox and even IE :o

orainero
04-23-2005, 05:20 PM
$tpl = str_replace("<COMMENT_POPUP>","<a href='#' onclick=\"window.open('index.php?popup=comment&
showimage=$image_id','Comments','width=480,height= 540, scrollbar=auto');\">
$lang_comment_popup</a>",$tpl);

should be correct...

Hay un pequeño error de sintaxis, no es scrollbar, es scrollbars=yes
:D

Connie
04-23-2005, 05:27 PM
si, es esto!

blinking8s
04-23-2005, 06:57 PM
i still dont see a scrollbar on the comments page

orainero
04-23-2005, 07:29 PM
scrollbars=auto o scrollbars=yes
Yo testie esto en Internet explorer 5.5/6, firefox .9 y 1.0, opera 8, safari y se ve ok, seguramente debes tener otro error.

Joe[y]
04-29-2005, 04:41 PM
i'm not sure what the above posts said but i found a solution in including:

'resizable=yes' with 'scrollbars=yes'

so:

$tpl = str_replace("<COMMENT_POPUP>","<a href='#' onclick=\"window.open('index.php?popup=comment&showimage =$image_id','Comments','width=480,height=540,scrol lbars=yes,resizable=yes');\">Info +  ($image_comments_number) $lang_comment_popup</a>",$tpl);

is the result! works fine for me! :D

eyedreams
01-26-2006, 02:39 PM
I know it's nine months or so since these posts, but I just wanted to say thank you for sorting the very same problem out for me. I found that the scrollbars=yes option works like a dream (the auto option didn't for some reason). Once again thanks - i've stopped tearing my hair out now!