1
Peekay
How do I add a non-DHTML textarea field to a form?
  • 2006/8/20 19:36

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Excuse if this is not the right forum to post this, but I am trying to modify a form that came with a module and have got a bit stuck.

I can see how I can tweak the language file to change the form labels and have found a 'submit.php' where I can remove unwanted fields (e.g. I have successfully removed the 'state' field as this is a non-US website). However, I really need to add a textarea field - but *without* the DHTML editor and image manager buttons. It is just for a simple list, e.g.

Item one
item two
etc...

I found this line in the submit.php file which I gather creates a DHTML text area:
$modlinkform->addElement(new XoopsFormDhtmlTextArea
(_MD_DESCRIPTIONC 'moddesc' null 850), false);

Can anyone tell me how I could add a non-DHTML textarea, or point me at a suitable FAQ for hackers & tinkerers? I was thinking of utilising my redundant 'state' field definition so the back-end form tied in with the one submitted by the user, but maybe it isn't quite as simple as that.

Or should I just stick to drinking beer?
A thread is for life. Not just for Christmas.

2
stefan88
Re: How do I add a non-DHTML textarea field to a form?
  • 2006/8/20 20:16

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


..

3
Peekay
Re: How do I add a non-DHTML textarea field to a form?
  • 2006/8/21 0:47

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Thx stefan88. I'll try to add the field based on the info in those links.
A thread is for life. Not just for Christmas.

4
Peekay
Re: How do I add a non-DHTML textarea field to a form?
  • 2006/8/24 10:57

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I just plucked up courage to mess with this and pleased to report that simply replacing:
Quote:
new XoopsFormDhtmlTextArea

with:
Quote:
new XoopsFormTextArea

seems to do the job, in the application I am modifying anyway. Users can still use xoops-code to format text.

Why can't we have a DHTML editor like WordPress?
A thread is for life. Not just for Christmas.

Login

Who's Online

217 user(s) are online (134 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

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

Latest GitHub Commits