MyBB Community Forums

Full Version: Hide Email Addresses by default
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Not sure why Mybb allows everyone to see email addresses by default, since that is just asking for scraping and bullying. Either way I've attempted to disable that by making "Hide Email Address" setting to be automatically checked, but it didn't work.

I've followed all the tutorials on the forums below as well in attempt to achieve this, but none of them have succeeded.
https://community.mybb.com/mods.php?action=view&pid=433
https://community.mybb.com/thread-180946...pid1186494
https://community.mybb.com/thread-162521...pid1116413

I've tried installing the plugin, changing members.php file, changing member_register template on all the themes for the setting to be checked but it's still off by default no matter what I change.


[Image: Oepr99l.png]
ACP > Templates & Style > Templates (Side menu) > Select Template set > Member templates > member_register

Find:

<td valign="top" width="1"><input type="checkbox" class="checkbox" name="hideemail" id="hideemail" value="1" {$hideemailcheck} /></td>

Replace with:

<td valign="top" width="1"><input type="checkbox" class="checkbox" name="hideemail" id="hideemail" value="1" checked /></td>

Then run the following query to hide emails for existing users:

UPDATE mybb_users SET hideemail = 1;
(2019-02-01, 03:43 PM)Wires Wrote: [ -> ]ACP > Templates & Style > Templates (Side menu) > Select Template set > Member templates > member_register

Find:

<td valign="top" width="1"><input type="checkbox" class="checkbox" name="hideemail" id="hideemail" value="1" {$hideemailcheck} /></td>

Replace with:

<td valign="top" width="1"><input type="checkbox" class="checkbox" name="hideemail" id="hideemail" value="1" checked /></td>

Then run the following query to hide emails for existing users:

UPDATE mybb_users SET hideemail = 1;

Hi, as I mentioned my thread I've already attempted that and it didn't work. I've changed the member_register template on all themes.
It should work. Can you provide a link to your forum?
(2019-02-01, 03:51 PM)Wires Wrote: [ -> ]It should work. Can you provide a link to your forum?

You are right, it works for activated users that signed up themselves via register, but not for users that were created manually via admin panel.
(2019-02-01, 03:22 PM)VIrusKing Wrote: [ -> ]Not sure why Mybb allows everyone to see email addresses by default, since that is just asking for scraping and bullying.

It doesn't. There's an "email user" feature but it doesn't expose the email address of the user.
This setting really ought to be default on installation of the forum.