We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4749
    • 623 Posts
    The custom fields are available in both the template and profile. And yes, they are visible in the manager.
      The MODx has you...
      Utah Web Design
      • 25551 ☆ A M B ☆
      • 1,231 Posts
      Actually you can’t see the extra fields in the MODx manager if that’s what you mean.... I read it would take a lot of changing of code to do that. The custom fields are for address lines and only show up when registering and if you view your own profile using the edit profile option that’s with WLPE. I dare say if you use the manager setting within WLPE it would show up there too but not in the MODx manager as I said.
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 10449
        • 956 Posts
        Thanks for the clarification. It would be nice if the extra-fields would blend in seamlessly in the modx webuser manager (maybe in an extra tab).
          • 25551 ☆ A M B ☆
          • 1,231 Posts
          Yeah it would be nice! I just have the fields stored in a table within the database like how the snippet was made. Just took me ages to figure out how to do it! Maybe something in the future will come up. grin
            Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
            AugmentBLU - MODX Partner

            BLUcart - MODX Revolution E-Commerce & Shopping Cart
            • 4749
            • 623 Posts
            rossco,
            Are you using the &customTable and &customFields parameters? It would be great if you could post your snippet call and how you configured your db. Also, are you using user images? If so, have you gotten them to work? I’m able to create new fields for the forms and they’re being created in the db, but nothing is saving.
              The MODx has you...
              Utah Web Design
              • 25551 ☆ A M B ☆
              • 1,231 Posts
              No probs... finally can offer someone else help rather than asking all the time laugh

              I have only used the &customFields as I don’t mind the information being stored in the web_user_attributes_extended table. All is stored in my database and shows up in your profile, it’s also editable and stores. User images works fine for me... the call below dictates dimensions and maximum size of the user image.


              My call for the registration

              [!WebLoginPE? &type=`register` &userImage=`200000,250,250` &registerTpl=`registerTpl` &loginFormTpl=`loginTpl` &regSuccessId=`29` &regSuccessPause=`3` &groups=`Registered Member` &regRequired=`email,username,fullname,password,formcode,tos` &customFields=`address1,address2,address3`!]



              My registration form (i created this as a chunk and called as &registerTpl=`registerTpl` in the above call)

              [+wlpe.message+]
              	<div style="width:500px; padding:20px 20px 20px 0px; margin: 0 auto">
              		<form id="wlpeUserRegisterForm" action="[~[*id*]~]" method="post" enctype="multipart/form-data">
              			
              					<h3>Register for a new user account</h3>
              					<p>Use this form to register for a new user account.<br />
              						<span class="info">Filds marked with <span class="required">*</span> are required.</span>
              					</p>
              				
              				
              			
              			
              				<fieldset style="width:380px;margin: 0 auto;border: 1px dashed rgb(85, 85, 85); padding: 60px; margin-bottom: 50px;margin-top:50px; text-align: center;">
              				<h3>User Details</h3>
                              <p>* Desired User Name</p>
              				<label for="wlpeUserRegisterUserName"><span class="required"></span>
              				<input size="20"  id="wlpeUserRegisterUserName" type="text" name="username" value="[+post.username+]" />
              				</label>
              
              <p>* Full Name</p>
                      <label for="wlpeUserRegisterFullName"><span class="required"></span>
              				<input size="20"  id="wlpeUserRegisterFullName" type="text" name="fullname" value="[+post.fullname+]" />
              				</label>
              <p>* Email</p>
                      <label for="wlpeUserRegisterEmail"><span class="required"></span> 
              				<input size="20"  id="wlpeUserRegisterEmail" type="text" name="email" value="[+post.email+]" />
              				</label>
              <p>Date of birth (MM-DD-YYYY)</p>
              <p>
              				<label for="wlpeUserRegisterDob"><span class="info"></span>
              				<input size="20"  id="wlpeUserRegisterDob" type="text" name="dob" value="[+post.dob+]" />
              				</label>
              </p>
              <p>Gender</p>
              <p>
              				[+form.gender+]
              		</p>  
              				</fieldset>
              <fieldset style="width:380px;margin: 0 auto;border: 1px dashed rgb(85, 85, 85); padding: 60px; margin-bottom: 50px;margin-top:50px; text-align: center;">
                      <h3>Password</h3>
                      <p>* Password</p>
              				<label for="wlpeUserRegisterPassword"><span class="required"></span>
              				<input size="20"  id="wlpeUserRegisterPassword" type="password" name="password" value="[+post.password+]" />
              				</label>
              <p>* Password (confirm)</p>
              				<label for="wlpeUserRegisterPasswordConfirm"><span class="required"></span>
              				<input size="20"  id="wlpeUserRegisterPasswordConfirm" type="password" name="password.confirm" value="[+post.password.confirm+]" />
              				</label>
              
              </fieldset>
              <fieldset style="width:380px;margin: 0 auto;border: 1px dashed rgb(85, 85, 85); padding: 60px; margin-bottom: 50px;margin-top:50px; text-align: center;">
              <h3>Address Details</h3>
              <p>Address Line 1</p>	<label for="wlpeUserProfileaddress1">
              <input id="wlpeUserProfileaddress1" type="text" value="[+user.address1+]" name="address1"/>
              </label>
              <p>Address Line 2</p>	<label for="wlpeUserProfileaddress2">
              <input id="wlpeUserProfileaddress2" type="text" value="[+user.address2+]" name="address2"/>
              </label>
              
              <p>Address Line 3</p>	<label for="wlpeUserProfileaddress3">
              <input id="wlpeUserProfileaddress3" type="text" value="[+user.address3+]" name="address3"/>
              </label>
              
              <p>County/State</p>
              
              				<label for="wlpeUserRegisterState">
              				<input size="20"  id="wlpeUserRegisterState" type="text" name="state" value="[+post.state+]" />
              				</label>
              <p>Post/Zip Code</p>
              				<label for="wlpeUserRegisterZip">
              				<input size="20"  id="wlpeUserRegisterZip" type="text" name="zip" value="[+post.zip+]" />
              				</label>
              <p>Country</p><p>
              				[+form.country+]
              </p>
              
              </fieldset>
              <fieldset style="width:380px;margin: 0 auto;border: 1px dashed rgb(85, 85, 85); padding: 60px; margin-bottom: 50px;margin-top:50px; text-align: center;">
              <h3>Contact Numbers</h3>
              <p>Phone number</p>
              				<label for="wlpeUserRegisterPhone">
              				<input size="20"  id="wlpeUserRegisterPhone" type="text" name="phone" />
              				</label>
              <p>Mobile number</p>
              				<label for="wlpeUserRegisterMobile">
              				<input size="20"  id="wlpeUserRegisterMobile" type="text" name="mobilephone" value="[+post.mobilephone+]" />
              				</label>
              
              <p>Fax number</p>
                                              <label for="wlpeUserRegisterFax">
              				<input size="20"  id="wlpeUserRegisterFax" type="text" name="fax" value="[+post.fax+]" />
              				</label>
              
              			</fieldset>
              
              <fieldset style="width:380px;margin: 0 auto;border: 1px dashed rgb(85, 85, 85); padding: 60px; margin-bottom: 50px;margin-top:50px; text-align: center;">
              <h3>Logo & Signature</h3>
              
              				<img id="wlpeUserDefaultImage" src="assets/snippets/webloginpe/userimages/logodefault.png" alt="Default User Image" title="Default User Image" height="250" width="250" />
              				
              		<p>User Photo</p>		<label for="wlpeUserProfilePhoto" id="photolabel">
              				<input id="wlpeUserProfilePhoto" type="file" name="photo" />
              				</label>
              
              				<p id="wlpeUserProfilePhotoInfo" class="info">Upload your company logo to associate with your account</p><p>No bigger than 200kb & will be resized to 250 x 250 pixels.</p>
              
              <p>Comment/Signature</p>
              			<label for="wlpeUserProfileComment">
              			<textarea id="wlpeUserProfileComment" rows="8" cols="40" name="comment">[+user.comment+]</textarea>
              			</label>
              				</fieldset>
              			
              
              				<div style="overflow:auto;height:200px;width:380px;margin: 0 auto;border: 1px dashed rgb(85, 85, 85); padding: 60px; margin-bottom: 50px;margin-top:50px; text-align: left;">
              				[+tos+]
              					</div>
              		
              <fieldset style="width:380px;margin: 0 auto;border: 1px dashed rgb(85, 85, 85); padding: 60px; margin-bottom: 50px;margin-top:50px; text-align: center;">
              <h3>Acceptance & Anti Spam</h3>
              
              <p><span class="required">*</span>I accept the Terms of Service<label for="wlpeTosCheckbox" id="wlpeTosCheckboxLabel">
              					<input size="20"  type="checkbox" id="wlpeTosCheckbox" name="tos" />
              				</label></p>
              
              		<div>		<img id="wlpeCaptchaImage" src="manager/includes/veriword.php" width="148" height="60" alt="If you have trouble reading the code, click on the code itself to generate a new random code." /></div>
              				
              	<p><span class="required">*</span>Please enter the code in the image.		</p>	
              <p>   <label for="wlpeUserRegisterCaptcha" id="wlpeCaptchaLabel">
              				<input type="text" id="wlpeUserRegisterCaptcha" name="formcode" />
              				</label></p>
                   <button type="submit" id="wlpeSaveRegisterButton" name="service" value="register">Register</button>
              				<button type="submit" id="wlpeCancelRegisterButton" name="service" value="cancel">Cancel</button>
              		</fieldset>
              		</form>
              	</div>


              Which ever custom fields you make they will show up in the modx_web_user_attributes_extended area of you database.

              If there’s anything else you need to know, let me know. I’ll try to answer as best as I can. Also, just noticed that some of my styling is left in this code so if you don’t wish fieldsets or divs just take them out!

              Ross
                Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                AugmentBLU - MODX Partner

                BLUcart - MODX Revolution E-Commerce & Shopping Cart
                • 12684
                • 118 Posts
                How do you go about doing this if you want to add custom fields with a long list of options. Basically I am trying to figure out how to do to the State like Scotty did to the Country. Instead of listing all 52 states in the custom call. Furthermore I need to add another field for a long list of categories. Do I really need to list these 80+ options to my call?
                  • 8454
                  • 55 Posts
                  @rossco: if you would be able to share the call + chunk + whatever else needed for a page (eg. "edit profile") where your custom fields could be accessed and edited, I would be most grateful. My issue in more detail: http://modxcms.com/forums/index.php/topic,12638.0.html.
                  (Sorry for crossposting)