2010-05-06, 05:11 PM
This should take you 5 minutes to execute. No core files are edited.
Open inc/languages/english/memberlist.lang.php
Add this code somewhere in the middle. Doesn't matter where really.
Now for template edits.
Edit "memberlist" template.
Find
Change to
Find
Afterwards Add
Find
Afterwards Add
Edit "memberlist_user" template
Find
Afterwards add
That's it.
Now keep in mind this is for default mybb templates so if this doesn't work and you have some whacky custom template I can't help you. Also on upgrades if the language files are overwritten you may need to redo your changes so watch for that after an upgrade. This also assumes you have reputation enabled for the site. If it's disabled then I don't suggest you bother with this. It's only going to show all zero's.
Open inc/languages/english/memberlist.lang.php
Add this code somewhere in the middle. Doesn't matter where really.
$l['sort_by_reputation'] = "Sort by: Reputation";
$l['reputation'] = "Reputation";
Now for template edits.
Edit "memberlist" template.
Find
colspan="5"
Change to
colspan="6"
Find
<option value="postnum"{$sort_selected['postnum']}>{$lang->sort_by_posts}</option>
Afterwards Add
<option value="reputation"{$sort_selected['reputation']}>{$lang->sort_by_reputation}</option>
Find
<td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->lastvisit}</strong></span></td>
Afterwards Add
<td class="tcat" width="10%" align="center"><span class="smalltext"><strong>{$lang->reputation}</strong></span></td>
Edit "memberlist_user" template
Find
<td class="{$alt_bg}" align="center">{$user['lastvisit']}</td>
Afterwards add
<td class="{$alt_bg}" align="center">{$user['reputation']}</td>
That's it.
Now keep in mind this is for default mybb templates so if this doesn't work and you have some whacky custom template I can't help you. Also on upgrades if the language files are overwritten you may need to redo your changes so watch for that after an upgrade. This also assumes you have reputation enabled for the site. If it's disabled then I don't suggest you bother with this. It's only going to show all zero's.