View Full Version : How to make memberlist invisible to memebers?
pierians
02-21-2009, 10:28 AM
Hello, is there anyway that i can make the memberlist visible only for admins and moderators?
Thnx in advance!
vbplusme
02-21-2009, 11:35 AM
You can disable it in admincp.(vboptions>User Listing Options) I also put a restriction in .htaccess so that nobody can access the memberlist.php file.
<Files memberlist.php>
order deny,allow
deny from all
</Files>
pierians
02-21-2009, 04:40 PM
This disables memberlist...
I want only the admins & mods to be able to acess it.
Dismounted
02-24-2009, 05:04 AM
Plugin @ memberlist_start:
if (!is_member_of($vbulletin->userinfo, 5, 6))
{
print_no_permission();
}
pierians
02-24-2009, 08:19 AM
Could you please be more specific?
Where do i have to put this code, at the template, or at the php file?
Marco van Herwaarden
02-24-2009, 08:32 AM
See the post by dismounted:Plugin @ memberlist_start:
Seven Skins
02-24-2009, 08:32 AM
adminCP > Plugins & Products > Add New Plugin
Then
Product - vbulletin
hook location - memberlist_start
title - Show Memberslist only to Admins and Moderators
Execution Order - 5
Plugin PHP Code :
if (!is_member_of($vbulletin->userinfo, 5, 6, 7))
{
print_no_permission();
}
Active - yes
Hit save.
Only admin and mods will see the memberlist.php ..other will get no permission error.
pierians
02-24-2009, 09:42 AM
Thank you a tone!!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.