We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35082
    • 57 Posts
    Hello again all!

    Hope not to take up too much time here, but I have a delima that I can't seem to solve. I'm using Revolution, and aattempting to use the lgnRegisterForm. Okay, I got the form integrated with my site template, and all is well on that front. But the below code doesn't seem to display properly:

    <div class="register">
    	
    	<div class="registerMessage">[[+error.message]]</div>
    
    		<form class="form" action="[[~[[*id]]]]" method="post"><input type="hidden" name="nospam:blank" value="" /> 
    
    		<label for="username">[[%register.username? &namespace=`login` &topic=`register`]] <span class="error">[[+error.username]]</span> </label> 
    		<input id="username" type="text" name="username:required:minLength=6" value="[[+username]]" /> 
    	
    		<label for="password">[[%register.password]] <span class="error">[[+error.password]]</span> </label> 
    		<input id="password" type="password" name="password:required:minLength=6" value="[[+password]]" /> 
    	
    		<label for="password_confirm">[[%register.password_confirm]] <span class="error">[[+error.password_confirm]]</span> </label> 
    		<input id="password_confirm" type="password" name="password_confirm:password_confirm=`password`" value="[[+password_confirm]]" /> 
    	
    		<label for="fullname">[[%register.fullname]] <span class="error">[[+error.fullname]]</span> </label> 
    		<input id="fullname" type="text" name="fullname:required" value="[[+fullname]]" /> 
    	
    		<label for="email">[[%register.email]] <span class="error">[[+error.email]]</span> </label> 
    		<input id="email" type="text" name="email:email" value="[[+email]]" /> <br class="clear" />[[+register.recaptcha_html]] [[+error.recaptcha]]
    	
    		<div class="form-buttons"><input type="submit" name="login-register-btn" value="Register" /></div>
    
    		</form>
    
    </div>
    ++++++++++++++++++++++++++++++++++++++++
    For some reason, my field names are showing up as
    register.username:
    (input field):
    register.password
    (input field):
    register.email
    (input field):

    and the actual text input box is sitting directly up under each field with : at end of field name.

    Now my login page is the total oppisite and looks nice,
    Username (input field): same line
    Password (input field): same line

    Any help would really be appreciated.
    [ed. note: ironchip last edited this post 14 years, 11 months ago.]
      • 3749
      • 24,544 Posts
      You need to use a + instead of % in the placeholders.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 33968
        • 863 Posts
        Sounds like your lexicon strings are not being parsed - try clearing the cache and see if they load after that.
          • 35082
          • 57 Posts
          When I replace the % with a +, the labels are removed completely, with only the ":" remaining.

          I looked at Login code, and the % is being used:
          <div class="loginForm">
              <div class="loginMessage">[[+errors]]</div>
              <div class="loginLogin">
                  <form class="loginLoginForm" action="[[~[[*id]]]]" method="post">
                      <fieldset class="loginLoginFieldset">
                          <legend class="loginLegend">[[+actionMsg]]</legend>
                          <label class="loginUsernameLabel">[[%login.username]]
                              <input class="loginUsername" type="text" name="username" />
                          </label>
                          
                          <label class="loginPasswordLabel">[[%login.password]]
                              <input class="loginPassword" type="password" name="password" />
                          </label>
                          <input class="returnUrl" type="hidden" name="returnUrl" value="[[+request_uri]]" />
          
                          [[+login.recaptcha_html]]
                          
                          <input class="loginLoginValue" type="hidden" name="service" value="login" />
                          <span class="loginLoginButton"><input type="submit" name="Login" value="[[+actionMsg]]" /></span>
                      </fieldset>
                  </form>
              </div>
          </div>

          Cleared cache as well, no change.
          [ed. note: ironchip last edited this post 14 years, 11 months ago.]
            • 35082
            • 57 Posts
            Wow, it's amazingly simple, although it took days to decipher. I have ran into this situation before a few months ago, and posted in another one of my posts.

            I simply took the same code, retaining the % in the placeholders, and placed it into a Chunk, then called the Chunk within my TV.

            Before I was just placing the code directly into the TV, using the html version of the rich text editor.

            Seems to me this rich text editor causes havoc with modx and html code at times.

            Now my only delima is how to get the input box on same line as the label itself, like it is in the login form.
              • 3749
              • 24,544 Posts
              Sorry, I didn't realize there were language tags there.

              You can usually get things on the same line (if they'll fit) but putting this in the CSS for both elements:

              display: inline;
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 35082
                • 57 Posts
                Thanks a bunch Bob. Man I've been using float, padding, position, clear, and almost everything else I could think of using, and finally got it to work.

                Now I just went back and cleaned up all that CSS with a simple display:inline;, and it works just fine. I must have missed that property in my training smiley.