2
I find it frustrating to try and develop modules in XOOPS since the documentation about what classes and functions to use is just not available, and the support forums dont work too well in providing answers to these questions.
Anyway after some trawling other modules I found this answer to my own question, in case others stumble across this issue.
If you have a multiselect field (called say member_category) in extended profiles and you want to access the values of that field for a specific user.
Quote:
$member_handler =& xoops_gethandler('member');
$thisUser =& $member_handler->getUser($uid);
$profile_handler =& xoops_gethandler('profile');
$fields =& $profile_handler->loadFields();
$categoryarray = $fields['member_category']->getOutputValue($thisUser));
print_r($categoryarray);
I think not having easy access to info on what XOOPS classes to use means modules can end up not being created as efficiently.