Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Smarty {if} statement to check if user is logged in

Hi guys, i cant seem to find a documentation, if i put a smarty code inside the .tpl template, what's the syntax of doing so?

example:

**inside default.master.tpl i'd like to have something visitors(not logged in users) to see

{if not $User="loggedin"}
<show this to the logged in >
{/if}

Comments

Sign In or Register to comment.