1
I want to merge the login block into the theme.html.
I have created two files:
theme_blocklogin.html
<{if $xoops_isuser}>
<div style="font:Verdana, Arial, Helvetica, sans-serif; font-size:10px; font-weight:bold; text-align: right; padding-right: 55px; padding-top: 10px;">
Hello <a href="<{$xoops_url}>/user.php"><{$xoops_uname}></a><img src="<{$xoops_upload_url}><{$user.avatar}>"><br />!
</div>
<{else}>
<form style="margin-top: 4px; margin-bottom: 0px" action="<{$xoops_url}>/user.php" method="post">
Username<br>
<input style="border: 1px solid #73807F;" name="uname" type="text" size="12" />
<br>
Password<br>
<input style="border: 1px solid #73807F;" name="pass" type="password" size="12" />
<br>
<input type="hidden" name="op" value="login" />
<input class="button" style="border: 1px solid #73807F;" name="submit" type="submit" value="Login" />
</form>
<{/if}>
and
theme_blockjoin.html
<{if $xoops_isuser}><div style="font:Verdana, Arial,Helvetica, sans-serif; font-size:10px; font-weight:bold; "> <a href="<{$xoops_url}>/user.php?op=logout">Logout</a></div>
<{else}>
<div style="font:Verdana, Arial, Helvetica, sans-serif; font-size:10px; font-weight:bold; "><a href="<{$xoops_url}>/user.php#lost">Lost Password?</a>
<a href="<{$xoops_url}>/register.php">Join us</a>
</div>
<{/if}>
Both files are linked into the theme.html.
All works perfect I must say (thanks to the person provide my with this hack, don't know your name though)
What I really want is when people login not only the name is displayed (which works) but also the avatar!
As you can see in the first file I've made a attempt in doing this (attempt number 100). But somehow it doesn't work. Does anyone have an answer??