============================================================================================================================
Modification Title: Prevent Guest Browsing Member List And Profiles

Version: 1.0

Author: John Briggs

Last Updated: 03/30/10

Mod Description: This modification will provide the ability to prevent guests from browsing member profiles or member list.

Supported Version: XMB 1.9.5 SP1

Installation Note: Before adding this modification to your forum, you should back up all files related to this modification.

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

Author Note:
For security purposes, Please Check: http://www.xmbgarage.com for the latest version of this mod.
Downloading this mod from other sites could cause malicious code to enter into your XMB Forum software.
As such, xmbgarage.com will not offer support for modifications not offered in our request list.
============================================================================================================================
=======
Step 1:
=======
=================
Edit File: header.php
=================
==========
Find Code:
==========

// Memberlist-link
if ($SETTINGS['memliststatus'] == "on") {
    $links[] = "<img src=\"$imgdir/members_list.gif\" alt=\"$lang[altmemberlist]\" border=\"0\" /> <a href=\"misc.php?action=list\"><font class=\"navtd\">$lang[textmemberlist]</font></a>";
}

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

// Memberlist-link
if (X_MEMBER && $SETTINGS['memliststatus'] == 'on') {
    $links[] = "<img src=\"$imgdir/members_list.gif\" alt=\"$lang[altmemberlist]\" border=\"0\" /> <a href=\"misc.php?action=list\"><font class=\"navtd\">$lang[textmemberlist]</font></a>";
}

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

=================
Edit File: member.php
=================
==========
Find Code:
==========

} elseif ($action == "viewpro") {

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

    // Prevent Guests Browsing Member List and Profiles Mod Begin
    if (X_GUEST) {
        error($lang['noguestperm']);
    }
    // Prevent Guests Browsing Member List and Profiles Mod End

============================================================================================================================
=======
Step 3:
=======
===============
Edit File: misc.php
===============
==========
Find Code:
==========

    case 'list':
        if ($SETTINGS['memliststatus'] == 'off') {

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

    case 'list':
        // Prevent Guests Browsing Member List and Profiles Mod Begin
        if (X_GUEST) {
            error($lang['noguestperm']);
        }
        // Prevent Guests Browsing Member List and Profiles Mod End
        if ($SETTINGS['memliststatus'] == 'off') {

============================================================================================================================
=======
Step 4:
=======
=======================
Edit File: lang/English.lang.php
=======================
========================
Add To End Of File Above  ?>
========================

// Prevent Guest Browsing Member List and Profiles Mod Begin
$lang['noguestperm'] = 'Sorry! You must be registered or logged in to view this portion of the site.';
// Prevent Guest Browsing Member List and Profiles Mod End

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