Hide email

Started by dsanchez, May 06, 2019, 06:16:01 AM

Previous topic - Next topic

dsanchez

How do you hide your email from your profile and from your profile in the forum topics?

thank you.

Doug Heffernan

Quote from: 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.

From your account settings untick this option: Allow users to email me

dsanchez

There's not such an option in Forum Profile > Account Settings.

Doug Heffernan

Quote from: dsanchez on May 06, 2019, 06:41:38 AM
There's not such an option in Forum Profile > Account Settings.

Yes, there is.


SychO

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.
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

@rjen

Quote from: 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.

In 2.1 that link is ONLY available to admins. regular users do not even get to see it ...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Shambles

There's an echo in here...

lurkalot

Quote from: Shambles on May 06, 2019, 07:44:56 AM
There's an echo in here...

Where?  Where?  Where?  Where?  Where?  Where?  Where?  Where?

jonat

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.

Illori

are you sure about moderator? it should be for the user and admin only.

Arantor

Pretty sure moderate_forum (moderate forum members) and up can do this.

jonat

From Load.php:

// 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']),

Arantor

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.

Advertisement: