![]() |
What is the easiest way to restrict content to a certain group?
I have content that I am intergrating into a couple pages right now, everything seems to be working right, but I want to know how I can keep certain people from seeing it. I want to know basically something like and if statement that would do something liek this
if (usergroup == admin) { Show } else { Show something else } |
You can use this conditional in PHP:
PHP Code:
|
Deaths, I tried matching that to 6 because that is the usergroup for admin. It doesn't seem to work. It always outputs for not an admin, I changed the group and it does the same thing. I am coding for a vbadvanced page where I want the admin to be able to see a couple of extra things. I don't think I have access to the $vbulletin->userinfo['usergroup'] on that page, how can i get access to that?
Thanks |
i'm trying to do the samething but for multiple usergroups...any progess?
|
PHP Code:
PHP Code:
|
All times are GMT. The time now is 10:47 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|