Version: 1.00, by FQ-Joseph
Developer Last Online: Jan 2006
Version: 3.5.0
Rating:
Released: 10-19-2005
Last Update: Never
Installs: 63
Uses Plugins Template Edits
No support by the author.
Instant Thread Notification for Subscribed Forums
Purpose:
This plugin allows your members to select "Instant Email Notification" when they are subscribing to a forum, instead of just the default Daily/Weekly Digests. When a new thread is posted in a subscribed forum, all subscribed users are instantly sent an email alerting them.
Modifications:
Code Hacks: 0
New Products: 1
New Plugins: 1
New Phrases: 2
New Templates: 0
Template Changes: 1
Installation Instructions:
Step 1 (Template Change):
Find the following in the "subscribe_choosetype" template (located under "Subscribed Thread Templates" in the template manager):
Step 2 (install product):
Import the product-instantnotif.xml file into your Product Manager.
Enjoy! - It's installed!
Any users who were already subscribed to a forum will need to re-subscribe in order to select this new option.
You can change the email subject & body by editing the "foruminstantnotify" phrases located under the "Email Body Text" & "Email Subject Text" phrase types.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
What happens if we don't make that template change? What adverse effects are there? I just know I will be updating to 3.6 eventually and prefer to change the templates as little as possible.
If you don't make the template change then the users won't be able to see an option for instant email notification when they subscribe to a forum. In other words, the mod won't work.
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.
This is what I get after removing the If statement
The following error occurred when attempting to evaluate this template:
The conditional on line 28 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed.
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
If I ignore the error then I can no longer subscribe to threads