8
Quote:
deka87 wrote:
but it doesn't work for custom fields like my $about_me. how do I correct it? thanks in advance!
Use this instead
foreach (array_keys($fields) as $i) {
if ($fields[$i]->getVar('field_name') == 'about_me') {
$userarray["output"][] = $fields[$i]->getOutputValue($users[$k], $profiles[$k]);
}
}
No tested. Should work even if your field is not searchable but can produce duplicate columns if your field is searchable.
Please notice that about_me column is displayed if you set it as searchable and user search for users using that field.
If you have this field as searchable then a better option would be to add around line 377:
$searchvars[] = 'about_me';
//Sort information
This will trick the system to think that the user have used this field for searching and produce an extra column, even if he didn't