For some odd reason, when have custom profile fields show in memberlist, that happens.
I'm sorry but without using your creation (had to login as a regulier member) i get an completely different members list then what's being showing by you in the first place.So i still do not get your point.
Man... Look at your own screenshot!!!!
What I am saying is right there!
Look at where it says GitHub on the title bar, compared to where it shows your link in the member's line.
Look at your screenshot, the Titles/values are in the wrong order. Title is github, but field is online.
// Set up the columns...
$context['columns'] = array(
'is_online' => array(
'label' => $txt['online_status'],
'width' => '60',
),
'name' => array(
'label' => $txt['username']
),
'email' => array(
'label' => $txt['email'],
'width' => '25'
),
'website' => array(
'label' => $txt['website'],
'width' => '70',
'link_with' => 'website',
),
'group' => array(
'label' => $txt['position']
),
'registered' => array(
'label' => $txt['date_registered']
),
'posts' => array(
'label' => $txt['posts'],
'width' => '115',
'colspan' => '2',
'default_sort_rev' => true,
)
);
$context['colspan'] = 0;
$context['disabled_fields'] = isset($settings['disabled_profile_fields']) ? array_flip(explode(',', $settings['disabled_profile_fields'])) : array();
foreach ($context['columns'] as $key => $column)
{
if (isset($context['disabled_fields'][$key]) || isset($column['link_with'], $context['disabled_fields'][$column['link_with']]))
{
unset($context['columns'][$key]);
continue;
}
$context['colspan'] += isset($column['colspan']) ? $column['colspan'] : 1;
}
// Are there any custom fields for the memberlist? (Ordering as per the member options code!)
$context['custom_fields'] = array();
$request = wesql::query('
SELECT col_name, field_name, can_see
FROM {db_prefix}custom_fields
WHERE show_mlist = {int:show_mlist}
ORDER BY position',
array(
'show_mlist' => 1,
)
);
while ($row = wesql::fetch_assoc($request))
{
$row['can_see'] = explode(',', $row['can_see']);
foreach ($row['can_see'] as $k => $v)
$row['can_see'][$k] = (int) $v;
if (!we::$is_admin && count(array_intersect($row['can_see'], we::$user['groups'])) == 0)
continue;
// We get this both for the main column list and for our own reference for later.
$context['custom_fields'][$row['col_name']] = array(
'label' => $row['field_name'],
'no_sort' => true,
);
$context['colspan']++;
}
if (!empty($context['custom_fields']))
$context['columns'] = array_insert($context['columns'], 'id_group', $context['custom_fields']);
add_linktree($txt['members_list'], '<URL>?action=mlist');
$context['can_send_pm'] = allowedTo('pm_send');
// Jump to the sub action.
if (isset($subActions[$context['listing_by']]))
$subActions[$context['listing_by']][1]();
else
$subActions['all'][1]();
}
// List all members, page by page.
// Display each of the column headers of the table.
foreach ($context['columns'] as $column)
{
// We're not able (through the template) to sort the search results right now...
if (isset($context['old_search']))
echo '
<th', isset($column['class']) ? ' class="' . $column['class'] . '"' : '', isset($column['width']) ? ' style="width: ' . $column['width'] . 'px"' : '', isset($column['colspan']) ? ' colspan="' . $column['colspan'] . '"' : '', '>', $column['label'], '</th>';
// This is a selected column, so underline it or some such.
elseif ($column['selected'])
echo '
<th class="nowrap', isset($column['class']) ? ' ' . $column['class'] : '', '" style="width: auto"' . (isset($column['colspan']) ? ' colspan="' . $column['colspan'] . '"' : '') . '><a href="' . $column['href'] . '" rel="nofollow">' . $column['label'] . ' <span class="sort_' . $context['sort_direction'] . '"></span></a></th>';
// This is just some column... show the link and be done with it.
else
echo '
<th', isset($column['class']) ? ' class="' . $column['class'] . '"' : '', isset($column['width']) ? ' style="width: ' . $column['width'] . 'px"' : '', isset($column['colspan']) ? ' colspan="' . $column['colspan'] . '"' : '', '>', $column['link'], '</th>';
}
echo '
</tr>
</thead>
<tbody>';
// Set up the columns...
$context['columns'] = array(
'is_online' => array(
'label' => $txt['online_status'],
'width' => '60',
'class' => 'first_th',
However, I do not see any custom fields listed in that screenshot, so I can't tell if anything changed in that regard.