Remove "Allow members to email me" thing on registration

Started by wynnyelle, March 20, 2012, 01:26:07 PM

Previous topic - Next topic

wynnyelle

How do I remove this, does anyone know? Is there a setting in permissions, or would it have to be done with a code?

Sir Osis of Liver


You can edit it out in Register.template.php.  Do you want it to default 'yes' or 'no'?

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters


Sir Osis of Liver


In Register.template.php find this:



<dt><strong><label for="allow_email">', $txt['allow_user_email'], ':</label></strong></dt>
<dd>
<input type="checkbox" name="allow_email" id="allow_email" tabindex="', $context['tabindex']++, '" class="input_check" />
</dd>



Change to this:



<!--dt><strong><label for="allow_email">', $txt['allow_user_email'], ':</label></strong></dt-->
<dd>
<input type="hidden" name="allow_email" id="allow_email" tabindex="', $context['tabindex']++, '" class="input_check" />
</dd>



Didn't check it, but should remove the option, and submit hidden value 'no' for all registrations.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters


Advertisement: