Advertisement:

Author Topic: Turn on thread-notification for another user  (Read 64464 times)

Offline SMiFFER

  • Jr. Member
  • **
  • Posts: 357
Turn on thread-notification for another user
« 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.
...coming from VB, using SMF since 2012, now hosting it myself, currently SMF 2.0.15 on PHP 5.6.32
QUOTE OF Aleksi "Lex" Kilpinen: "That version is old enough to go to school itself."

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,123
    • StoryBB/StoryBB on GitHub
Re: Turn on thread-notification for another user
« Reply #1 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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

Nothing turns to hate so bitter as what once was love.

Offline Sh@mbles

  • SMF Hero
  • ******
  • Posts: 4,894
  • Gender: Male
    • i30 Owners Club
Re: Turn on thread-notification for another user
« Reply #2 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.

Offline SMiFFER

  • Jr. Member
  • **
  • Posts: 357
Re: Turn on thread-notification for another user
« Reply #3 on: June 25, 2017, 10:39:13 AM »
Thanks for constructive response, buddies!
...coming from VB, using SMF since 2012, now hosting it myself, currently SMF 2.0.15 on PHP 5.6.32
QUOTE OF Aleksi "Lex" Kilpinen: "That version is old enough to go to school itself."

Offline SMiFFER

  • Jr. Member
  • **
  • Posts: 357
Re: Turn on thread-notification for another user
« Reply #4 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?
...coming from VB, using SMF since 2012, now hosting it myself, currently SMF 2.0.15 on PHP 5.6.32
QUOTE OF Aleksi "Lex" Kilpinen: "That version is old enough to go to school itself."

Offline Sh@mbles

  • SMF Hero
  • ******
  • Posts: 4,894
  • Gender: Male
    • i30 Owners Club
Re: Turn on thread-notification for another user
« Reply #5 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