Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Topic started by: SMiFFER on June 23, 2017, 10:44:29 AM

Title: Turn on thread-notification for another user
Post by: SMiFFER on June 23, 2017, 10:44:29 AM
Is there a way to do the above?

Example:
In our development-area on our forum I create a new thread about a new module to be included in the code
and want to have all other programmers automatically notified about this new thread. Therefore I would need to tell SMF: Hey, let that user be notified about this thread and new posts there.

If there already is such a function or if there is a mod providing this function
then please point me to how to use it.

I would be glad to read more.
Title: Re: Turn on thread-notification for another user
Post by: Arantor on June 23, 2017, 11:36:14 AM
There isn't such a function currently, as SMF takes the view that people should opt into notifications.
Title: Re: Turn on thread-notification for another user
Post by: Shambles on June 23, 2017, 11:43:27 AM
^ I'm with superman there.

That said, I adjusted the birthday post mod to automatically subscribe the birthday boy to his personalised testimonial topic.

Wouldn't do it in any other circumstance, though.
Title: Re: Turn on thread-notification for another user
Post by: SMiFFER on June 25, 2017, 10:39:13 AM
Thanks for constructive response, buddies!
Title: Re: Turn on thread-notification for another user
Post by: SMiFFER on May 11, 2018, 09:43:36 AM
That said, I adjusted the birthday post mod to automatically subscribe the birthday boy to his personalised testimonial topic
Only for boys? Where is the feminism-front crying wolf for "girls-power"  ::)

Is that the mod by Suki?
https://custom.simplemachines.org/mods/index.php?mod=2026

If not, which mod were you talking about?
If so, what did you change in detail?
Title: Re: Turn on thread-notification for another user
Post by: Shambles on May 11, 2018, 11:04:22 AM
^ Yep that is the mod.

What I changed was in ScheduledTasks.php and was as follows:

Code: (Find) [Select]
// Make the darn post already!
createPost ($msgOptions, $topicOptions, $posterOptions);


Code: (Add After) [Select]
// Shambles edit #S024: auto-notify the named member
$smcFunc['db_insert']('ignore',
'{db_prefix}log_notify',
array ('id_member' => 'int', 'id_topic' => 'int'),
array ($birthday['id'], $topicOptions['id']),
array ('id_member', 'id_topic')
);
// End Shambles edit #S024