I've been working on this using various posts and mods, but it still doesn't quite work. I am trying to get it to work with the Advanced Reputation mod.
This is what I have so far...
For SMF v2.0 RC2
/Sources/Memberlist.php
'id_group' => array(
'label' => $txt['position']
),
'karma' => array(
'label' => $txt['karma']
),
'id_group' => array(
'down' => 'IFNULL(mg.group_name, 1=1) DESC, mg.group_name DESC',
'up' => 'IFNULL(mg.group_name, 1=1) ASC, mg.group_name ASC'
),
'karma' => array(
'down' => 'mem.karmaGood DESC',
'up' => 'mem.karmaGood ASC'
),
/Themes/default/Memeberlist.template.php
// MSN?
if (!isset($context['disabled_fields']['msn']))
echo '
<td class="windowbg2">', $member['msn']['link'], '</td>';
// Karma?
if (!isset($context['disabled_fields']['karma']))
echo '
<td class="windowbg2">', $member['karma']['link'], '</td>';
So what exactly doesn't work as intended with it?
I'm just trying to put a sortable reputation column on the memberlist in 2.0 RC2. So far, nothing shows up.
Not even the column heading?
Nope, nothing.