1
maxima
How do I edit the textarea width of the contact form
  • 2006/8/16 5:34

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


I need to reduce the width of the textarea in the contact form. I used the CSS to do it but then it now affects all other text areas. I looked through the files of the module but none showed a value for the textarea.

How is this edited?

2
tcnet
Re: How do I edit the textarea width of the contact form
  • 2006/8/16 14:00

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


The textarea function parameters:
XoopsFormTextArea(captionnamevaluerowscolsid)


To change the contact form comment area , edit line #37 of modules/contact/contactform.php

from
$comment_textarea = new XoopsFormTextArea(_CT_COMMENTS"usersComments"$comment_v);


to

$comment_textarea = new XoopsFormTextArea(_CT_COMMENTS"usersComments"""640$comment_v);


This text area will have 6 rows and 40 columns.
Adjust the row and cols values to suit your needs.

3
maxima
Re: How do I edit the textarea width of the contact form
  • 2006/8/16 14:48

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


Thanks. It worked fine. I had tried that before based on the methods in the lines above 37 but got errors and could not figure that adding that empty DB column would fix it.

Login

Who's Online

376 user(s) are online (261 user(s) are browsing Support Forums)


Members: 0


Guests: 376


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits