The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 } |
#2
|
|||
|
|||
You can use this conditional in PHP:
PHP Code:
|
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
i'm trying to do the samething but for multiple usergroups...any progess?
|
#5
|
||||
|
||||
PHP Code:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|