The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Okay, well im trying to hide certain usergroups from viewing a certain link depending upon which "Team" they are in.. which i created via User Profile Fields.
I have an external page for Team A and another page for Team B. which is linked to my navbar with this code. HTML Code:
<if condition="$show['guest']"> </if> <if condition="$show['member']"> <if condition="$bbuserinfo['field16'] === 'Team1'"> <div class="sidebar_menu"><a href="http://MYSITE.com/forum/Team_A.php">MY TEAM</a></div></if> <if condition="$bbuserinfo['field16'] === 'Team2'"> <div class="sidebar_menu"><a href="http://MYSITE.com/forum/Team_B.php">MY TEAM</a></div></if> </if> I need it so that when in Team A, you are UNABLE to view Team B's page.. as well as the other way round. Could someone help me do this please, many thanks. |
#2
|
|||
|
|||
![]()
You need to do something similar within the php of your custom pages, show the content if they are a member of group a and show an error message if they are not. There is a function in VB to print out a standard 'no permission' error message page if you want as well, I forget hte name of the top of my head. But if you look through the VB files you should be able to find it
|
#3
|
|||
|
|||
![]()
Oh Dear, of course you do, well its almost 2am here i'm tried, can't think straight, thank you very much for your help, i often need reminding about what to do when it comes to coding, I'm really new to this, and need a kick start every now and then
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|