View Full Version : Member list permission per usergroup
John Lester
09-09-2011, 07:35 PM
Howdy folks :)
I'm looking to restrict my members and guests to viewing only members with x amount of posts on the member list, AND let my other admins and the mod team see ALL members in the member list.
BirdOPrey5
09-10-2011, 07:57 PM
In Admin CP go to Plugin Manager -> Add New Plugin
Product: vBulletin
hook: memberlist_fetch
title: (whatever you want)
execution order: 5
php code:
if (!is_member_of($vbulletin->userinfo, 5,6,7))
{
$hook_query_where = " AND user.posts > 10 ";
}
Set active to YES and save.
Where 5,6,7 are your mod and admin usergroups and 10 is the minimum number of posts.
That should do what you want.
John Lester
09-13-2011, 05:38 AM
Thanks BoP I'll give it a shot sometime this week and let you know how it goes.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.