PDA

View Full Version : commments not scrolling


astroflux
01-20-2005, 09:05 PM
i am using the gray's comments template. the comments page does not scroll. is there an easy fix to make it scroll?

thanks in advance!

http://www.bldg13.com/photos

Rasmus
01-21-2005, 06:15 PM
Yeah, there is indeed an easy fix. I'm not gonna repeat myself though (sry, I'm just lazy today, heh) so you'll have to see my reply to the same question in the thread called:

Minimal template! (avaliable)

It's thread number three top down in this forum.

/Rasmus

astroflux
01-25-2005, 07:20 PM
Indeed there is! Coincidentally I use the same template (thx keoshi!) and had to do a little fix to get the comments to show up:

1) Open the index.php file
2) Look for the line that says:
$tpl = ereg_replace("<COMMENT_POPUP>","<a href='#' onclick=\"window.open('index.php?popup=comment&showimage =$image_id','Comments','width=480,height=540.. it's the 515th line down.
3) As it is a javascript function, just add ,scrollbars=yes' after the height=540 attribute.
4) Save, exit and upload!

I added a couple of more attributes just for the hell of it, so my entire line reads:
$tpl = ereg_replace("<COMMENT_POPUP>","<a href='#' onclick=\"window.open('index.php?popup=comment&showimage =$image_id','Comments','width=480,height=540,resiz able=no,scrollbars=yes,status=no,menubar=no,direct ories=no');\">$lang_comment_popup</a>",$tpl);

Hope this fixes your problem
/Rasmus



thanks for the response! just in case anyone searches for it...