2
Hi there, I come across the same problem one of this days.
This is a little piece of code for the new spotlight block I´m making:
$form .= ""._MB_MYTABS_USERS." ";
$form .= "";
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$member_handler =& xoops_gethandler('member');
$user_select = new XoopsFormSelect('', 'options[12]', explode(',', $options[12]), 5, true);
$criteria = new CriteriaCompo();
$criteria->setSort('uname');
$criteria->setOrder('ASC');
$user_select->addOptionArray($member_handler->getUserList($criteria));
$form .= $user_select->render();
$form .= "n "._MB_MYTABS_USERS_DSC."
";
As you can see, instead of using $form->display(), you can use $form_element->render()
This means that you will have to create your
, submit buttons etc, but you are still able to use xoopsform elements to ease your task, and to place them inside divs, tables, assign them to templates, whatever!