View Full Version : Block custom pages from certain usergroups.
MagicPID
10-23-2012, 09:35 PM
Hello,
I have made a custom page with some information and stuff on it, I am using a navbar plugin to make it show on my navbar, is there a way to block certain usergroups from seeing this page?
Thanks
Lynne
10-23-2012, 09:43 PM
Just add something like this to your custom page (assuming you followed the tutorial to make a custom vbulletin page):
if (!is_member_of($vbulletin->userinfo, x, y, z))
{
print_no_permission();
}
change x, y, z to the allowed usergroups.
NguReaper
10-24-2012, 02:28 AM
Just add something like this to your custom page (assuming you followed the tutorial to make a custom vbulletin page):
if (!is_member_of($vbulletin->userinfo, x, y, z))
{
print_no_permission();
}
change x, y, z to the allowed usergroups.
How do you go by blocking Google ad-sense ads from certain usergroups also? Would help out a bunch! Thanks :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.