We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15029
    • 35 Posts
    Hi,
    I didn’t want to use tables as in the default template, so I modified the code. At the same time I got rid off the functionality I didn’t want (e.g. forget passwd, remember me).
    Now after the user is logged in, the logout link doesn’t appear anymore.
    Do you see what I’m missing which is mandatory to keep?

    My snippet call is
    [!WebLogin? &tpl=`LoginTemplate` &logintext=`Login` &logouttext=`Logout`!]
    


    My LoginTemplate is
    <!-- login form section-->
    <form method="post" name="loginfrm" action="[+action+]" style="margin: 0px; padding: 0px;"> 
    <input type="hidden" value="[+rememberme+]" name="rememberme"> 
    <p>Username:  <input class="clsText" type="text" name="username" tabindex="1" onkeypress="return webLoginEnter(document.loginfrm.password);" value="[+username+]" /></p>
    <p>Password:   <input class="clsText" type="password" name="password" tabindex="2" onkeypress="return webLoginEnter(document.loginfrm.cmdweblogin);" value="" /></td></p>
    <p><input  class="clsSubmitBt1" type="submit" value="[+logintext+]" name="cmdweblogin" /></p>
    </form>
    
    <!-- log out hyperlink section -->
    <a href='[+action+]'>[+logouttext+]</a>
    


    Thanks
      • 4041
      • 788 Posts
      Weblogin uses <hr> as a splitter for the form sections, try this as your template:

      <!-- #declare:separator <hr> -->
      <!-- login form section-->
      <form method="post" name="loginfrm" action="[+action+]" style="margin: 0px; padding: 0px;"> 
      <input type="hidden" value="[+rememberme+]" name="rememberme"> 
      <p>Username:  <input class="clsText" type="text" name="username" tabindex="1" onkeypress="return webLoginEnter(document.loginfrm.password);" value="[+username+]" /></p>
      <p>Password:   <input class="clsText" type="password" name="password" tabindex="2" onkeypress="return webLoginEnter(document.loginfrm.cmdweblogin);" value="" /></td></p>
      <p><input  class="clsSubmitBt1" type="submit" value="[+logintext+]" name="cmdweblogin" /></p>
      </form>
      <hr>
      
      <!-- log out hyperlink section -->
      <a href='[+action+]'>[+logouttext+]</a>
      

        xforum
        http://frsbuilders.net (under construction) forum for evolution
        • 15029
        • 35 Posts
        Yes, that was the problem.
        Thanks.
        As the hr doesn’t look good in my design, I’ll hide it with css.