Hi,
I am trying to customize the Email Preferences Form template in the discussion module Member Profile. I would like to remove the option to update their email address, but still allow them to make changes to their email preferences.
With our system, users are not allowed to change their email through their Member profile; rather, they must be forwarded to a separate page which better integrates with our website.
So, I have removed the input code for the email, and added a link to the appropriate place to change their email.
However, now when a member tries to change his email settings, he receives this error:
* The action you have requested is invalid.
How can I allow members to still update their email settings while NOT allowing them to change their email address?
Thanks in advance for your help!
By the way, here’s the Email Preferences Template code with the modifications listed above:
<form method=“post” action=”{path:update_email_settings}”>
<table border=’0’ cellspacing=’0’ cellpadding=’0’ >
<tr>
<td class=’profileHeadingBG’ colspan=’2’><div class=“tableHeading”>{lang:email_settings}</div></td></tr><tr>
<td class=’tableCellTwo’ [removed]><div class=’itempadbig’>{lang:email}</div></td>
<td class=’tableCellTwo’>{email}
<a >Change Email Address</a></td></tr><tr>
<td class=’tableCellOne’ colspan=’2’><div class=’defaultBold’><input type=’checkbox’ name=’accept_user_email’ value=’y’ {state:accept_user_email} /> {lang:accept_user_email}</div></td></tr><tr>
<td class=’tableCellOne’ colspan=’2’><div class=’defaultBold’><input type=’checkbox’ name=’notify_by_default’ value=’y’ {state:notify_by_default} /> {lang:notify_by_default}</div></td></tr><tr>
<td class=’tableCellOne’ colspan=’2’><div class=’defaultBold’><input type=’checkbox’ name=’notify_of_pm’ value=’y’ {state:notify_of_pm} /> {lang:notify_of_pm}</div></td></tr><tr>
<td class=’tableCellOne’ colspan=’2’><div class=’defaultBold’><input type=’checkbox’ name=’smart_notifications’ value=’y’ {state:smart_notifications} /> {lang:enable_smart_notifications}</div></td></tr><tr>
<td class=’tableCellOne’ colspan=’2’>
<div class=’marginpad’>
<div class=’defaultBold’><div class=“itempad”>* {lang:existing_password}</div></div>
<div class=’default’><div class=“itempad”>{lang:existing_password_email}</div></div>
<input type=’password’ class=’input’ name=’password’ value=’’ maxlength=’32’ style=’width:300px’/>
</div>
</td></tr><tr>
<td class=’tableCellOne’ colspan=’2’>
<div class=’marginpad’>
<input type=’submit’ class=’submit’ value=’{lang:update}’ />
* {lang:required}
</div></td>
</tr>
</table></form>