SpielByWeb Forum Index SpielByWeb
http://www.spielbyweb.com/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   Find a UserFind a User   UsergroupsUsergroups   RegisterRegister 
 Your GamesYour Games   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Login form minor changes

 
Post new topic   Reply to topic    SpielByWeb Forum Index -> Comments and Feature Requests
View previous topic :: View next topic  
Author Message
moret



Joined: 22 Nov 05
Posts: 2


PostPosted: Thu Dec 01, 2005 11:16 am    Post subject: Login form minor changes Reply with quote

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&amp;sid=295b759e9bbaaf394ae454f13ec7d6c4>Home</A></TD>
      <TD CLASS=small_text_8><A CLASS=menu HREF=create.php?lang=E&amp;sid=295b759e9bbaaf394ae454f13ec7d6c4>Create Game</A> | <A CLASS=menu HREF=games.php?lang=E&amp;sid=295b759e9bbaaf394ae454f13ec7d6c4>Games List</A> | <A CLASS=menu HREF=users.php?lang=E&amp;sid=295b759e9bbaaf394ae454f13ec7d6c4>Rankings</A></TD>
      <TD CLASS=small_text_8><A CLASS=menu HREF=rules.php?lang=E&amp;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&amp;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&amp;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
View user's profile Send private message Visit poster's website
moret



Joined: 22 Nov 05
Posts: 2


PostPosted: Fri Dec 09, 2005 8:22 am    Post subject: Reply with quote

Bad idea I guess, huh? No replies at all...
Back to top
View user's profile Send private message Visit poster's website
milksheikh
Site Admin


Joined: 24 Sep 03
Posts: 399

Location: Brooklyn, New York, USA

PostPosted: Fri Dec 09, 2005 10:08 am    Post subject: Reply with quote

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
View user's profile BoardGameGeek Send private message Send e-mail Visit poster's website
milksheikh
Site Admin


Joined: 24 Sep 03
Posts: 399

Location: Brooklyn, New York, USA

PostPosted: Mon Apr 17, 2006 9:19 pm    Post subject: Reply with quote

And finally done -- it should be in place shortly...
Back to top
View user's profile BoardGameGeek Send private message Send e-mail Visit poster's website
mrbass



Joined: 05 Apr 06
Posts: 182

Location: Las Vegas

PostPosted: Mon Apr 17, 2006 11:08 pm    Post subject: Reply with quote

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
View user's profile BoardGameGeek Send private message Visit poster's website
milksheikh
Site Admin


Joined: 24 Sep 03
Posts: 399

Location: Brooklyn, New York, USA

PostPosted: Mon Apr 17, 2006 11:27 pm    Post subject: Reply with quote

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
View user's profile BoardGameGeek Send private message Send e-mail Visit poster's website
mrbass



Joined: 05 Apr 06
Posts: 182

Location: Las Vegas

PostPosted: Tue Apr 18, 2006 1:01 am    Post subject: Reply with quote

oops it does...thanks a ton ...perfect
Back to top
View user's profile BoardGameGeek Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SpielByWeb Forum Index -> Comments and Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group