=======================================================================================================================================
Mod Title: Sort Member List By Latest Activity

Mod Version: 1.0

Mod Author: John Briggs

Mod Description:
This mod will provide the option to sort the member list to show who was last active online in descending order.

Mod Copyright:  2007-2008 XMBMods.com. All rights reserved.

Mod Compatibility: XMB 1.9.8 Engage Final SP2

Mod Install Note: Before adding this mod to your forum, you should back up all files related to this mod.

Mod License Note: This mod is released under the GPL v3 License. A copy is provided with this software.

Mod Author Note:
This modification is developed and released for use with XMB 1.9.8 Engage Final SP1 which is provided by XMBMods.com.

=======================================================================================================================================
=======
Step 1:
=======

================================
Edit File: lang/English.lang.php
================================

==========
Find Code:
==========

?>

===============
Add Code Above:
===============

// Sort Member List By Latest Activity Mod Begin
$lang['latestactivity'] = "Latest Activity";
// Sort Member List By Latest Activity Mod End

=======================================================================================================================================
=======
Step 2:
=======

===================
Edit File: misc.php
===================

==========
Find Code:
==========

        if (!$order || ($order != 'username' && $order != 'postnum' && $order != 'status')) {

==================
Replace Code With:
==================

        // Sort Member List By Latest Activity Mod Begin
        if (!$order || ($order != 'username' && $order != 'postnum' && $order != 'status' && $order != 'lastvisit')) {
        // Sort Member List By Latest Activity Mod End

=======================================================================================================================================
=======
Step 3:
=======

=====================================================
Go To Administration Panel -> Templates -> misc_mlist and misc_mlist_admin
=====================================================

==========
Find Code:
==========

<td colspan="5" class="category"><font color="$cattext"><strong>$lang[textsortby]</strong></font></td>

==================
Replace Code With:
==================

<td colspan="6" class="category"><font color="$cattext"><strong>$lang[textsortby]</strong></font></td>

==========
Find Code:
==========

<td bgcolor="$altbg2" width="10%"><a href="misc.php?action=list&amp;desc=$init[ascdesc]&amp;page=$page$ext"><strong>$ascdesc</strong></a></td>

===============
Add Code Below:
===============

<td bgcolor="$altbg2" width="18%"><a href="misc.php?action=list&amp;order=lastvisit&amp;desc=desc"><strong>$lang[latestactivity]</strong></a></td>

=======================================================================================================================================