{split from} Users can contact me by e-mail

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Thanks in advance
Registered User
Posts: 173
Joined: Mon Dec 28, 2009 8:17 am

{split from} Users can contact me by e-mail

Post by Thanks in advance »

I have the following problem: The option "Users can contact me by e-mail" is Yes by default in UCP for new members on my board. I don't think this has always been the case.

I know I can set "Hide e-mail addresses:" in ACP to yes. Nevertheless I would like that "Users can contact me by e-mail" is set to "No" by default. Do you know how I can achieve that?

Thanks!
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: {split from} Users can contact me by e-mail

Post by Oyabun1 »

When you have a question different from the original poster don't post in an existing topic, particularly one that is 2 years old.

Information on changing the values for user default options is contained in the Knowledge Base article, Changing user options defaults and values.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Thanks in advance
Registered User
Posts: 173
Joined: Mon Dec 28, 2009 8:17 am

Re: {split from} Users can contact me by e-mail

Post by Thanks in advance »

Sorry and thank you for the KB link. I'm still a little bit confused about the different options. Which one do I have to change so to that "Users can contact me by e-mail" is set to "No" by default for new members.

Code: Select all

    'user_notify'        => 0,
      'user_notify_pm'     => 1,
      'user_notify_type'      => NOTIFY_EMAIL,
      'user_allow_pm'         => 1,
      'user_allow_viewonline' => 1,
      'user_allow_viewemail'  => 1,
      'user_allow_massemail'  => 1,
'user_allow_viewemail' => 1, to 'user_allow_viewemail' => 0, ?

And for existing users the following SQL query ?

Code: Select all

UPDATE phpbb_users SET user_allow_viewemail = 0 WHERE user_type <> 2;
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: {split from} Users can contact me by e-mail

Post by Oyabun1 »

Thanks in advance wrote: 'user_allow_viewemail' => 1, to 'user_allow_viewemail' => 0, ?

And for existing users the following SQL query ?

Code: Select all

UPDATE phpbb_users SET user_allow_viewemail = 0 WHERE user_type <> 2;
Yes, that should do it. Sorry, just realised the article doesn't specifically cover that option. You would just need to change phpbb_ in the SQL query if that is not your table prefix (it is the default one, but sometimes people change it).
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Thanks in advance
Registered User
Posts: 173
Joined: Mon Dec 28, 2009 8:17 am

Re: {split from} Users can contact me by e-mail

Post by Thanks in advance »

Worked as expected [SOLVED]. Thanks again!
Locked

Return to “[3.0.x] Support Forum”