WSC Email Mod

Hello, All -

I'd be grateful for some help to make a small modification to the WSC plugin. Comments are used on my site to post questions to the user who posted the original record. However, as things stand, whenever someone posts a comment, the only person who receives an email notification is the Admin - not the user who created the record. I would like to add some code to make sure a copy of the admin email (or a different email) is sent to the creator.

If there something quick I can do?

Thanks,

Perch

By gregThomas - October 7, 2015 - edited: October 7, 2015

Hey Perch,

You could try subscribing a user to a thread whenever they create a comment. This would involve checking the user isn't already subscribed using the wsc_thread_isSubscribed function, then subscribing the user using the _wsc_thread_subscribe function. You'd need to add these two functions in the wsc_comments_addRecord function that's used to create a post.

Cheers,

Greg

Greg Thomas







PHP Programmer - interactivetools.com