1
jeffgr
How to remove xoops text editor from certain modules
  • 2006/10/18 8:49

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Hi there,

anyone know how to remove the XOOPS text editor from certain module pages? For example, in xdirectory, I want to change the "Description" form field on the "edit listing" page so that it is just a plain text box, with none of the text formatting options available in the normal text editor. In the modlink.php file of this module (so,the page where you modify your link, I found this code:

$modlinkform->addElement(new XoopsFormDhtmlTextArea(_MD_DESCRIPTIONC , 'moddesc' , $moddesc , 8, 50 ), false);

I tried switching out the "XoopsFormDhtmlTextArea" with "XoopsFormText",and that seemed to create a text field, but I couldn't figure out how to change the size of the text area..does anyone know?

Thanks,

Jeff

2
Mithrandir
Re: How to remove xoops text editor from certain modules

Replace XoopsFormDhtmlTextArea with XoopsFormTextArea
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
jeffgr
Re: How to remove xoops text editor from certain modules
  • 2006/10/21 4:12

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


thanks, that seemed to work!

4
jeffgr
Re: How to remove xoops text editor from certain modules
  • 2007/4/3 14:53

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Does Anyone know how to remove the text editor from the PM box now?

The solution listed above in this thread doesn't seem to work...

the code that is listed in the pmlite.php page, at line 123 is:

xoopsCodeTarea("message",37,8);

however, this page also seems to reference at line 80

include_once XOOPS_ROOT_PATH."/include/xoopscodes.php";

and I think this is where the problem lies.

Just changing the text to XoopsFormTextArea doesn't work...

Any ideas?

Thanks,

Jeff

Login

Who's Online

129 user(s) are online (60 user(s) are browsing Support Forums)


Members: 0


Guests: 129


more...

Donat-O-Meter

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

Latest GitHub Commits