Judge whether the user logs in
{if $user.ID>0} <!-- Judge whether the user ID is greater than 0 (the registered user ID will be greater than 0... --> Welcome: {$zbp ->user ->StaticName}<-- Here is the content displayed after the user logs in --> {else} <a href="{$host}? Reg">Register</a><-- Here is the content displayed when the user has not logged in --> {/if}
Example:
{if $user. ID>0} The logged in user can see me! {else} Seeing me means you haven't logged in yet! {/if}
1 ->Administrator
2 ->Website editing
3 ->Author
4 ->Collaborators
5 ->Reviewers
6 ->Tourists
Example 1:
{if $user.Level < 2} Only administrators above can see it! {/if}
Example 2:
{if $user.Level == 1} Only administrators can see! {/if}