============================================================================================================================
ModificationName: User Access List Statuses

Version: 1.0

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

Compatibility: XMB 1.9.5 SP1

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

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

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

Note: Backup all affected files, templates & database's.

Affected Files (1): functions.php

Affected Templates (0): NONE

Author Note:
You downloaded this modification from XMBGarage.com, the #1 source for XMB related downloads.
Please visit http://www.xmbgarage.com/ for support.
============================================================================================================================
=======
Step 1:
=======
==================
Edit File: functions.php
==================
==========
Find Code:
==========

            $user = explode(',', $userlist);
            $xuser = strtolower($xmbuser);
            foreach ($user as $usr) {
                $usr = strtolower(trim($usr));
                if ($usr != '' && $xuser == $usr) {
                   return true;
                }
            }

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

            $user = explode(',', $userlist);
            $xuser = strtolower($xmbuser);
            $xstatus = strtolower($self['status']);
            foreach($user as $usr) {
                $usr = strtolower(trim($usr));
                if ($usr != '' && $xuser == $usr || $xstatus == $usr) {
                   return true;
                }
            }

============================================================================================================================
Enjoy!