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:
le="color: #000000"><?php $form .= "<b>"._MB_MYTABS_USERS."</b> "; $form .= "<input type='hidden' name='options[12][0]' value='0'/>"; 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 <i>"._MB_MYTABS_USERS_DSC."</i><br /><br />";
As you can see, instead of using $form->display(), you can use $form_element->render()
This means that you will have to create your <form></form>, 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!