Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
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
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
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
Pages: 1