|
| 1 | +<!-- |
| 2 | + This source file is part of the open source project |
| 3 | + ExpressionEngine User Guide (https://github.com/ExpressionEngine/ExpressionEngine-User-Guide) |
| 4 | +
|
| 5 | + @link https://expressionengine.com/ |
| 6 | + @copyright Copyright (c) 2003-2020, Packet Tide, LLC (https://packettide.com) |
| 7 | + @license https://expressionengine.com/license Licensed under Apache License, Version 2.0 |
| 8 | +--> |
| 9 | + |
| 10 | +# Edit Profile Tag |
| 11 | + |
| 12 | +[TOC] |
| 13 | + |
| 14 | +## Overview |
| 15 | + |
| 16 | +Edit member profile. |
| 17 | + |
| 18 | +## Parameters |
| 19 | + |
| 20 | +### `datepicker=` |
| 21 | + |
| 22 | +Include the datepicker javascript. This should be set to ``yes`` if there is a date type member custom field in order to output the calendar. |
| 23 | + |
| 24 | + datepicker="yes" |
| 25 | + |
| 26 | +### `include_assets=` |
| 27 | + |
| 28 | +Include the CSS for the custom member fields. |
| 29 | + |
| 30 | + include_assets="yes" |
| 31 | + |
| 32 | +### `return=` |
| 33 | + |
| 34 | + return="member/registration/success" |
| 35 | + |
| 36 | + |
| 37 | +## Form Inputs |
| 38 | + |
| 39 | +### Email |
| 40 | + |
| 41 | +Member email address. |
| 42 | + |
| 43 | + <label for="email">Email</label> |
| 44 | + <input type="email" name="email" value="{email}" maxlength="120" size="40" /> |
| 45 | + |
| 46 | +### Password |
| 47 | + |
| 48 | +Member password. This is a **required** field. |
| 49 | + |
| 50 | + <label>Your New Password</label><br /> |
| 51 | + <input type="password" name="password" value="" maxlength="50" size="40" /> |
| 52 | + |
| 53 | +### Password Confirmation |
| 54 | + |
| 55 | +Password confirmation. If a new password is submited, the password confirmation field is **required** and must match the entered password. |
| 56 | + |
| 57 | + <label>Confirm New Password</label><br /> |
| 58 | + <input type="password" name="password_confirm" value="" maxlength="50" size="40" /> |
| 59 | + |
| 60 | +### Current Password |
| 61 | + |
| 62 | +If the password or the email address is submitted, the current password field is **required**. |
| 63 | + |
| 64 | + <label>Confirm New Password</label><br /> |
| 65 | + <input type="password" name="current_password" value="" maxlength="50" size="40" /> |
| 66 | + |
| 67 | +### Screen name |
| 68 | + |
| 69 | +Member username. This is a **required** field and must be unique across the site: |
| 70 | + |
| 71 | + <label for="screen_name">Screen Name</label> |
| 72 | + <input type="text" name="screen_name" value="{screen_name}" maxlength="120" size="40" /> |
| 73 | + |
| 74 | +### Username |
| 75 | + |
| 76 | +Member username. This is a **required** field and must be unique across the site: |
| 77 | + |
| 78 | + <label for="username">Username</label> |
| 79 | + <input type="text" name="username" value="{username}" maxlength="120" size="40" /> |
| 80 | + |
| 81 | +## Custom Profile Field Variable Pair |
| 82 | + |
| 83 | +All custom fields are output inside the ``{custom_profile_fields}`` varialble tag pair. |
| 84 | + |
| 85 | + {custom_profile_fields} |
| 86 | + <p> |
| 87 | + <label>{lang:profile_field}</label><br> |
| 88 | + <small>{lang:profile_field_description}</small><br> |
| 89 | + |
| 90 | + {form:custom_profile_field} |
| 91 | + |
| 92 | + </p> |
| 93 | + {/custom_profile_fields} |
| 94 | + |
| 95 | +## Custom Profile Field Variables |
| 96 | + |
| 97 | +#### {lang:profile_field} |
| 98 | + |
| 99 | +Outputs the custom field's name. |
| 100 | + |
| 101 | +#### {lang:profile_field_description} |
| 102 | + |
| 103 | +Outputs the field's description, if any. |
| 104 | + |
| 105 | +#### {form:custom_profile_field} |
| 106 | + |
| 107 | +Shows the fully parsed custom member form field. |
| 108 | + |
| 109 | +## Example |
| 110 | + |
| 111 | + {exp:member:edit_profile |
| 112 | + return="member/registration/success" |
| 113 | + include_assets="yes" |
| 114 | + datepicker="yes" |
| 115 | + } |
| 116 | + |
| 117 | + <p>* Required fields</p> |
| 118 | + <fieldset> |
| 119 | + <h4>Profile</h4> |
| 120 | + |
| 121 | + <p> |
| 122 | + <label for="username">Username*:</label><br /> |
| 123 | + <input type="text" name="username" id="username" value="{username}"/><br /> |
| 124 | + </p> |
| 125 | + |
| 126 | + <p> |
| 127 | + <label for="email">Email:</label><br /> |
| 128 | + <input type="text" name="email" id="email" value="{email}"/><br /> |
| 129 | + </p> |
| 130 | + |
| 131 | + <p> |
| 132 | + <label for="password">Password:</label><br /> |
| 133 | + <input type="password" name="password" id="password" value=""/> |
| 134 | + </p> |
| 135 | + |
| 136 | + <p> |
| 137 | + <label for="password_confirm">Confirm password*:</label><br /> |
| 138 | + <input type="password" name="password_confirm" id="password_confirm" value=""/> |
| 139 | + </p> |
| 140 | + |
| 141 | + <p> |
| 142 | + <label for="current_password">Current password*:</label><br /> |
| 143 | + <em>You <b>must</b> enter your current password to change your password, username or email.</em> |
| 144 | + <input type="password" name="current_password" id="current_password" value=""/> |
| 145 | + </p> |
| 146 | + |
| 147 | + |
| 148 | + {custom_profile_fields} |
| 149 | + <p> |
| 150 | + <label>{lang:profile_field}</label><br> |
| 151 | + <small>{lang:profile_field_description}</small><br> |
| 152 | + |
| 153 | + {form:custom_profile_field} |
| 154 | + |
| 155 | + </p> |
| 156 | + {/custom_profile_fields} |
| 157 | + |
| 158 | + </fieldset> |
| 159 | + |
| 160 | + <input type="submit" value="Register" class="btn btn-primary" /> |
| 161 | + {/exp:member:edit_profile} |
0 commit comments