2
the OOP way of solving this problem is creating a new class that extends XoopsFormSelectUser, but who's constructor uses
$member_handler->getUsersByGroup($group);
instead of
$member_handler->getUserList($criteria);
$member_handler->getUsersByGroup() returns an array of UIDs
so you would need to use this array to get the XoopsUser list for those UIDs. Something like this should do the trick
$group = 1;
$uids =& $member_handler->getUsersByGroup($group);
$criteria = new Criteria('uid', "(".implode(',', $members).")", "IN");
$criteria->setSort('uname');
$this->addOptionArray($member_handler->getUserList($criteria));