Social Web CMS
February 09, 2010, 06:43:21 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: For the latest news and updates, please follow us on Twitter! http://twitter.com/HotaruCMS
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Subscribe to Comments Module v.0.4  (Read 1702 times)
Nick
Administrator
Hero Member
*****
Offline Offline

Posts: 668



View Profile WWW
« on: February 15, 2009, 10:53:13 am »

Subscribe to Comments v0.4
Created by: Nick Ramsay
Created on: 2009/02/15
Requires: None
Tested on: SWCMS 1.1

Updated to v.0.3 on March 6th, 2009

Description

Enables 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.

Instructions

1. Upload the "subscribe_comments" folder and enable it in Module Management.

2. Open /templates/your_template/comment_form.tpl

Find:
Code:
<textarea name="comment_content" id="comment" rows="6" cols="50"/>{if isset($TheComment)}{$TheComment}{/if}</textarea><br />
Add this below it:
Code:
{checkActionsTpl location="tpl_comment_form_post_textarea"}

3. In the same file, add this just before the closing "fieldset":
Code:
{checkActionsTpl location="tpl_comment_form_end"}

4. Open /libs/comment.php and find this in the fill_smarty function:
Code:
check_actions('show_comment_content', $vars);
$smarty->assign('comment_content', html_entity_decode($vars['comment_text']));
Below it, add this:
Code:
$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 History
v0.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

* subscribe_comments.zip (21.9 KB - downloaded 89 times.)
« Last Edit: March 13, 2009, 09:14:44 am by Nick » Logged

Reinventing SWCMS at HotaruCMS.org - testers, designers and developers wanted!
Nick
Administrator
Hero Member
*****
Offline Offline

Posts: 668



View Profile WWW
« Reply #1 on: February 25, 2009, 10:51:15 am »

Subscribe to Comments Module Bug Fix Update to v.0.2

Changes:
The module wasn't allowing the user to subscribe from the comment reply form. This version fixes that. Please note that step 4 in the instructions is new and necessary for this version.
Logged

Reinventing SWCMS at HotaruCMS.org - testers, designers and developers wanted!
Nick
Administrator
Hero Member
*****
Offline Offline

Posts: 668



View Profile WWW
« Reply #2 on: March 07, 2009, 02:55:25 am »

Subscribe to Comments Module Bug Fix Update to v.0.3

Changes:
Fixed a bug that prevented the story submitter from unsubscribing if he commented on his own story.
Logged

Reinventing SWCMS at HotaruCMS.org - testers, designers and developers wanted!
Nick
Administrator
Hero Member
*****
Offline Offline

Posts: 668



View Profile WWW
« Reply #3 on: March 13, 2009, 09:17:08 am »

Subscribe to Comments Module updated to v.0.4

Changes:
- Fix to prevent users being notified by email of their own comments.

Logged

Reinventing SWCMS at HotaruCMS.org - testers, designers and developers wanted!
davemackey
Administrator
Sr. Member
*****
Offline Offline

Posts: 271



View Profile WWW
« Reply #4 on: April 04, 2009, 10:34:33 pm »

Nick - these modules you have cranked out are the best. This one is awesome. Smiley
Logged

- http://www.informednetworker.com/ - Informed Networker - Social News for IT Professionals.
angolanmade
Jr. Member
**
Offline Offline

Posts: 59


View Profile
« Reply #5 on: May 28, 2009, 10:06:06 am »

Hey nick,

Not sure if this is a bug, but i just noticed that no email is being sent to the actually user who has clicked the subscribe to comments box,
instead an email is ONLY being sent out to the email addreess that I have specified in the  PLIGG_PassEmail_From field.

Did i miss anything with regards to this module?

Thanks in advance


Logged
bbrian017
Full Member
***
Offline Offline

Posts: 190



View Profile WWW
« Reply #6 on: May 28, 2009, 07:03:11 pm »

I don't see the unsubscribe option!

for the admin "god" user anyways! The other accounts I tested with all worked fine!
« Last Edit: May 28, 2009, 07:09:12 pm by bbrian017 » Logged

Nick
Administrator
Hero Member
*****
Offline Offline

Posts: 668



View Profile WWW
« Reply #7 on: May 28, 2009, 08:19:06 pm »

@angolanmade, sorry, I can't think of any reason why it's not working for you.

@bbrian017, unfortunately, the comments have to be sent somewhere, and because we can't reveal a user's email address for privacy reasons, every comment is emailed to the site administrator and bcc'd to the thread subscribers.
Logged

Reinventing SWCMS at HotaruCMS.org - testers, designers and developers wanted!
bbrian017
Full Member
***
Offline Offline

Posts: 190



View Profile WWW
« Reply #8 on: May 29, 2009, 08:49:09 am »

This mod is amazing!

it even allows you to subscribe to comments from Story Submission!

Nick I'm very impressed!
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!