Hey there, i am wondering how i can display the currently logged in username. Also i would like to confirm that <xen:if is="{$visitor.user_id}"> is the id of the user right.
Hey there, i am wondering how i can display the currently logged in username. Also i would like to confirm that <xen:if is="{$visitor.user_id}"> is the id of the user right.
<xen:if is="$visitor.user_id">
<p> Welcome <?php $visitor.username; ?> what would you like to do today?</p>
<xen:else />
<p> Hello Looks like you are not logged in! You Should log in!</p>
<?php login(); ?>
</xen:if>
I have tried it with the curly brackets around to, that just gives me an error. Unless i do not need the php tags, but that seems highly unlikely.