Need help with IF condition.

arcaneex

Active member
I have this:
<xen:if is="{$user.steam_auth_id} > 0">
I need it, to check on login of the user with this condition. How?
TL;DR How to make a conditional after someone logins, if the condition is true it logs him in as usual, otherwise it doesn't show him the forum but rather a popup or a page ( and he cannot view the forum, at all untill the conditional is set to true )
 
Whenever you're talking about the currently logged in user, you would use $visitor rather than $user.

Also, if you're trying to check if the value exists or NOT 0 then it's sufficient to simply do this:

<xen:if is="{$visitor.steam_auth_id}">
 
I'm sorry I guess I wasn't clear nuff.
I want to execute an if condition AFTER the login, and unless the condition is true the user won't be able to view the forum list
 
Back
Top Bottom