24
Hi All,
I’ve added the login block at the top of the (theme.html) page and everything is working fine.
<form action="<{$xoops_url}>/user.php" method="post"><{$block.lang_username}><input type="text" name="uname" size="12" value="<{$block.unamevalue}>"><{$block.lang_password}><input type="password" name="pass" size="12"><input type="hidden" name="op" value="login" /><input type="submit" value="Login"></form>
Please I need some help from you to add a simple code which if no user logon to the site will display the login block above and if the user is login will replace the login block above and will display his username.
It is basically as the normal login block, after the user login to the site, the login block disappeared and it replaced with “user menu”
Can anyone help me to write this code?
Many thanks.