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
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.
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?
No because it is unethical and if in Europe, potentially illegal.
A simple "no" would suffice.
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.
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.
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.