Advertisement:

Author Topic: Disable EMail-sending for users  (Read 7862 times)

Offline demlak

  • Jr. Member
  • **
  • Posts: 177
Disable EMail-sending for users
« on: January 03, 2013, 01:42:31 PM »
Link to Mod

Disable to send EMail with Forum-System for Users lower than Admin

Disable activation of this function for each user by removing option out of "Register Page" and "Profile Edit Page".
-> no one is able to activate this feature
-> if no one is able to activate this feature, no one is able to use it (only admins are still able to use it globaly)

drawback:
people who enabled "Allow users to email you?" before this mod is installed, can not change this feature anymore.
Mod needs to be disabled to change this option in profile.


licensed:
http://creativecommons.org/licenses/by-sa/3.0/

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Disable EMail-sending for users
« Reply #1 on: January 03, 2013, 01:47:07 PM »
Congrats on your second mod :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline ms_ukyankee

  • Full Member
  • ***
  • Posts: 531
  • Gender: Female
Re: Disable EMail-sending for users
« Reply #2 on: January 07, 2013, 01:46:59 PM »
Excellent, thank you. :)

I think this is the query to set everyone's profile to hide email:
Code: [Select]
UPDATE `smf_members` SET `hide_email` = 1 WHERE `hide_email`=0
SMF since 2004 <3

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Disable EMail-sending for users
« Reply #3 on: January 07, 2013, 01:56:23 PM »
Excellent, thank you. :)

I think this is the query to set everyone's profile to hide email:
Code: [Select]
UPDATE `smf_members` SET `hide_email` = 1 WHERE `hide_email`=0
That should work, yes :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline OCJ

  • Full Member
  • ***
  • Posts: 491
  • Gender: Male
Re: Disable EMail-sending for users
« Reply #4 on: March 25, 2013, 02:48:05 AM »
Nice... this saved me a lot of manual edits done previously.

Offline Oscar the Grouch

  • Semi-Newbie
  • *
  • Posts: 26
Re: Disable EMail-sending for users
« Reply #5 on: March 25, 2015, 08:10:31 AM »
Excellent, thank you. :)

I think this is the query to set everyone's profile to hide email:
Code: [Select]
UPDATE `smf_members` SET `hide_email` = 1 WHERE `hide_email`=0

how do you do this. im still kind of new to this stuff

Offline demlak

  • Jr. Member
  • **
  • Posts: 177
Re: Disable EMail-sending for users
« Reply #6 on: March 25, 2015, 08:33:04 AM »
you have to go into your database.. for example by using "Adminer 4.2.1 for MySQL"

Offline ms_ukyankee

  • Full Member
  • ***
  • Posts: 531
  • Gender: Female
Re: Disable EMail-sending for users
« Reply #7 on: March 25, 2015, 05:38:58 PM »
how do you do this. im still kind of new to this stuff

If you have Cpanel hosting, you will probably already have PHPadmin to access the database.
SMF since 2004 <3

Offline pocttopus

  • Jr. Member
  • **
  • Posts: 344
    • @pocttopus on Twitter
Re: Disable EMail-sending for users
« Reply #8 on: November 07, 2017, 02:37:57 PM »
Is it possible to block sending emails for a specific user, not for all members?

Offline lostpathway

  • Semi-Newbie
  • *
  • Posts: 13
Re: Disable EMail-sending for users
« Reply #9 on: November 08, 2017, 08:38:26 AM »
This isn't entirely a fix, but you could place that individual user into a unique forum group and change the permissions of the group to restrict the number of private messages they can send. 0 = unlimited, so may have to limit it to 1. Not sure if that will work for you, but maybe.

Offline pocttopus

  • Jr. Member
  • **
  • Posts: 344
    • @pocttopus on Twitter
Re: Disable EMail-sending for users
« Reply #10 on: November 08, 2017, 09:45:54 AM »
This isn't entirely a fix, but you could place that individual user into a unique forum group and change the permissions of the group to restrict the number of private messages they can send. 0 = unlimited, so may have to limit it to 1. Not sure if that will work for you, but maybe.
Sure it would be helpful advice.:)
I am trying to figure how can I restrict that group a permissions for not allowing sending emails.

I don't want to send mails, not even 1.
« Last Edit: November 08, 2017, 10:10:35 AM by pocttopus »