News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Hide email address SOLVED

Started by iceman~, April 07, 2008, 12:13:50 PM

Previous topic - Next topic

iceman~

Is it possible to hide email addresses from everyone but admin.
A wise monkey never monkies with another monkey's monkey

metallica48423

In Admin > Security and Moderation, under the 'general' tab:

Do not reveal contact details of members to guests -- uncheck
Allow viewable email addresses. -- uncheck.

This will make SMF replace the email with the email system... emails wont actually be displayed but users would still be able to send emails to each other.

see our memberlist here for an example

If someone doesn't want to be emailed, they can uncheck "allow others to email you" in their account settings and that will remove it altogether
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

iceman~

Thanks Metallica ... but what if you do not want members to see email id's at all.
They should just use the PM option and not be able to email at all, only admins can mail.
Then is there anyway for doing that ??
Sorry for all the trouble mate.
Thanks.
A wise monkey never monkies with another monkey's monkey

metallica48423

I don't see a way to do it immediately... theres a few places that button exists.

I think the system should be able to be disabled though, personally.  I'll bring it up to the developers as a tweak and see what they think
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

iceman~

Great Mate .... Thanks

For SMF 1.1.4 there is a mod called " View Email Permission " .. http://custom.simplemachines.org/mods/index.php?mod=1088

could this be used for SMF 2 ?

My apologies if i am troubling you a lot.

Thanks again Mate.
A wise monkey never monkies with another monkey's monkey

metallica48423

It wont work.

The way permissions are defined and handled is different between SMF 2 and 1.1.4
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

iceman~

Ok Mate ... Thanks for your efforts.
A wise monkey never monkies with another monkey's monkey

SleePy

iceman~,

you can change this by opening Security.php
Finding:
    return !empty($modSettings['guest_hideContacts']) && $user_info['is_guest'] ? 'no' : ((!$user_info['is_guest'] && $user_info['id'] == $userProfile_id && !$userProfile_hideEmail) || allowedTo('moderate_forum') ? 'yes_permission_override' : ($userProfile_hideEmail ? 'no' : (!empty($modSettings['make_email_viewable']) ? 'yes' : 'no_through_forum')));


replace:
    return allowedTo('moderate_forum') ? 'yes_permission_override' : 'no';

That should change it so only those who can moderate the forum can do this.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

iceman~

Just what i was looking for SleePy .... Thanks again mate.
A wise monkey never monkies with another monkey's monkey

Advertisement: