This will add a location field to your Memberlist and is also sortable by location.
SMF v2.0 RC1-1
/Sources/Memberlist.php
'real_name' => array(
'label' => $txt['username']
),
'location' => array(
'label' => $txt['location']
),
'real_name' => array(
'down' => 'mem.real_name DESC',
'up' => 'mem.real_name ASC'
),
'location' => array(
'down' => 'mem.location DESC',
'up' => 'mem.location ASC'
),
/Themes/default/Memeberlist.template.php
<td class="windowbg" align="left">', $member['link'], '</td>
<td class="windowbg2">', $member['location'], '</td>
SMF v1.1.9
/Sources/Memberlist.php
'realName' => array(
'label' => $txt[35]
),
'location' => array(
'label' => $txt['location']
),
'realName' => array(
'down' => 'mem.realName ASC',
'up' => 'mem.realName DESC'
),
'location' => array(
'down' => 'mem.location ASC',
'up' => 'mem.location DESC'
),
/Themes/default/Memberlist.template.php
<td class="windowbg" align="left">', $member['link'], '</td>
<td class="windowbg" align="left">', $member['location'], '</td>
/Themes/default/languages/Modifications.{your_lang}.php
$txt['location'] = 'Location';