1
iolai
Login box in theme.html
  • 2005/4/20 4:48

  • iolai

  • Quite a regular

  • Posts: 206

  • Since: 2004/6/26


I'd like to move my login box to theme.html. The problem is that when I do it, it doesn't display correctly. I think that this is because XOOPS doesn't interpret things like <{$block.lang_username}> correctly in theme.html. How can I make it work?

Here is the site where I have seen it:
http://www.warpigw2.com/

Thank you.

2
Bassman
Re: Login box in theme.html
  • 2005/4/20 5:05

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


This is the code used for that:
Quote:

<div align="right"><form onkeyup="highlight(event)" onclick="highlight(event)" style="margin-top: 2px; margin-bottom: 0px" action="<{$xoops_url}>/user.php" method="post"><input type="hidden"/>
<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="/" />
<input name="submit" type="submit" value="Login" />
<input type="checkbox" name="rememberme" value="On" class ="formButton" />remember me<br/><{/if}>
</form></div>

Note that this also allows for the Remember Me hack.

3
iolai
Re: Login box in theme.html
  • 2005/4/20 5:20

  • iolai

  • Quite a regular

  • Posts: 206

  • Since: 2004/6/26


Yeah, I just used it from their site, works fine with firefox, but bugs on internet explorer - says object expected or something like this.

4
iolai
Re: Login box in theme.html
  • 2005/4/20 5:27

  • iolai

  • Quite a regular

  • Posts: 206

  • Since: 2004/6/26


The site I test it on is www.atomsworld.com

5
Bassman
Re: Login box in theme.html
  • 2005/4/20 6:04

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I created an account and logged in using IE6 - it seems to work fine. Perhaps you could remove the code for the "remember me" checkbox if you don't have the hack installed.

PS You can delete my account if you wish :)

6
iolai
Re: Login box in theme.html
  • 2005/4/20 6:17

  • iolai

  • Quite a regular

  • Posts: 206

  • Since: 2004/6/26


Very weird, I try it on IE 6 and it pops ub a 'do you wish to debug' message, saying it misses an object on line 30...

Login

Who's Online

145 user(s) are online (78 user(s) are browsing Support Forums)


Members: 0


Guests: 145


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits