Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-01 11:47:27

underfundig
New Member
Registered: 2007-12-01
Posts: 4

Popup comments window size

How do I change the size of the window that pops up? When I press the “comment”-button now it looks like this: http://underfundig.com/blog/screenshot1.jpeg. I want to get rid of the horizontal scrolling and make the window as wide as the divider between the comment form and the comments. As you can see the numbers in front of the comments appear outside the window somehow. If I make the window larger it looks more right, but then again the window is too wide: http://underfundig.com/blog/screenshot2.jpeg.

Any ideas?

Offline

#2 2007-12-01 13:06:08

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Popup comments window size

I think it’s caused by the body {width: 600px;} in your stylesheet.

Offline

#3 2007-12-01 13:10:39

underfundig
New Member
Registered: 2007-12-01
Posts: 4

Re: Popup comments window size

Thanks, that took care of the horizontal scrolling. The numbered list and the width of the popup is still a problem though.

Offline

#4 2007-12-01 13:41:06

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Popup comments window size

The popup window size can only be changed in the textpattern/publish/taghandlers.php code for the comments_invite() function. The style for the numbered list is influenced heavily by the style for * you have in your stylesheet.

Try using the Firefox browser combined with the webdeveloper extension, which allows you to see what parts of CSS influence the elements on your page. That’s how I figure these things out.

Offline

#5 2007-12-01 16:24:30

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Popup comments window size

Another option is to create the popup window manually. Remove the invite tag and replace it with this (in your article form): <a href=<txp:site_url />?parentid=<txp:article_id />" onclick="window.open(this.href, 'popupwindow', 'width=600,height=500,scrollbars,resizable,status'); return false;">Comment</a>.

Offline

Board footer

Powered by FluxBB