Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: dsanchez on May 06, 2019, 06:16:01 AM

Title: Hide email
Post by: dsanchez on May 06, 2019, 06:16:01 AM
How do you hide your email from your profile and from your profile in the forum topics?

thank you.
Title: Re: Hide email
Post by: doug_ips on May 06, 2019, 06:35:25 AM
How do you hide your email from your profile and from your profile in the forum topics?

thank you.

From your account settings untick this option: Allow users to email me
Title: Re: Hide email
Post by: dsanchez on May 06, 2019, 06:41:38 AM
There's not such an option in Forum Profile > Account Settings.
Title: Re: Hide email
Post by: doug_ips on May 06, 2019, 06:45:24 AM
There's not such an option in Forum Profile > Account Settings.

Yes, there is.

Title: Re: Hide email
Post by: SychO on May 06, 2019, 06:46:50 AM
User emails are hidden in 2.1 by default, so you don't have to worry about hiding them, only you as an admin can see them.
Title: Re: Hide email
Post by: @rjen on May 06, 2019, 06:56:05 AM
How do you hide your email from your profile and from your profile in the forum topics?

thank you.

In 2.1 that link is ONLY available to admins. regular users do not even get to see it ...
Title: Re: Hide email
Post by: Shambles on May 06, 2019, 07:44:56 AM
There's an echo in here...
Title: Re: Hide email
Post by: lurkalot on May 06, 2019, 10:21:32 AM
There's an echo in here...

Where?  Where?  Where?  Where?  Where?  Where?  Where?  Where?
Title: Re: Hide email
Post by: jonat on September 11, 2019, 02:09:22 PM
Just to clarify, and I spent the better (worse?) parts of two hours going crazy about this...

There is NO such option in 2.1RC2. The hide_email column in table members was dropped. Emails are displayed only for your own profile or if you have moderator privileges.
Title: Re: Hide email
Post by: Illori on September 11, 2019, 02:14:15 PM
are you sure about moderator? it should be for the user and admin only.
Title: Re: Hide email
Post by: Arantor on September 11, 2019, 02:33:19 PM
Pretty sure moderate_forum (moderate forum members) and up can do this.
Title: Re: Hide email
Post by: jonat on September 11, 2019, 07:39:10 PM
From Load.php:

Code: [Select]
// These minimal values are always loaded
$memberContext[$user] = array(
'username' => $profile['member_name'],
'name' => $profile['real_name'],
'id' => $profile['id_member'],
'href' => $scripturl . '?action=profile;u=' . $profile['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['id_member'] . '" title="' . $txt['profile_of'] . ' ' . $profile['real_name'] . '" ' . (!empty($modSettings['onlineEnable']) ? 'class="pm_icon"' : '') . '>' . $profile['real_name'] . '</a>',
'email' => $profile['email_address'],
'show_email' => !$user_info['is_guest'] && ($user_info['id'] == $profile['id_member'] || allowedTo('moderate_forum')),
'registered' => empty($profile['date_registered']) ? $txt['not_applicable'] : timeformat($profile['date_registered']),
'registered_timestamp' => empty($profile['date_registered']) ? 0 : forum_time(true, $profile['date_registered']),
Title: Re: Hide email
Post by: Arantor on September 12, 2019, 02:16:44 AM
So yeah, like I said, people who can moderate forum members (they can already see things like IP addresses)

Just because it says “moderate forum” does not mean “forum moderators”, it’s long been confusing like that.