View previous topic :: View next topic |
Author |
Message |
moret
Joined: 22 Nov 05 Posts: 2
|
Posted: Thu Dec 01, 2005 11:16 am Post subject: Login form minor changes |
|
|
I'd like to suggest two minor changes to the login.
First is to give automatic focus to the username field on the login form. It's quite simple, all that's needed is to change the code on the login form from:
Code: |
<input type="text" name="username" size="25" maxlength="40" value=""/>
|
to:
Code: |
<input type="text" name="username" id="username" size="25" maxlength="40" value=""/><script>document.getElementById("username").focus()</script>
|
Second is to place a smaller login form right on the home page, on the top of the home screen. The code would look like this:
Code: |
<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR VALIGN=BOTTOM>
<TD COLSPAN=2><SPAN CLASS=h2>SpielByWeb</SPAN></TD>
<TD COLSPAN=3 ALIGN=RIGHT>
<form action="" method="post" target="_top" class="main-login">
Username:
<input type="text" name="username" id="username" size="7" maxlength="40" value=""/><script>document.getElementById("username").focus()</script>
Password:
<input type="password" name="password" size="7" maxlength="32"/>
<input type="hidden" name="redirect" value="/"/>
<input type="submit" name="login" class="mainoption" value="Log in"/>
</form>
</TD>
</TR>
<TR VALIGN=TOP>
<TD COLSPAN=5 BGCOLOR=0066CC HEIGHT=2></TD>
</TR>
<TR VALIGN=TOP>
<TD COLSPAN=5><IMG SRC=images/tp.gif WIDTH=800 HEIGHT=1></TD>
</TR>
<TR VALIGN=TOP ALIGN=CENTER>
<TD CLASS=small_text_8 ALIGN=LEFT><A CLASS=menu HREF=index.php?lang=E&sid=295b759e9bbaaf394ae454f13ec7d6c4>Home</A></TD>
<TD CLASS=small_text_8><A CLASS=menu HREF=create.php?lang=E&sid=295b759e9bbaaf394ae454f13ec7d6c4>Create Game</A> | <A CLASS=menu HREF=games.php?lang=E&sid=295b759e9bbaaf394ae454f13ec7d6c4>Games List</A> | <A CLASS=menu HREF=users.php?lang=E&sid=295b759e9bbaaf394ae454f13ec7d6c4>Rankings</A></TD>
<TD CLASS=small_text_8><A CLASS=menu HREF=rules.php?lang=E&sid=295b759e9bbaaf394ae454f13ec7d6c4>Rules</A></TD>
<TD CLASS=small_text_8><A CLASS=menu HREF=forum/?sid=295b759e9bbaaf394ae454f13ec7d6c4>Forum</A> | <A CLASS=menu HREF=forum/viewforum.php?f=1&sid=295b759e9bbaaf394ae454f13ec7d6c4>Updates</A></TD>
<TD ALIGN=RIGHT CLASS=small_text_8><A CLASS=menu HREF="forum/profile.php?mode=sendpassword">Lost Password</A> | <A CLASS=menu HREF="forum/profile.php?mode=register&sid=295b759e9bbaaf394ae454f13ec7d6c4">Register</A><BR></TD>
</TR>
</TABLE>
|
and a new class should be created in the CSS:
Code: |
.main-login
{
margin: 0px;
padding-bottom: 4px;
}
|
I guess this is it. Login will be much easier this way! _________________ --
-- <CLICK> -- D. Moret R. <contato-spielbyweb@moret.pro.br>
-- |
|
Back to top |
|
 |
moret
Joined: 22 Nov 05 Posts: 2
|
Posted: Fri Dec 09, 2005 8:22 am Post subject: |
|
|
Bad idea I guess, huh? No replies at all... |
|
Back to top |
|
 |
milksheikh Site Admin

Joined: 24 Sep 03 Posts: 399
Location: Brooklyn, New York, USA
|
Posted: Fri Dec 09, 2005 10:08 am Post subject: |
|
|
Not a bad idea, I just don't have time to get to it at the moment (just returned to the U.S. after 6 months in Europe last Friday)... |
|
Back to top |
|
 |
milksheikh Site Admin

Joined: 24 Sep 03 Posts: 399
Location: Brooklyn, New York, USA
|
Posted: Mon Apr 17, 2006 9:19 pm Post subject: |
|
|
And finally done -- it should be in place shortly... |
|
Back to top |
|
 |
mrbass

Joined: 05 Apr 06 Posts: 182
Location: Las Vegas
|
Posted: Mon Apr 17, 2006 11:08 pm Post subject: |
|
|
Tried to get this for boardgamegeek but they don't care even though yahoo mail, google, etc. all do it. Can't get the post cuz the 'temp' file server is up on bgg. Thanks for implementing this.
Try to do it for phpbb login but no biggie as most login from main page so it's a moot point. Other thing is not sure how this works php session stuff is when you click the link from your email and you login you either must
a) click back twice and refresh to play in your game
OR
b) click 'Your Games' and find the one that's waiting for you to play
if possible how it after clicking link in email and then logging in have it resort automatically back to the link. If you want I can try researching this for the php code? I'm sure it's just php sessions login code. |
|
Back to top |
|
 |
milksheikh Site Admin

Joined: 24 Sep 03 Posts: 399
Location: Brooklyn, New York, USA
|
Posted: Mon Apr 17, 2006 11:27 pm Post subject: |
|
|
mrbassx wrote: | if possible how it after clicking link in email and then logging in have it resort automatically back to the link. |
This should be how it works now (with the changes that I just made). Let me know if it isn't working quite right (although it just did for me). |
|
Back to top |
|
 |
mrbass

Joined: 05 Apr 06 Posts: 182
Location: Las Vegas
|
Posted: Tue Apr 18, 2006 1:01 am Post subject: |
|
|
oops it does...thanks a ton ...perfect |
|
Back to top |
|
 |
|