5
Please test in profile/userinfo.php line after line 155:
$profile_handler = xoops_getmodulehandler('profile');
$profile = $profile_handler->get($thisUser->getVar('uid'));
// Add dynamic fields
foreach (array_keys($fields) as $i) {
//If field is not visible, skip
//if ( $field_ids_visible && !in_array($fields[$i]->getVar('field_id'), $field_ids_visible) ) continue;
if (!in_array($fields[$i]->getVar('field_id'), $field_ids_visible)) {
continue;
}
$cat_id = $fields[$i]->getVar('cat_id');
$value = $fields[$i]->getOutputValue($thisUser, $profile);
if (is_array($value)) {
$value = implode('
', array_values($value) );
}
if ($value) {
$categories[$cat_id]['fields'][] = array('title' => $fields[$i]->getVar('field_title'), 'value' => $value);
$weights[$cat_id][] = $fields[$i]->getVar('cat_id');
}
}
$GLOBALS['xoopsTpl']->assign('categories', $categories);
// Dynamic user profiles end
if ($GLOBALS['xoopsModuleConfig']['profile_search']) {