1
Hello, I found a little script to alternate between login and logout depending on what the user is. Here it is:
<{if $xoops_isuser}>
<{$xoops_uname}> <a href="<{$xoops_url}>/user.php?op=logout">Logout</a> ~ <a href="<{$xoops_url}>/user.php">Account</a>
<{else}>
nbsp;<a href="<{$xoops_url}>/user.php">Log in</a> of <a href="<{$xoops_url}>/register.php">Register</a>nbsp;
{/if}
It gives me an error, probably a stupid one:"syntax error: unclosed tag {else}". How do i close it?
And also, i'd like to display the user name, like: Welcome, anonymous, Welcome (name). Can u help me with this one? Thanks