1
I want to get rid of my login block as I used tabs for my user functions, at the top of my theme at the moment is:
New Users Register Here & Existing Users Login Herewhich changes to
Hello 'username' View Account when logged in.
<{if $xoops_isuser}> Hello <{$xoops_uname}>
your account <{else}> New Users Register Here<{/if}>
<{if $xoops_isuser}> <{else}> Existing Members Login
<{/if}>
what I want is the user login boxes there instead, and once logged in it just says
Welcome Back 'username'Anyone know the code that would do that. I need the username box, the password box, the remember me checkbox, and login button, below that should be register now and lost password links.
Something along the lines of this going across the top of my page, I'm not sure I'm on the right track because my coding abilities stink :) and I'm 150% sure that if I put this in my theme I'll get the white page of DEATH
<table width="100%" border="0">
<tr>
<td width="50%"><{if $xoops_isuser}> Welcome Back <{$xoops_uname}> <{else}> <form style="margin-top: 0px;" 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="checkbox" name="rememberme" value="On" class ="formButton" />
<{$block.lang_rememberme}>
<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" /><input type="hidden" name="op" value="login" /><input type="submit" value="<{$block.lang_login}>" />
<{$block.sslloginlink}><br />
<a href="<{$xoops_url}>/user.php#lost"><{$block.lang_lostpass}>a> <a href="<{$xoops_url}>/register.php"><{$block.lang_registernow}>a>
form> <{/if}>td>
<td width="30%"><form style="margin-top: 1px; margin-bottom: 0px" action="<{$xoops_url}>/search.php" method="post">
<div align="right"> Search Site
<input class="button" type="text" name="query" size="10" />
<input type="hidden" name="action" value="results" />
<input name="Search" type="submit" class="gumb" value="GO" />
div>
form>td>
<td width="20%" align="right" class="vrijeme"><span id="clock">span> <script language="JavaScript" type="text/javascript" src="<{$xoops_imageurl}>images/clock.js">
script> td>
tr>
table>