Subscribe to Comments v0.4Created by: Nick Ramsay
Created on: 2009/02/15
Requires: None
Tested on: SWCMS 1.1
Updated to v.0.3 on March 6th, 2009DescriptionEnables the story submitter and commentators to subscribe to follow-up comments. Subscription to each thread is voluntary, and users can unsubscribe, too.
This is just an early version, but give it a try if you're brave. Leave a comment to let me know if it works okay or if I've got some bugs to fix.Instructions1. Upload the "subscribe_comments" folder and enable it in Module Management.
2. Open /templates/
your_template/comment_form.tpl
Find:
<textarea name="comment_content" id="comment" rows="6" cols="50"/>{if isset($TheComment)}{$TheComment}{/if}</textarea><br />
Add this below it:
{checkActionsTpl location="tpl_comment_form_post_textarea"}
3. In the same file, add this just before the closing "fieldset":
{checkActionsTpl location="tpl_comment_form_end"}
4. Open /libs/comment.php and find this in the fill_smarty function:
check_actions('show_comment_content', $vars);
$smarty->assign('comment_content', html_entity_decode($vars['comment_text']));
Below it, add this:
$smarty->assign('checked', $vars['checked']);
$smarty->assign('checked_message', $vars['checked_message']);
Caveats- If you're using the
Comment Approval module, please note that subscription comments will be emailed to subscribers even when not approved!
Revision Historyv0.4 2009/03/13 Nick - Fix to prevent users being notified by email of their own comments.
v0.3 2009/03/7 Nick - Fix to unsubscribe link author from a post he has commented on.
v0.2 2009/02/25 Nick - Fix to allow subscription in the comment reply form.
v0.1 2009/02/15 Nick - First version