I followed the ideas in the auto login + theme thread, but it does not work for me. Trying to use the login built into my theme instead of block.
Here is what I have:
Quote:
href="<{$xoops_url}>/user.php"><{$xoops_uname}></a> !<{else}>
<form onkeyup="highlight(event)" onclick="highlight(event)" style="margin-top: 2px; margin-bottom: 0px" action="<{$xoops_url}>/user.php" method="post">
<input name="uname" onblur="if(this.value=='') this.value='Username';" onfocus="if(this.value=='Username') this.value='';" type="text" value="Username" size="10" />
<input onblur="if(this.value=='') this.value='Password';" onfocus="if(this.value=='Password') this.value='';" value="Password" name="pass" type="password" size="10" />
<input type="hidden" name="op" value="login" />
<input name="submit" type="submit" value="Login" />
<input type="checkbox" name="rememberme" value="On" class ="formButton" />remember me <br/>
</form>
<{/if}></td>
<td align="left" class="headercenter"> <{if $xoops_isuser}> <{else}>
<form style="margin-top: 2px; margin-bottom: 0px" action="<{$xoops_url}>/register.php" method="post">
<input name="submit" type="submit" value=" Join " />
</form>
<{/if}> </td>
What do I need to change?
TIA and Merry Christmas.
hi seymour.
It looks nothing should be changed with theme.
Are you success to enable auto-login hack via login-block?
If not, retry overwriting the files.
Yes it works through the login block. But when I use the theme login, I stay logged in until I close the browser, then if I return I am asked to login again.
So is there something missing in the theme login form, I tried to compair with the block template but cannot, or do not, know what differences would cause this.
I've found your typo.
href="<{$xoops_url}>/user.php"><{$xoops_uname}></a> !<{else}>
<form onkeyup="highlight(event)" onclick="highlight(event)" style="margin-top: 2px; margin-bottom: 0px" action="<{$xoops_url}>/user.php" method="post">
<input name="uname" onblur="if(this.value=='') this.value='Username';" onfocus="if(this.value=='Username') this.value='';" type="text" value="Username" size="10" />
<input onblur="if(this.value=='') this.value='Password';" onfocus="if(this.value=='Password') this.value='';" value="Password" name="pass" type="password" size="10" />
<input type="hidden" name="op" value="login" />
<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
<input name="submit" type="submit" value="Login" />
<input type="checkbox" name="rememberme" value="On" class ="formButton" />remember me <br/>
</form>
<{/if}></td>
<td align="left" class="headercenter"> <{if $xoops_isuser}> <{else}>
<form style="margin-top: 2px; margin-bottom: 0px" action="<{$xoops_url}>/register.php" method="post">
<input name="submit" type="submit" value=" Join " />
</form>
<{/if}> </td>
Thanks for the quick reply, and Merry Christmas.
I have edited the files and will test when my server lets me upload. Currently getting a disk full error from my ftp client.
Well, thanks again. Tested and it is working fine.
Now on the Xoops site 2.0.9 final has been released. Should this hack work with that version?
It sounds good.
Quote:
Now on the Xoops site 2.0.9 final has been released. Should this hack work with that version?
No.
I'll make the new patch files.
But it will be not so soon.