Modification Title: Prevent Guest Browsing Member List And Profiles v1.0

Modification Author: John Briggs

Last Updated: 04/18/09

Updated for 1.9.8 by: WormHole @ XMB Garage

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

Supported Version: XMB 1.9.8 SP3

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. 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 modification.
Downloading this modification 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 at our web site.

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

=====================
Edit File: header.php
=====================

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

// Memberlist-link
if ($SETTINGS['memliststatus'] == 'on') {
    $links[] = '<img src="'.$imgdir.'/top_memberslist.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.'/top_memberslist.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:
==========

    case 'viewpro':
        $member = postedVar('member', '', TRUE, TRUE, FALSE, 'g');

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

    case 'viewpro':
        // Prevent Guest Browsing Member List And Profiles Mod Begin
        if (X_GUEST) {
            error($lang['noguestperm']);
        }
        // Prevent Guest Browsing Member List And Profiles Mod End
        $member = postedVar('member', '', TRUE, TRUE, FALSE, 'g');

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

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

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

    case 'list':
        $order = postedVar('order', '', FALSE, FALSE, FALSE, 'g');

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

    case 'list':
        // Prevent Guest Browsing Member List And Profiles Mod Begin
        if (X_GUEST) {
            error($lang['noguestperm']);
        }
        // Prevent Guest Browsing Member List And Profiles Mod End
        $order = postedVar('order', '', FALSE, FALSE, FALSE, 'g');

=======================================================================================================================
=======
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 boards.';
// Prevent Guest Browsing Member List And Profiles Mod End

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