<![CDATA[ Adding Register Button to Login - My Forums]]> https://forums.modx.com/thread/?thread=44790 <![CDATA[Re: Adding Register Button to Login]]> https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257659
Create Account<br /><a href="[~5~]"><img src="http://www.grstreamkeepers.com/webdev/newweb/assets/images/Registerbutton.gif"></a>

and then placed this
{{register}}
below this line
<a href="#" onclick="webLoginShowForm(2);return false;" id="forgotpsswd">Forget Your Password?</a>
{{register}}
	</fieldset>
in the formlogin template and voila it worked. Seems rather simple after I figured it out. Can’t believe I didn’t see it from the beginning. rolleyes

]]>
nootkan Aug 06, 2010, 04:06 PM https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257659
<![CDATA[Re: Adding Register Button to Login]]> https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257658
Here’s the default WebLogin form - it’s just HTML, with some specified HTML elements to act as separators for the various parts; WebLogin knows which part to display. You would add your link to the registration page in the first section, the "login form section".
    <!-- #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" /> 
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><b>User:</b></td>
        <td><input type="text" name="username" tabindex="1" onkeypress="return webLoginEnter(document.loginfrm.password);" size="8" style="width: 150px;" value="[+username+]" /></td>
      </tr>
      <tr>
        <td><b>Password:</b></td>
        <td><input type="password" name="password" tabindex="2" onkeypress="return webLoginEnter(document.loginfrm.cmdweblogin);" style="width: 150px;" value="" /></td>
      </tr>
      <tr>
        <td><label for="chkbox" style="cursor:pointer">Remember me:  </label></td>
        <td>
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><input type="checkbox" id="chkbox" name="chkbox" tabindex="4" size="1" value="" [+checkbox+] onclick="webLoginCheckRemember()" /></td>
            <td align="right">                                    
            <input type="submit" value="[+logintext+]" name="cmdweblogin" /></td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td colspan="2"><a href="#" onclick="webLoginShowForm(2);return false;">Forget Password?</a></td>
      </tr>
    </table>
    </td>
    </tr>
    </table>
    </form>
    <hr>
    <!-- log out hyperlink section -->
    <a href='[+action+]'>[+logouttext+]</a>
    <hr>
    <!-- Password reminder form section -->
    <form name="loginreminder" method="post" action="[+action+]" style="margin: 0px; padding: 0px;">
    <input type="hidden" name="txtpwdrem" value="0" />
    <table border="0">
        <tr>
          <td>Enter the email address of your account <br />below to receive your password:</td>
        </tr>
        <tr>
          <td><input type="text" name="txtwebemail" size="24" /></td>
        </tr>
        <tr>
          <td align="right"><input type="submit" value="Submit" name="cmdweblogin" />
          <input type="reset" value="Cancel" name="cmdcancel" onclick="webLoginShowForm(1);" /></td>
        </tr>
      </table>
    </form>
]]>
sottwell Aug 06, 2010, 12:35 PM https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257658
<![CDATA[Re: Adding Register Button to Login]]> https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257657
Automatic User Registration. Those that wish to comment on blogs must first create an account. This comes pre-configured with a "Captcha" anti-robot registration feature. View registration form
]]>
nootkan Aug 06, 2010, 12:22 PM https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257657
<![CDATA[Re: Adding Register Button to Login]]> https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257656 [!WebLogin? &tpl=`FormLogin` &loginhomeid=`[(site_start)]`!]
Then just add the registration link to the chunk.]]>
bunk58 Aug 06, 2010, 02:59 AM https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257656
<![CDATA[Re: Adding Register Button to Login]]> https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257655 Still no solution for this problem. I guess I must not be asking the right questions. Sorry.]]> nootkan Aug 06, 2010, 02:51 AM https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257655 <![CDATA[Re: Adding Register Button to Login]]> https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257654
 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><input type="checkbox" id="chkbox" name="chkbox" tabindex="4" size="1" value="" [+checkbox+] onclick="webLoginCheckRemember()" /></td>
        <td align="right">                                    
        <input type="submit" value="[+logintext+]" name="cmdweblogin" /></td>
      </tr>
      <tr>
      <a href="[~5~]">Registration</a>
      </tr>
    </table>
    </td>
  </tr>

Also tried adding this:
<img src="http://www.mywebsite/images/register.gif" alt="Register Here">


Neither one seems to work. Is there another way to do this?
]]>
nootkan Jul 29, 2010, 08:30 PM https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257654
<![CDATA[Re: Adding Register Button to Login]]> https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257653 ]]> sottwell Jul 23, 2010, 11:03 PM https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257653 <![CDATA[Adding Register Button to Login]]> https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257652 nootkan Jul 23, 2010, 07:20 PM https://forums.modx.com/thread/44790/adding-register-button-to-login#dis-post-257652