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'?

Even if the whole world has forgotten,
The song remembers when.

                              - H. Prestwood


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.
Even if the whole world has forgotten,
The song remembers when.

                              - H. Prestwood


Advertisement: