![]() |
Lynne Question- If statement for perms
Hi,
I'd like to hide one link which should only be viewable by me admin. What is the statement I should wrap around this. I'm adding another new post button and I don't want any members to see it. Quote:
|
Code:
<if condition="is_member_of($bbuserinfo, 6)"> |
Awesome. Thank you!:)
|
Hehe. I'm definitely not the only one who knows conditionals. In fact, all I know about conditionals I learned from the users here. :)
|
In the past, I have used:
<if condition"$show[admincplink]"> Content Here </if> Is there anything wrong with this? I know a lot of users use the <if condition="is_member_of($bbuserinfo, 6)"> CODE HERE </if> code, but to me it does the same job. |
$show['admincplink'] will be true for everyone that has access to the Admin CP (more than one usergroup can have access to the Admin CP). However, the second condition will only be true if the user is in the Administrators usergroup.
|
Quote:
|
All times are GMT. The time now is 02:29 PM. |
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:
|