Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Biology Forums on April 23, 2019, 09:44:26 PM

Title: createPost question
Post by: Biology Forums on April 23, 2019, 09:44:26 PM
Using the function createPost, when assigning a member to a topic that's being created, how do you make it so that the member gets notifications of replies? I can't seem to find it in the documentation outlined here: https://support.simplemachines.org/function_db/index.php?action=view_function;id=323
Title: Re: createPost question
Post by: Suki on April 23, 2019, 11:07:02 PM
You won't be able to do it with that function, creating a post and get notifications for it are treated separately. The user needs to explicitly opt-in to get notifications.
Title: Re: createPost question
Post by: Biology Forums on April 24, 2019, 09:06:26 AM
Quote from: Suki on April 23, 2019, 11:07:02 PM
You won't be able to do it with that function, creating a post and get notifications for it are treated separately. The user needs to explicitly opt-in to get notifications.

There isn't another function designed that opts them in automatically?
Title: Re: createPost question
Post by: Arantor on April 24, 2019, 09:08:08 AM
No because it is unethical and if in Europe, potentially illegal.
Title: Re: createPost question
Post by: Biology Forums on April 24, 2019, 09:37:41 AM
A simple "no" would suffice.
Title: Re: createPost question
Post by: Arantor on April 24, 2019, 09:41:59 AM
I considered it a reasonable expectation that you would challenge a simple no because you generally have the expectation (not unreasonably) of having detailed and thorough answers.
Title: Re: createPost question
Post by: Shambles on April 24, 2019, 12:15:15 PM
While I agree with the notion that notifications should only ever be opt-in for all members, my "birthday topic" auto poster automatically subscribes the birthday boy/girl to that topic, such that he (or she) receives an email at the first reply.

I use a simple insertion into {smf_}log_notify to achieve it.
Title: Re: createPost question
Post by: Kindred on April 24, 2019, 02:54:39 PM
and doing that would actually be illegal in the EU...  and is actually even questionable by CANSPAM standards.

(I know *I* would be annoyed, since I purposefully turn OFF all email post notifications on every forum I have ever joined - if an admin forced me to receive and email about posts I might be annoyed enough to report the site.