Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 11-26-2004, 04:44 PM
rich Offline
forum loafer
 
Join Date: Nov 2004
Posts: 8
Comments popup problem (missing scroll bars) FIX

I found a little problem with the popup comments page. And I have a fix.

I was testing by adding multiple comments, 4-5+. Once the page got longer than the default 540px the popup window would not produce scroll bars.

I tested this on multiple systems and found that Safari was the only browser that had scroll bars without applying the fix below. Firefox for OS X didn’t have scroll bars. In addition, IE and Firefox for windows didn’t have scroll bars either.

Here is the simple fix:
On line 518 of index.php I added scrollbars=yes and it fixed everything.

Code:
$tpl = ereg_replace("<COMMENT_POPUP>","<a href='#' onclick=\"window.open('index.php?popup=comment&showimage=$image_id','Comments','scrollbars=yes,width=480,height=540');\">$lang_comment_popup</a>",$tpl);
Reply With Quote
  #2  
Old 11-27-2004, 09:57 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
I thought it defaulted to scrollbars=auto, but there you go.

Thanks, I'll change that.

// punk
__________________
icq: 66760929
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:42 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs