News:

Wondering if this will always be free?  See why free is better.

Main Menu

On-site member email - How to disable?

Started by css_script_writer, September 24, 2010, 03:00:02 PM

Previous topic - Next topic

css_script_writer

Hi everyone

Just a simple question here. Is it possible via the ACP (or a MOD) to disable the option in all member's profile to receive email from other members?. For example, in each profile under: Modify Profile>Account Settings there is an option called "Allow users to email me". Is it possible to hide this so that it doesn't appear and to also make the default for this "no" or unchecked?. I'd rather not do a code-edit because it might interfere with MODS. Spam is a concern.

Thanks, CSS
Anxiety Zone Forums & Chat Rooms
http://www.anxietyzone.com/index.php

Hj Ahmad Rasyid Hj Ismail

I think there isn't a mod but a way via phpMyAdmin where you change true (1) to false (0) for member emails to be turned off altogether. I can't remember where and how but do search for help or wait for one.


Joker™

make backup of files before editing them

For registration page
Themes\default\Registration.template.php
Find:

<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>
</dl>';


Replace it with:
</dl>';
/*<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>*/


For Profile
Sources/Profile-Modify.php
Find:
'hide_email' => array(
'type' => 'check',
'value' => empty($cur_profile['hide_email']) ? true : false,
'label' => $txt['allow_user_email'],
'permission' => 'profile_identity',
'input_validate' => create_function('&$value', '
$value = $value == 0 ? 1 : 0;

return true;
'),
),


Replace it with:

/* 'hide_email' => array(
'type' => 'check',
'value' => empty($cur_profile['hide_email']) ? true : false,
'label' => $txt['allow_user_email'],
'permission' => 'profile_identity',
'input_validate' => create_function('&$value', '
$value = $value == 0 ? 1 : 0;

return true;
'),
),*/
I've just commented out the things, nothing is deleted in above codes.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Aleksi "Lex" Kilpinen

Hi css_script_writer, did the advice above help you? Is this issue solved, or do you need further assistance on this?

Quote from: ahrasis on September 24, 2010, 07:02:52 PM
I think there isn't a mod but a way via phpMyAdmin where you change true (1) to false (0) for member emails to be turned off altogether. I can't remember where and how but do search for help or wait for one.
Actually, I don't believe 2.0 has any setting to completely remove the e-mail function. Strange as it is.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: