Log in

View Full Version : how do i do it... (very simple for good coders)


evofile
08-26-2006, 03:19 AM
how do i do that lets say i created a page called vb.php so lets say i dont want that one of the usergroups will see this page so what code do i have to put in the page vb.php that they won"t be able to see the page.

Adrian Schneider
08-26-2006, 03:54 AM
Anywhere after including global.php:if (is_member_of($vbulletin->userinfo, X))
{
print_no_permission();
}where X is the usergroup ID

to do the opposite, and only allow one group to see it, place a ! in front of the is_member_of().

You can do this for multiple usergroups by replacing the X with X, Y, Z

evofile
08-26-2006, 03:58 AM
hooo thank you very much SirAdrian,
i am working right now on big hack and you'll see results soon.