[Helion] login form

Discussion in 'phpBB Suggestions' started by TomAlex, Mar 11, 2012.

  1. TomAlex

    TomAlex New Member

    This code:
    Code:
    <form action="{S_LOGIN_ACTION}" method="post" id="phpbb-header-login" onKeyPress = "if (event.keyCode==13) $('#phpbb-header-login').get(0).submit(); return true;">
    instead:
    Code:
    <form action="{S_LOGIN_ACTION}" method="post" id="phpbb-header-login">
    in overall_header.html
    adds the ability to login by pressing the Enter key.
     
  2. Arty

    Arty Administrator Designer

    No need for that, all browsers can submit form when you press enter without having to add keypress event.
     
  3. TomAlex

    TomAlex New Member

    I just tried to log in to this Forum.
    No dice. :)
    (IE8, IE9, FF8, FF10)
    Submitting on enter works only in Opera (11).
     
  4. Arty

    Arty Administrator Designer

    Oh, right, there is no submit button in this style. Add this anywhere within login form:
    Code:
    <div style="display: none;"><input type="submit" name="login" /></div>
     
  5. Lisa345

    Lisa345 New Member

    Hello,
    I have the same problem as op. where exactly do I add it? I add this code in the body?
     
  6. Arty

    Arty Administrator Designer

    Anywhere within login form. After <form> or before </form> will do.