PDA

View Full Version : Permissions


thezman
01-20-2007, 11:14 PM
I have added another drop down to my navbar. It works great, but I want to limit access to it. That is, I want my users to be logged in before they can see the drop down.

How do I do that?

Attilitus
01-20-2007, 11:18 PM
Simply use the following code in your template.


<if condition="!$bbuserinfo['userid']">

Content to display to registered users

<else />

Content to display to non-registered users

</if>

da420
01-20-2007, 11:21 PM
Wrap the code you want hidden from guests like so...

<if condition="$show['member']">YOURCODEHERE</if>

thezman
01-21-2007, 12:37 AM
Worked great. Thanks.