Name: User Access List Statuses

Version: 1.0

Last modified: 18/04/2009 @ 19:30 (GMT)

Description: This modification will enable you to add member statuses to the forum user access lists.

Compatibility: XMB v1.9.8 SP3

Tested On: XMB 1.9.8 SP3

Code Developed By: Adam Clarke (http://www.xmbservices.com)

Updated for 1.9.8 SP3 by: WormHole @ XMB Garage

MODIFICATION History: V1.0 (30/01/2006 @ 18:30) - Initial Release.

License Note: This modification is released under the GPL License. A copy is provided with this software package.

Note: Backup all affected files, templates & database.

Affected Files (1): functions.php

Affected Templates (0): NONE




====================================================================================================
STEP 1: Edit File 'functions.php'

Find Code:
----------------------------------------------------------------------------------------------------

            foreach($user as $usr) {

                $usr = strtolower(trim($usr));

                if ($usr != '' && $xuser == $usr) {

                   return true;

                }

            }


----------------------------------------------------------------------------------------------------

Replace Code With:
----------------------------------------------------------------------------------------------------

            $xstatus = strtolower($self['status']);

            foreach($user as $usr) {
                $usr = strtolower(trim($usr));
                if ( $usr != '' && ($xuser == $usr || $xstatus == $usr)) {
                   return true;
                }
            }

----------------------------------------------------------------------------------------------------
====================================================================================================
Enjoy!