1
timgno
XoopsLists Class and Editors
  • 2012/3/10 11:47

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


This code:
xoops_version.php
include_once XOOPS_ROOT_PATH "/class/xoopslists.php";
$modversion["config"][$i]["name"]        = "tdmcreate_editor";
$modversion["config"][$i]["title"]       = "_MI_TDMCREATE_EDITOR";
$modversion["config"][$i]["description"] = "_MI_TDMCREATE_EDITOR_DESC";
$modversion["config"][$i]["formtype"]    = "select";
$modversion["config"][$i]["valuetype"]   = "text";
$modversion["config"][$i]["default"]     = "dhtmltextarea";
$modversion["config"][$i]["options"]     = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH "/class/xoopseditor");
$modversion["config"][$i]["category"]    = "global";

module_class.php
$editor_configs=array();
        
$editor_configs["name"] ="modules_description";
        
$editor_configs["value"] = $this->getVar('modules_description''e');
        
$editor_configs["rows"] = 5;
        
$editor_configs["cols"] = 100;
        
$editor_configs["width"] = "100%";
        
$editor_configs["height"] = "100px";
        
$editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']['tdmcreate_editor'];
        
$form->addElement( new XoopsFormEditor(_AM_TDMCREATE_MODULES_DESCRIPTION"modules_description"$editor_configs), true);


works well in xoops 2.5.3, while not work in xoops 2.5.4

It 'was changed XoopsLists class?

Login

Who's Online

195 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 195


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