We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10165
    • 129 Posts
    (Evo v.1.0.4) php 5

    I’ve tried all day to get this working, but can’t see what could be wrong - I have all the other values working fine, but the email is blank (using [+view.email+] ).

    The profiles for web users work fine and are similar so I’m really struggling to see what’s going on. I did wonder if it might be some session problem due to me logging in and out with ’admin user’ and ’web user’ for testing. I’m using Firefox to test the pages/logins etc. and using Safari for the modx main admin manager access to keep them separate.

    here’s my template for editing profile in the manager below:

    any ideas hopefully I might have missed something obvious! - many thanks..
    [+wlpe.message+]
    <div id="wlpeUser">
    	<form id="wlpeUserProfileForm" action="[~[*id*]~]" method="POST" enctype="multipart/form-data">
    		<fieldset id="wlpeUserProfileButtons">
    			<button type="submit" id="wlpeSaveProfileButton" name="service" value="saveuserprofile">Save</button>
    			<button type="submit" id="wlpeProfileDoneButton" name="service" value="cancel">Done</button>
    			<button type="submit" id="wlpeProfileDeleteButton" name="service" value="deleteuserprofile">Delete This Profile</button>
    		</fieldset>
    				<fieldset id="wlpeUserProfileInput">
    			<div id="wlpeUserInfo">
    				<h3 id="wlpeProfileWelcome">Editing the profile of [+view.username+] ([+view.name-first+])! ---[+view.email+]---</h3>
    				<p id="wlpeProfileInfo" class="info">Use this form to edit [+view.username+]'s profile information</p>
    			</div>
    
    			<legend>[+view.username+]'s User Profile</legend>
    			
    			<!-- These hidden fields are IMPORTANT! -->
    			<input type="hidden" name="internalKey" value="[+view.internalKey+]" />
    			<input type="hidden" name="username" value="[+view.username+]" />
    						<ol class="group">
    							<li class="title">
    [+form.title+]
    							</li>
    							<li class="name-first">
    								<label for="wlpeUserProfilename-first">First Name <abbr title="Required">*</abbr></label>
    							  <input name="name-first" id="wlpeUserProfilename-first" type="text" value="[+view.name-first+]" tabindex="2" class="validate[required]" />
    							</li>
    							<li class="name-last end">
    								<label for="wlpeUserProfilename-last">Surname <abbr title="Required">*</abbr></label>
    							  <input name="name-last" id="wlpeUserProfilename-last" type="text" value="[+view.name-last+]" tabindex="3" class="validate[required]" />
    							</li>
    							<li class="company">
    								<label for="wlpeUserProfilecompany">Company <abbr title="Required">*</abbr></label>
    							  <input name="company" id="wlpeUserProfilecompany" type="text" value="[+view.company+]" tabindex="4" class="validate[required]" />
    							</li>
    							<li class="position end">
    								<label for="wlpeUserProfileposition">Position</label>
    							  <input name="position" id="wlpeUserProfileposition" type="text" value="[+view.position+]" tabindex="5" />
    							</li>
    							<li class="company-desc end">
    								<label for="wlpeUserProfilecompany-desc">Description of your company's services <abbr title="Required">*</abbr></label>
    							  <input name="company-desc" id="wlpeUserProfilecompany-desc" type="text" value="[+view.company-desc+]" tabindex="6" class="validate[required]" />
    							</li>
    							<li class="address">
    								<label for="wlpeUserProfileaddress">Address <abbr title="Required">*</abbr></label>
    							  <textarea name="address" rows="4" id="wlpeUserProfileaddress" tabindex="7"  class="validate[required]">[+view.address+]</textarea>
    							</li>
    							<li class="telephone-1 end">
    								<label for="wlpeUserProfiletelephone-1">Telephone (Primary) <abbr title="Required">*</abbr></label>
    							  <input name="telephone-1" id="wlpeUserProfiletelephone-1" type="text" value="[+view.telephone-1+]" tabindex="9" class="validate[required]" />
    							</li>
    							<li class="telephone-2 end">
    								<label for="wlpeUserProfiletelephone-2">Telephone (Secondary)</label>
    							  <input name="telephone-2" id="wlpeUserProfiletelephone-2" type="text" value="[+view.telephone-2+]" tabindex="10" />
    							</li>
    							<li class="fax end">
    								<label for="wlpeUserProfilefax">Fax</label>
    							  <input name="fax" id="wlpeUserProfilefax" type="text" value="[+view.fax+]" tabindex="11" />
    							</li>
    							<li class="postcode">
    								<label for="wlpeUserProfilepostcode">Postcode <abbr title="Required">*</abbr></label>
    							  <input name="postcode" id="wlpeUserProfilepostcode" type="text" value="[+view.postcode+]" tabindex="8" class="validate[required]" />
    							</li>
    							<li class="website end">
    								<label for="wlpeUserProfilewebsite">Web Address</label>
    							  <input name="website" id="wlpeUserProfilewebsite" type="text" tabindex="12" value="[+view.website+]" />
    							</li>
    							<li class="email">
    								<label for="wlpeUserProfileemail">Email <abbr title="Required">*</abbr></label>
    							  <input name="email" id="wlpeUserProfileemail" type="text" tabindex="13" value="[+view.email+]" class="validate[required,custom[email]]" />
    							</li>
    						</ol>
                            <div class="clear"></div>
    					</fieldset>
    			<fieldset id="wlpeNewPasswordArea">
    				<legend id="wlpeNewPasswordAreaLegend">Change your login</legend>
    				<p id="wlpeNewPasswordInfo">Change your password <br /><span class="info">(leave blank if you do not want a new password).</span></p>
    						<ol>
    
    							<li class="password-1">
    
    			<label for="wlpeUserProfilePassword"><span class="required">*</span> Password
    			<input id="wlpeUserProfilePassword" type="password" name="password" value="" />
    			</label>
    
    							</li>
    							<li class="password-2 end">
    
    
    			<label for="wlpeUserProfilePasswordConfirm"><span class="required">*</span> Password (confirm)
    			<input id="wlpeUserProfilePasswordConfirm" type="password" name="passwordconfirm" value="" />
    			</label>
    
    
    							</li>
    						</ol>
    
                            <div class="clear"></div>
            </fieldset>
    
    
    		<fieldset id="wlpeUserProfileButtons">
    			<button type="submit" id="wlpeSaveProfileButton" name="service" value="saveuserprofile">Save</button>
    			<button type="submit" id="wlpeProfileDoneButton" name="service" value="cancel">Done</button>
    			<button type="submit" id="wlpeProfileDeleteButton" name="service" value="deleteuserprofile">Delete This Profile</button>
    		</fieldset>
    
    	  </form>
        </div>