1
RyaJ
uid news bug
  • 2009/11/5 21:21

  • RyaJ

  • Just popping in

  • Posts: 3

  • Since: 2009/7/20


If you click in any avatar of any user when you're reading the comments, you will go here... no user is here...



2
RyaJ
How do I add the Xoops editor in PHP?
  • 2009/7/20 17:25

  • RyaJ

  • Just popping in

  • Posts: 3

  • Since: 2009/7/20


I want to add this editor instead of a simple textarea, since it does not detect linebreaks.

I tried with this :

include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$textarea = new XoopsFormDhtmlTextArea("Description"'desc'$predata['description'], 1570);
$textarea->doHtml true;
echo 
addElement($textareatrue);


Error :
Fatal error: Call to undefined function addElement()

Thanks.

EDIT : Forget it, now is working :P :
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$my_form = new XoopsThemeForm("Add""form""form.php"); 
$my_form->addElement(new XoopsFormDhtmlTextArea("Description"'desc'$predata['descripcion'], 1570), true);
$my_form->display();




TopTop



Login

Who's Online

252 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 252


more...

Donat-O-Meter

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

Latest GitHub Commits