How to disable memberslist viewing in phpBB3

In this tutorial I will explain how to disable memberlist viewing from guests/members, so only admins/mods can view it.

Open memberlist.php, Find:

// The basic memberlist

Before add:

if (!$auth->acl_get('m_') || !$auth->acl_get('a_'))
{
trigger_error('NO_VIEW_USERS');
}

Open styles/prosilver/template/overall_header.html, Find:

Replace with:

If you want to only block the memberlist do the following:

Change:

if (!$auth->acl_get('m_') || !$auth->acl_get('a_'))

To:

if ($mode != 'group' && (!$auth->acl_get('m_') || !$auth->acl_get('a_')))

Date: May 08, 2013

Filed Under: Web Development

About the Author: Computer Repair, Freelancer, Blogger, Reviewer and all around nice guy!

Leave a Reply




Google PageRank