scriptygoddess RSS Feed
 
 
 
 

WP Subscribe To Comments

PLEASE NOTE: Development of this plugin has (for some time now) been taken over by Mark - you can download the latest version from his site here

This plugin will allow your readers to get email notifications when comments are left on a post after their own. The install is very simple and does not modify any WP core code. As well, it's future-proofed to work, as is, with the next version of WordPress without your needing to upgrade the plugin.

Here's the download

Current Version: 1.5
(Support for 1.2 ends with v. 1.4.4 - still available here)
Last Updated: 3/10/04 9:53 PM EST

Here's the instructions (also included in a text file in the download):

1) Upload subscribe-to-comments.php to your wordpress plugins directory (this is in wp-content/plugins/ )

2) Upload wp-subscription-manager.php to the top level of your wordpress install directory (same directory wp-config.php is)

3) Add the following inside your comments form (between your <form> </form> tags) (in wp-comments.php and in wp-comments-popup.php):

<p>
<input type="checkbox" name="subscribe" id="subscribe" value="subscribe">
<label for="subscribe">Subscribe to comments (Email field must be filled in)</label>
</p>

3a)OPTIONAL
If you'd like to display on your comments if a particular commenter is subscribed to comments or not - you can use this function: comment_subscription_status() like this (customize for your own use)

<?php comment_text() ?>
<p><?php comment_type(); ?> <?php _e("by"); ?> <?php comment_author_link() ?>

<?php if (comment_subscription_status()) { echo "(subscribed to comments)"; } ?>
etc. etc. etc.

(this feature thanks to Mark)

4)There is a plugin hook missing in WordPress 1.2 (but it will be there in 1.3 - so you won't need to worry about making this change again when you upgrade. - But in order for this script to work in this version, you'll need to add this change manually)… In functions.php (in wp-includes folder) add the following line between lines 919 and 920:

do_action('wp_set_comment_status', $comment_id);

so the surrounding code will look like this:

if ($wpdb->query($query)) {
do_action('wp_set_comment_status', $comment_id); //THIS IS THE LINE YOU NEED TO ADD!
return true;
} else {
return false;
}

5) Activate the subscribe-to-comments plugin through the WordPress plugin admin page

You're done. :)

Change Log:
new in ver 1.5
MAJOR updates and bug fixes by Mark (who helps out so much around here I should name him "honorary scriptygoddess") :D
- massive overhaul and cleanup. Manual database calls for checking to see if the do_not_email option existed and some manual update code. Replaced with add_option() and get_settings() calls.
- Changed $tablecomments and $tableposts and $tableoptions, etc. now exclusively using the $wpdb object. Note that this means that 1.2.x users are no longer supported.
- Fixed the "maybe_add_column" already exists error (renamed the function in the plugin)
- Fixed the error with the e-mail being blank for WP authors comments as was mentioned in the comments.
- Added/clarified comments
- now compatible with Spam Karma on WP 1.5 (latest version).
- Prevent notifications for Trackbacks and Pingbacks (change in WP 1.5 necessitated this)

new in ver 1.4.4
Bug fix/adujstment. Buried "maybe add column" function inside a check to make sure it doesn't already exist (in case someone else is using it in another plugin)

new in ver 1.4.3
Bug fix. Functions called with add_action now return variables passed to them.

new in ver 1.4.2
With Mark's help, modified add_comment_subscriber - so that if user had previously subscribed to comments - it will always add flags for that post (so that comment_subscription_status() will return true on all comments they leave after the user is subscribed to the post)

new in ver 1.4
Added comment_subscription_status() (thanks to Mark)
Fixed a few bugs with forward (ie WP 1.3) compatibility.

new in ver 1.3:
-international support and latest TLD's (update from Romain)
-Will no longer (ever) email commenters own comments (update from Mark)

