![]() |
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. |
try
<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3,4,5,6,7)">navlink</if> |
Hmmm that doesn't work. It gives me a parse error when I submit the code. Any suggestions?
|
try
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3,4,5,6,7))"> |
Aha! Forgot that last ")"! Thanks, works great now.
|
All times are GMT. The time now is 04:17 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:
|