The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom PHP page based on UserGroup?
Ok if i have a graphical page i've designed and want to upload to my website and i only want certain usergroup(s) to view it, can i say incorporate it into a page within vBulletin or can i upload it and have only certain usergroups veiw that.
Hopefully someone here has a relatively simple answer for me Thanks in advance |
#2
|
|||
|
|||
<if condition="(is_member_of($vbulletin->userinfo, 5, 6 ,7))">
$php_page_insert </if> By using this conditional, anyone who is a member of usergroup 5, 6, or 7 will be able to view your page. Change the numbers to which ever usergroup you'd like. |
#3
|
|||
|
|||
Thats the template conditional...If you would rather do it in the php page and show a standard VB no permission page to people that cannot view it.
PHP Code:
|
#4
|
|||
|
|||
Hi, thanks both for your input.
RLShare, thankyou, its exactly what i needed and it's worked an abolute treat! So thank You both very much |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|