175 Responses to “WP Subscribe To Comments”

  1. 1
    Blogging Pro - Blog News, Tools and Hacks:
    WordPress Plugins: Subscribe To Comments
    This plugin from scriptygoddess implements a comment subscription feature to your WP 1.2 installation. Subscribers will receive an e-mail when a comment is left on the topic they've subscribed to.

  2. 2
    Patrick Fitzgerald:

    Most excellent, works like a charm.

  3. 3
    seriocomic:

    I can't get this to work. But I have comment moderation on. Do you know if that could stop the notification from being sent??

  4. 4
    Sara:

    Excellent plug-in Jenn! :) You are the Scripty Goddess for sure! Have a good weekend!

  5. 5
    Jennifer:

    seriocomic: Comment moderation should NOT affect the comment notification from being sent. Mind if I test yours out? Is there a test post I can hit with a few comments?

  6. 6
    Tek:

    Jennifer,

    It says that I am "forbidden" to download. *cries and feels left out from getting any candy*

  7. 7
    Tek:

    Okay, I went through a proxy to get the file but I could not get it before. =(

  8. 8
    Jennifer:

    I'm able to get the download to work fine from where I am. I know that my site has been having issues this morning… I think our server's getting hit by a floodbot or something. Lovely. If anyone has any (continued) problems - email me: scripty AT scriptygoddess DOT com

    I'll hook you up ;-)

  9. 9
    Code Novice:
    WP Comment Subscription Plugin
    Scriptygoddess' plugin is now available -- check her post for details and the download.

  10. 10
    seriocomic:

    Thanks Jennifer, you may try on any of the posts but the latest 'updating' one would be preferred…

  11. 11
    Jennifer:

    To those of you who are subscribed to comments - the post and download has been updated with a few bug fixes! :D

  12. 12
    seriocomic:

    Thanks for help wif getting it to work Jenn, you're a legend. :)

  13. 13
    Romain:

    Great plugin… I haven't had a chance to see it working so far. I looked into your subscribe-to-comments.php and realized you were missing the info TLD in the list of extensions on line 297.
    I was fighting against this plugin since last night. Maybe I found the reason why it wasn't working for me…

  14. 14
    Mark J:

    There are a few others that are missing from that TLD list… good catch Romain.

  15. 15
    Jennifer:

    Yup - Actually Romain emailed me the fix for that and some good updates to the script… I just haven't had time to implement them…
    Very soon.. I swear!!! :D

  16. 16
    Jennifer:

    Plugin updated to v 1.3

  17. 17
    Jason McIntosh:

    You realize, you've got GREAT timing. Just when I'm looking at implementing WP for all the users on my site, I find these wonderful plugins you've got, and even find you've posted an updated plugin the very evening I was looking for it ;) Thanks a mil!

  18. 18
    prem:

    Very good plugin, thank you. I hope this gets integrated with WP. =)

  19. 19
    Jennifer:

    Plugin updated to ver. 1.4

  20. 20
    Tek:

    Hey!

    Everything looks great! No errors… But I did a test to one of my dummy emails and the subscription doesn't seem to be coming? It says I am subscribed yet I am not getting notification.

    Also, can you make a way for people to unsubscribe to a particular post if they want?

    Thank you. =)

  21. 21
    Jennifer:

    plugin updated to 1.4.1 - see changelog in post for details

  22. 22
    Mark J:

    Tek, make sure you test it by subscribing with a legitimate account, and then leaving another comment with ANOTHER account (this can be a dummy account). It is set NOT to e-mail you your own comments.

  23. 23
    Tek:

    Subscribe.

    Thanks Mark… I did do that. I have a plethora of dummy accounts. ;)

  24. 24
    Jennifer:

    Ack. Tek - did you add that text "subscribe" to your comment? I think I have a bug in my most recent code…grrr…Not going to be able to fix it until tonight too…

  25. 25
    Tek:

    Yes, I added that. And I just the comment you made sent to me by email. So it works. Just not sure why my site is being funny.

  26. 26
    Tek:

    Okay, I have found that you might get an error if you are using the blacklist from the weblogs tool collection here:

    http://weblogtoolscollection.com/archives/2004/05/24/wp-blacklist-12-released/

    I deactivated this plugin and now subscriptions are working for me.

  27. 27
    Jennifer:

    All issues fixed with that 1.4.1 from yesterday - New ver. is 1.4.2 (as always - please let me know if you run into any issues.) Script is still apparently not compatible with WP blacklist - but I should add that I'm not sure why you'd need that. WP's built in Spam Words works great - as well - with Kitten's Spam Words (which does NOT conflict with this script - I'm running that on this site) - I think you're good to go.

  28. 28
    Mark J:

    This is just my generic response to "these two plugins conflict":

    Try changing the priorities so that one is executed before the other, and then try it the other way around. Both these plugins have no priority set, which means they default to 10 (last). The one with the filename that comes first in the alphabet will get executed first.

    However, I have to second Jennifer's (and Matt's) puzzlement. A blacklist engine already exists in WordPress. They should work on improving that one.

    On a related note, are you going to release your blacklist, Jenn? Setting WP so that it moderates comments with 4 or more links has stopped all spam for me, and I've used the words in those spams to populate my blacklist, but you can never be too careful, eh?

  29. 29
    Jennifer:

    Actually my blacklist is published. Check the sidebar - last box - towards the bottom. I should note that not every entry is a 100% verified "spammer". I've gotten at least two complaints/requests for removals of URLs - however, I only add to that blacklist unless I'm reasonably sure the comment was spam. So whether someone used those two URLs without the domain owner knowing - I don't know. Either way - with WP, it doesn't prevent someone from commenting - it'll just put it in the queue. If it's not really spam - then I push the comment through. So, regardless of the complaints - I'm still leaving those URLs there.

  30. 30
    Ria:

    Great plugin. Works like a charm! Thanks for putting it together.

  31. 31
    moods:

    It seems it doesn't work on my blog…
    I uploaded everything; I changed the code in wp-comments.php; I added the code on functions.php; added the optional one.
    Then activated the plugin….

    Only after seen it didn't work I modified wp-comments-popup… I thought it wasn't necessary.
    But doesn't work anyway.

    Any error I made?
    Bye
    Simone (Italy)

  32. 32
    Jennifer:

    Moods - the first thing I noticed right off the bat - you changed the checkbox code. You need to add it exactly as it was described in my post. You have it as:

    <input type="checkbox" name="subscribe" id="subscribe" value="avvisami">

    That value MUST be "subscribe" as it is shown in the post. The Text between the LABEL tags you can customize…

  33. 33
    moods:

    Yes, now it's ok.
    The error was because on installation and consequent customization I faulty meant that the subscription option was on a button, not in a checkbox….
    So i modified that code thinking to modify the label of the button.

    Sorry for boring… I learnt all the things i know about programming just doing "copy&paste".
    Thank you :-)

  34. 34
    Jennifer:

    No apologies are neccessary. If you made the mistake - someone else might too. :) Glad it was an easy fix!

  35. 35
    moods:

    tank you :-)

    How to diplay the "blog author" item like in your comments?

  36. 36
    Jennifer:

    Right here

    Except - instead of wrapping the whole comment in a div - I just have an image next to the "comment author link" that's wrapped with that: if($isByAuthor) code… I'll post a comment in there later tonight with the exact code.

  37. 37
    Mark J:

    [edited by blog author: Mark moved his comments over here so we could stay on topic. :D ]

  38. 38
    moods:

    Mark j - I really try to do it myself: no problem in creating classes nor to understand the logic of your code but… i don't know how to append it to the existing one…

    My code right now:

    <p><cite><?php comment_type();?><?php _e("o di"); ?> <?php comment_author_link() ?> <?php if (comment_subscription_status()) { echo "(subscribed to comments)"; } ?> <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>

    your code after I modified it for my WP:

    <?php
    if($comment->comment_author_email == 'finto@finto.com'){ ?>
    <span class="blogauthor">
    <?php } else { ?>
    <span class="comment-author">
    <?php } ?>
    <?php comment_author_link(); ?></span>

    I tried several solution, but I really don't manage how to fit them together…

  39. 39
    Tek:

    works great!! Wonderful!!

    Thanks =)

    I love this site! =)

  40. 40
    moods:

    I'm really proud of me cause it works!!!
    The problem I had with mark code was that the "notify on" icon was displayed in every comment, even those whose author didn't subscribed.
    Thank you for the tip, which I used to enpower all my copying attitude :-)

    Here's the new code shared

    <?php
    if($comment->comment_author_email == 'finto@finto.com'){ ?>
    <span class="blogauthor">
    <?php } ?>
    </span><?php if (comment_subscription_status()) {?><span class="comment-author"><? } ?></span>
    <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>

  41. 41
    BB:

    I'm lost now with this "already-subscribed" code. Specifically, where in wp-comments.php does that go?

  42. 42
    Mark J:

    BB,
    The PHP function comment_subscription_status() returns TRUE if the author of the current comment being processed is subscribed to comments, and FALSE if he is not.

    Your use of this is entirely up to you, and you don't have to use it if you don't want. You would use it like this:

    <?php if(comment_subscription_status()) {?>
    THIS USER SUBSCRIBED
    <?php } else { ?>
    THIS USER NOT SUBSCRIBED
    <?php } ?>

    You could use it to set a different span class for the name of the author of the comment so that you could style it differently.

  43. 43
    Jennifer:

    BB - the code Mark is describing would go in the COMMENT LOOP - the loop that's displaying the actual comments for your post - in wp-comments (or pop up comments, etc - whichever you're using). (I think there was some confusion before - because there was some discussion of mixing the "show an icon if someone was subscribed" - with the "show an icon if the comment is by the blog author" code (originally posted about here)

  44. 44
    BB:

    What do I use to get both show an "icon if someone was subscribed" with the "show an icon if the comment is by the blog author"?

  45. 45
    Jennifer:

    Here you go:

    <?php foreach ($comments as $comment) { ?>
    <li>
    <!– I have the a tag below so you can permalink to specific comments –>
    <a name="comment-<?php comment_ID() ?>"></a>
    <?php comment_text() ?>
    <p><cite><?php comment_type(); ?>
    <?php _e("by"); ?>
    <?php comment_author_link() ?>
    <?php if ($comment->comment_author_email == 'YOUREMAIL@example.com') {
    echo "<img src=\"/images/author.gif\" width=\"64\" height=\"9\">";
    }
    ?>
    <?php if (comment_subscription_status()) {
    echo "<img src=\"/images/subscribed.gif\" width=\"63\" height=\"9\">";
    }
    ?>
    <?php comment_date() ?> &#8212; <?php comment_time() ?> | <a href="#comment-<?php comment_ID() ?>">permalink</a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>
    </li>
    <?php } // end for each comment ?>

  46. 46
    seriocomic:

    There is an error at line 121 in subscribe-to-comments.php of version 1.4.2

    I am also having issues with this plugin conflicting with Kitten's 'friendly comments' plugin. With this (subscibe) plugin enabled it doesn't work, with it disabled it does?!

  47. 47
    seriocomic:

    ok, its late, the error was me using a file viewer to view the uncompressed zip file and because I was using that code the conflict occurred…

  48. 48
    gravity:

    I was wondering if you could help me out with the following page. Where do I make changes so that this page:

    http://www.gravityworks.us/a.wpblog/wp-subscription-manager.php

    looks better?

    Any suggestion is appreciated.. is the the print.css or the wp-layout.css, since both are listed in the source.

  49. 49
    Mark J:

    I wouldn't edit either of those, as those are the core WP interface CSS files. I'd either add another CSS link, or create an inline style sheet.

  50. 50
    BB:

    How about an unsubscribe to comments?

  51. 51
    Jennifer:

    BB - this is handled through the wp-subscription-manager.php. Subscribers get a link to the subscription manager in their notifications. There they can select which posts they want to unsubscribe from (or just unsubscribe from all) - or they can opt to be blocked from all emails from the site.

  52. 52
    gravity:

    Thanks Mark,

    I am just kinda interested to know why that page looks the way it does. Jennifer was able to nicely implement the subscribe option, but the unsubscribe section seems to have some issues.

    Does it look the same for everyone until it is customized? I have no problem writing it up, but I just want to make sure that it looks the way it does because of the way it was written and not because of an installation error on my part.

  53. 53
    Jennifer:

    When I was working on that page, Matt (photomatt.net) had asked that I use the stylesheet that comes with WP rather than creating another one, or an inline one. If you've customized the wp styles, then it will affect this page too. If you want it to look different/better - I would recommend creating a seperate stylesheet for that page.

  54. 54
    Mark J:

    It looks very plain. Here's mine.

    I think Jennifer's intention was for the more PHP/XHTML/CSS savvy bloggers to customize it to their liking. I still haven't done so… but one of these days.

  55. 55
    Leonieke:

    great coding, Jennifer - thanks for all the effort :)

    seems I have a small database problem, b/c after adding the correct bits of coding, uploading the files, I get an error from the wp-admin/plugins.php file, saying it's not allowed to open the plugin-file.
    do I need to chmod the file's permissions?

  56. 56
    Leonieke:

    re: my previous comment - all seems to be working fine now - just chmod-d the plugin-file :)

  57. 57
    Marius Ooms:

    I changed the input line to be checked by default:

    <input type="checkbox" name="subscribe" id="subscribe" value="subscribe" CHECKED>

    Would this be the right way to have subscription on by default?

  58. 58
    Jennifer:

    Marius - that should work.

  59. 59
    Mark J:

    Marius, just keep in mind that if you are using XHTML, you will have to do this to be valid:

    <input type="checkbox" name="subscribe" id="subscribe" value="subscribe" checked="checked" />

  60. 60
    Marius:

    Thank you…great script!

  61. 61
    Jeremy C. Wright:

    No idea if I'm being stupid here. I've just double checked that I've done everything right (great instructions btw).

    Everything's uploaded to the right places. Everything's CHMOD'd properly. Code is added to functions.php and wp-comments.php… And it's just not working… No idea why. In fact, I'm not getting comment notifications to the topic now either…

    I'm sure this is me being stupid though :|

  62. 62
    Monty:

    I am sure i have read about this script somewhere but i cant find it on your site.

    Users should be able to edit their own comments for a certain time period after they have posted their comment. have you already made a hack for this?
    Cheers

  63. 63
    Mark J:

    I was the one who made that hack… for Movable Type. I've not yet had time to port it over to WordPress.

  64. 64
    Jennifer:

    Side note: Jeremy's problem was a misunderstanding on how the script works. It will not email the subscription notice for your own comments :)

  65. 65
    Jeremy C. Wright:

    Yeah yeah, rub it in ;)

    But yes. User error!

  66. 66
    Charles:

    Well, I too am having trouble with this plugin. I installed everything, changed the code, and tested it by subscribing from one email and then posting again from a second email. The first email never received anything.

    I had the Blacklist plugin installed but uninstalled it by removing all the Blacklist files due to the incompatibility. Still doesn't work.

    I am testing out WP alongside my MT blog so if someone wants to go in and check it out, I'd be very appreciative. The url is:

    http://www.rippleweb.org/index.php

    (note: need to use the index.php at the end since http://www.rippleweb.org is still pointed to my MT index.html). Thanks!

  67. 67
    Charles:

    Well, thanks totally to Jennifer — she figured it out! The Subscribe to Comments plugin and the "Optional Comment Moderation" plugin located here:

    http://theubergeeks.net/index.php?p=192

    are incompatible. At her suggestion, I turned off the optional comment moderation plugin and the subscription plugin works beautifully. Jennifer said she'd check out the optional comment moderation plugin and see if she can get them to play nicely together. :)

    Thanks, Jennifer!

  68. 68
    Jennifer:

    Plugin has been updated to ver 1.4.3 - just a minor bug fix. But with this bug fix, and a minor change to the Optional Comment Moderation plugin, they will work together. I'll post more details shortly. (I sent my suggestion to Colin, so I'm just waiting to hear back from him)

  69. 69
    Jennifer:

    FYI - the optional comment moderation plugin has been updated. This latest version of wp-comment-subscription will play nice with the latest version of the comment moderation plugin.

  70. 70
    Prashant:

    This is a very useful plugin.

    I was wondering if there is an option to automatically subsrcibe each commentor to the post?

  71. 71
    Ninette Marie:

    Hallo friends! Really nice place here. I found a lot of interesting stuff all around. Just what I was looking for. Great joy!

  72. 72
    gravity:

    Added the subscribe option to this Blog. It did send an email to the admin. However, the subscriber did not receive the email informing them how to UNSUBSCRIBE. Is there more to it? Maybe I missed something?

    http://www.beachblog.net

  73. 73
    gravity:

    @everyone,

    Email was received by first subscriber indicating how to UNSUBSCRIBE. DO not worry about this or the last post. Thanks for such a nice script.

    Kind regards,
    gravity

  74. 74
    Trench:

    Is it possible to get this plugin to use SMTP instead of sendmail?

  75. 75
    CK:

    Uh oh… the functions.php is looking a little different….

    Here is line 919:

    wp_set_comment_status:
    part of otaku42's comment moderation hack
    changes the status of a comment according to $comment_status.
    allowed values:
    hold : set comment_approve field to 0
    approve: set comment_approve field to 1
    delete : remove comment out of database

    returns true if change could be applied
    returns false on database error or invalid value for $comment_status*/

    function wp_set_comment_status($comment_id, $comment_status) {
    global $wpdb, $tablecomments;

    switch($comment_status) {
    case 'hold':
    $query = "UPDATE $tablecomments SET comment_approved='0' WHERE comment_ID='$comment_id' LIMIT 1";
    break;
    case 'approve':
    $query = "UPDATE $tablecomments SET comment_approved='1' WHERE comment_ID='$comment_id' LIMIT 1";
    break;
    case 'delete':
    $query = "DELETE FROM $tablecomments WHERE comment_ID='$comment_id' LIMIT 1";
    break;
    default:
    return false;
    }

    if ($wpdb->query($query)) {
    return true;
    } else {
    return false;
    }
    }

  76. 76
    velkr0:

    hey.. this plugin is great!! i couldn't get it working at first.. and couldn't figure it out.. but then i dawned on… permissions!! i had the permissions all whack, so I changed them.. and now its golden!! Thanks Jennifer!!

    oh.. just a question.. is there a way for the admin to see all the people that are subscribed? and to which posts?

  77. 77
    Stephen:

    I can't seem to get this to work, well that is not true - everything works great except it does not send out the mail, where do I enter my mail server options??

  78. 78
    Jennifer:

    (worked with Stephen off line to resolve his issue) - but just another reminder: You will never be emailed your own comments. If you're testing out the plugin, make sure you test using TWO SEPERATE email addresses. :)

  79. 79
    Jennifer:

    velkr0 - not at the present time. I will probably be updating/adding to this plugin to some degree once WP 1.3 is released. I'm kind of holding off for now. If it's a feature that is widely needed, I will try to add it at that time.

  80. 80
    Ninette Marie:

    Just surfed in and found this really interesting place here. A lot of good stuff for everybody.
    Go on like this and i will surely visit your site again sometime.

  81. 81
    sushubh:

    errm… how do i upgrade to 1.2.1 without breaking this hack! are the 2 core files changed in the new update?

  82. 82
    Jennifer:

    1.2.1 replaces existing files. I would think that it won't REMOVE files already existing in a directory. (If for some reason it did - you would need to upload the files again).

    After the upgrade - you'll need to go through steps 3 and 4 from the instructions above again.

  83. 83
    Mark J:

    Jennifer,
    While it's good that maybe_add_column is buried in an "if (!function exists())" conditional, it can still conflict with WP's maybe_add_column(), which gets declared AFTER yours.

    This leads to "already declared function" errors when running update.php

    Maybe it'd just be better to rename it altogether: maybe_add_column_sg()

  84. 84
    Arnold Gamboa:

    Hey. I have installed the latest (v1.4.4). It seems though that I'm not successful in making it work. Can you do some testing here?

    http://arnoldgamboa.com/2004/10/johann-updates/#comments

    I've been testing the comments there.

    Thanks for the time.

    Arnold

  85. 85
    valerie:

    I've got a user that wants to be able to subscribe to comments without placing a comment first.
    Is this possible?
    I've looked to see if I can do it myself and I went huh. lol
    thanks

  86. 86
    Jennifer:

    When I was first developing the project, I had thought about doing that, but it required creating a seperate table in the database, which Matt had advised against. (I would imagine that would cause synchronization issues if you deleted a post, etc. plus, most of the time, you have people commenting - and that is when they want to be subscribed - and that way, you already have all their info from when they left a comment.)

    The workaround is the comments rss - or - just leave a comment. :)

    Alternatively (thinking "out loud" here) I guess you could set up a special "comment form" that, rather than a comment field, puts a special "code" as the "comment" for which you can look for when displaying your comments - and NOT display comments with that special "code"… Actually the more I think about it - I think that is the best way to do it… It will mean that feature becomes more of a hack, rather than a simple plugin, but at least it will do the job… stay tuned… ;-)

  87. 87
    Jean-Paul:

    Your subscribe-to-comments script is really quite nice, although I had a bit of a problem getting it to work, initially…

    I also use Brian Meidell's nested comments plugin, and I found that at first the two weren't playing nice (or at least I thought)… Your plugin didn't work until I removed the "last few lines" from Brian's PHP file (the ones that said were only necessary for the first run), wich included an add_action command that I thought might have conflicted with your plugin.

    In any event, great work!! Nice touch with the little "subscribed" images too.

  88. 88
    Jennifer:

    Jean-Paul - not sure which version of subscribe-to-comments you were using, but it was updated to work with that plugin. (However, admitedly, I haven't tested that newer version he has out now for 1.3)

  89. 89
    velkr0:

    love the plugin.. works great! except i just noticed something… when I goto the wp plugin page where you activate/deactivate… instead of the normal: name, version, author, etc… there is a whole bunch of CODE instead of the name, version, author, description, etc… did i delete/add something in subscribe-to-comments.php (when i was changing the email format) that would cause this? any ideas? how does wp get the info to create that plugin table?

  90. 90
    Jennifer:

    It sounds like you added another plugin that wasn't in the right format. What was the last thing you added before you saw that? Whatever that plugin was that you added - try downloading it again (make sure you're doing right-click, save-as)

  91. 91
    velkr0:

    Jennifer, well i can't remember what i added last so, i removed all the plugins, and uploaded a fresh copy of subscribe-to-comments.php and its still all messed up… but if i add any other plug in (such as post-count.php) it seems to create the table properly.. hmmm… i dunno… this is weird.. the code starts at different spots under each column.. for Plugins it starts "comments; $postid = (int) $postid; maybe_add_column"… Description starts right.. but continues to list author uri etc… any more ideas?

  92. 92
    aim:

    Great thing, but what I whant to suggest is to have just a button "subscribe to this post" without having to post a comment.

  93. 93
    Jennifer:

    I did look into this, but having someone subscribe to comments without posting a comment will become so much of a hack (and less of a simple plugin) that I'm not convinced it's worth it. The problem comes in that if you want to avoid creating an extra table to store the registrations, then you have to do all sorts of hacks to have it not show up in your comments list - either in the total number of comments, or in the display, etc. Or if you do give up on that, and create an extra table - then you can potentially run into synchronization issues if you delete a post for example. As well - having the registrations stored in a seperate database makes it dificult to see who is registered and who is not. AND you're checking two tables for registrations - one in the comments table - and one in your new subscribe to comments table.

    I keep going back to the original idea of "the more comments the merrier". If you want to get notified of comments, leave a simple comment! Many bulletin boards have the same setup - where you can't request to be emailed of new comments unless you have actually particpated.

    Another alternative is to subscribe to the RSS comments feed.

  94. 94
    aim:

    subscribtion to the comments rss feed is a good option, but rss readers is still some sort of exotic software in russia.

    :(

  95. 95
    Jennifer:

    What about something like bloglines?

  96. 96