Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: dapaq2 on October 09, 2016, 03:36:50 PM

Title: Question - "Allow users to email me" in user profile
Post by: dapaq2 on October 09, 2016, 03:36:50 PM
Group,

I want to hide "Allow users to email me" within each users profile and force each user to allow other users to email them. This inquiry is NOT about visually showing their email address, that is not what I am wanting, email addresses can remain hidden. What I want is to prevent users from unchecking this box not allowing to be emailed. I don't want them to know disabling this is an option so want to hide it and prevent them from disabling this function. So how can I go about accomplishing this, are there any mods currently available for this? If not, what would I need to do to hard code the changes manually?

Thank you,
Doug
Title: Re: Question - "Allow users to email me" in user profile
Post by: vbgamer45 on October 09, 2016, 10:04:38 PM
Remove this from themes/default/register.template.php

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

Title: Re: Question - "Allow users to email me" in user profile
Post by: dapaq2 on October 10, 2016, 04:15:19 AM
I am not using the registration system, all members accounts are setup by me through pre-registration. How do I hide the "Allow users to email me" from or in the users profile?