1
I'm working on a theme and I want to have a single line in the header that either has a username/password form if the user is not logged in, or links to the users account info if they are logged in.
This is what I've got...
<{if $xxsomethingxx}>
<form action="user.php" method="post">
<{$lang_username}>: <input type="text" name="uname" size="13" maxlength="12" value="<{$usercookie}>">
<{$lang_password}>: <input type="password" name="pass" size="10" maxlength="32">
<input type="hidden" name="op" value="login">
<input type="submit" value="<{$lang_login}>">
form>
<{else}>
<{/if}>
the if/else/endif works fine, except I don't know what variable to test against to see if the user is logged in.
Also I don't know how to access $lang_username & $lang_password from outside of the login template... Someone help me out? :pitiful:
I'm sure this has been discussed, but I couldn't find an answer in the search.
Thanks in advance.
BFX