Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-10-28 17:39:07
- pketh
- Member
- Registered: 2005-05-30
- Posts: 24
increasing the size of the Txp:comment message input field
I’ve already search the forums, and textbook for the answer to what should be a simple question but I have yet to find it :(
ok, anyways, if you’ll look at any permalink on my site you’ll notice that the message input form box in the comment area is kinda small for long messages. I was just wondering how to increase it’s size.
thanks :)
(oh btw, I’m running the latest textpattern)
personal site:
www.pketh.com
Offline
Re: increasing the size of the Txp:comment message input field
I actually don’t remember how I figured this out — I might have been looking through the code. Anyway, you need to change your <txp:comments_form />
tag so it includes two extra attributes, msgrows
and msgcols
. For example, at my site I display the comment form as follows: <txp:comments_form msgrows="15" msgcols="35" />
. Hope that helps.
(Also, this is really a pretty obtuse way to do things. One would expect you would add attributes to the <txp:comment_message_input />
tag.)
Last edited by ramanan (2005-10-28 18:27:51)
Offline
#3 2005-10-28 18:29:27
- pketh
- Member
- Registered: 2005-05-30
- Posts: 24
Re: increasing the size of the Txp:comment message input field
thanks alot ramanan,
agreed. It should be a lot easier
personal site:
www.pketh.com
Offline
Re: increasing the size of the Txp:comment message input field
I think the problem is that <txp:comments_form />
is a real tag, where as the tags you actually place in your comment form are just place holders.
Offline
#5 2005-10-28 19:27:20
- pketh
- Member
- Registered: 2005-05-30
- Posts: 24
Re: increasing the size of the Txp:comment message input field
hmm, I’m having problems actually implementing it in my comments_form form. So I go into that form and I don’t know where to add the msgrows attribute.
Do I change the name of the form to txp:comments_form msgrows=“15” msgcols=“35” or something?
At first I thought u meant I could replace the txp:comment_message_input tag with that one – which didn’t work :(
thanks
personal site:
www.pketh.com
Offline
Re: increasing the size of the Txp:comment message input field
You could do it with plain old CSS:- <code>textarea.txpCommentInputMessage {height: 200px;width: 275px;}</code>
Last edited by thebombsite (2005-10-28 19:42:44)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: increasing the size of the Txp:comment message input field
No, you have to add the attributes to the <txp:comments_form />
tag. Those other tags that are actually in your comment form template are just place holders really. So, as I said above, for my site, I use <txp:comments_form msgrows="15" msgcols="35" />
. I think that tag should reside in the comments_display
form.
Offline
#8 2005-10-28 20:48:09
- pketh
- Member
- Registered: 2005-05-30
- Posts: 24
Re: increasing the size of the Txp:comment message input field
Ooooh, I got it working now.
Two great suggestions/methods – thanks a lot to you both!
personal site:
www.pketh.com
Offline
Re: increasing the size of the Txp:comment message input field
You learn something new everyday. I didn’t know you could stretch out boxes with CSS.
Offline
#10 2005-10-28 22:51:50
- pketh
- Member
- Registered: 2005-05-30
- Posts: 24
Re: increasing the size of the Txp:comment message input field
ya me neither, even though I ended up using ur technique (didn’t feel like opening cssedit)
I’ll probably put that to good use far in the future
thanks thebombsite!
personal site:
www.pketh.com
Offline
Re: increasing the size of the Txp:comment message input field
No problem. As far as the textarea is concerned it’s only been possible since they removed the “hard-coding” otherwise you had to go into comments.php and edit the included dimensions.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#12 2005-10-28 23:06:21
- pketh
- Member
- Registered: 2005-05-30
- Posts: 24
Re: increasing the size of the Txp:comment message input field
but this works with all form fields (name, url, custom ones too)?
personal site:
www.pketh.com
Offline