News:

Wondering if this will always be free?  See why free is better.

Main Menu

Reputation on Memberlist

Started by ishy, November 23, 2009, 08:42:40 AM

Previous topic - Next topic

ishy

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
Code (find) Select
'id_group' => array(
'label' => $txt['position']
),

Code (add after) Select
'karma' => array(
'label' => $txt['karma']
),


Code (find) Select
'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'
),

Code (add after) Select
'karma' => array(
'down' => 'mem.karmaGood DESC',
'up' => 'mem.karmaGood ASC'
),


/Themes/default/Memeberlist.template.php
Code (find) Select
// MSN?
if (!isset($context['disabled_fields']['msn']))
echo '
<td class="windowbg2">', $member['msn']['link'], '</td>';

Code (add after) Select
// Karma?
if (!isset($context['disabled_fields']['karma']))
echo '
<td class="windowbg2">', $member['karma']['link'], '</td>';



Arantor

So what exactly doesn't work as intended with it?
Holder of controversial views, all of which my own.


ishy

I'm just trying to put a sortable reputation column on the memberlist in 2.0 RC2. So far, nothing shows up.

Arantor

Holder of controversial views, all of which my own.


ishy


Advertisement: