The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Only certain usergroups can see a link in navbar
Like the title says, I want to have only certain usergroups able to see a certain link in the navbar, how would I do that? I know it's the navbar template but I can't get the code right with <if>. Can anyone help me out?
Thanks. |
#2
|
||||
|
||||
try
<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3,4,5,6,7)">navlink</if> |
#3
|
|||
|
|||
Hmmm that doesn't work. It gives me a parse error when I submit the code. Any suggestions?
|
#4
|
||||
|
||||
try
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3,4,5,6,7))"> navlink </if> |
#5
|
|||
|
|||
Aha! Forgot that last ")"! Thanks, works great now.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|