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(caption, name, value, rows, cols, id)

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", "", 6, 40, $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.