Ok thank you borbole I'll try it now.
You are welcome Let me know how it will go.
Ok thank you borbole I'll try it now.
You made a nice function in your add-on where the user is asked to login or register. Which code would we add to achive that?
<a href="{xen:link 'register/'}">Register.</a>
<a href="{xen:link 'login/'}">Login here</a>
<xen:if is="{$isAwaitingEmailConfirmation}">
<a href="{xen:link 'register/'}">Register.</a>
<a href="{xen:link 'login/'}">Login here</a>
<xen:else />
<pre>{xen:raw $content}</pre><xen:comment><!-- content is escaped via parser --></xen:comment>
</xen:if>
<xen:if is="{$visitor.user_state} == 'email_confirm'">Awaiting Email Confirmation</xen:if>
<xen:if is="{$visitor.user_state} == 'email_confirm_edit'">Awaitin Email Confirmation (from edit)</xen:if>
<xen:if is="{$visitor.user_state} == 'moderated'">Awaiting Approval</xen:if>
<xen:if is="{$visitor.user_state} == 'valid'">Valid</xen:if>
<xen:if is="{$visitor.user_state} != 'valid'">NOT Valid (awaitin confirm+awaiting confirm edit+awaiting approval)</xen:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.