I've installed this in my 3.6.1 forum (recently upgraded all the way from 2.3.5!). In my old installation, I had hacked to automatically subscribe to new threads that are created within forums to which you are subscribed and also send email notification of the first post of the new thread. This add-on did almost exactly what I needed in the upgraded forum.
I did modify this a bit in my installation. Like others, I wanted that initial post emailed out with the body of the message and wanted instant email subscribers to forums to receive email copies of ALL posts in the new threads, not just the opening post of a new thread. I also wanted the email notification of the new thread opening post to look the same as the email notification for all subsequent posts.
My method of achieving this was to make the template change as specified, modify the foruminstantnotify phrases for email subject & body text to match those found for the notify phrases (with minor variable changes below), and modify the plugin code as per the attached file.
The plugin change grabs the username of subscribed users for use in the email notification and adds an insert query to add a thread subscription for each forum instant subcriber found.
The changes to the email body notify phrase that need to be made when copying to the email body foruminstantnotify phrase are:
change $pagetext to $newpost[message]
change $touser[username] to $subscribe[username]
Worked for me... maybe it will also work for others looking for similar results.
|