Subscribe to Comments 2.1
Subscribe to Comments 2.1 is a plugin that allows commenters on your blog to check a box before commenting and get e-mail notification of further comments. It is one of the most popular WordPress plugins out there for the simple reason that it helps foster a community around your blog by encouraging commenters to come back and stay engaged in the dialog.
Features
- Rudimentary security
- Users cannot enter a random e-mail into the subscription manager and modify someone else’s subscriptions
- In order to modify subscriptions, users need to use a special link, given in notification e-mails, and printed in the comments form as long as they have their comment cookie
- Recognition of subscription status
- Unsubscribed users see the “subscribe to comments” checkbox, but subscribed users see a “Manage your subscriptions” link
- The author of the post is recognized by either login or comment cookie and is assumed to be subscribed to the entry (as they will receive notifications through WordPress)
- Themeable subscription manager
- Uses visual style of WordPress interface
- Can be optionally accessed via “Manage” menu in WordPress
- E-mail verification of block requests
- Javascript “invert selection” link to check/uncheck subscriptions for mass deletion
- “Return to the page you were viewing” link that persists at the top of the page, so that users can easily return to the post they were reading once they are done modifying subscriptions
- Ability to let users change notification e-mail address
- In the subscription manager, users can request that their notification address be changed for all their subscriptions
- Special link is sent to the old address for verification
- Once clicked, their e-mail address will be changed instantly for all their comments
- Easy integration into comments form
- No modification of comments form needed for WP 1.5+ (supported themes)
- For users who want custom placement of the checkbox/link to subscription manager, this can be done with one simple function call, placed anywhere in the comment form
- Subscription without leaving a comment
- By popular demand, you can now offer visitors the option of subscribing to comments on an entry without having to leave a comment themselves
- If the reader later decides to join the conversation, their subscription continues without them having to explicitly set it
- Customization
- You can make the Subscription Manager that your users see use your theme’s header, footer and sidebar, using CSS to style it to fit your site
- Internationalization
- I’ve written Subscribe to Comments 2.1 with i18n in mind, making full use of
__()and_e()functions. The domain is “subscribe-to-comments”.
- I’ve written Subscribe to Comments 2.1 with i18n in mind, making full use of
Download
Version 2.1 Update
Version 2.1 of Subscribe to Comments has a feature that people have been begging me to implement for many months: you can view the list of people who are subscribed to posts on your blog, and you can also see a list of the most “subscribed” posts. Also in this version is a new one-file install. You just put subscribe-to-comments.php in your /plugins/ directory, activate, and you’re done. This version will work on WordPress versions from 2.0.6 through 2.3.1 (highest tested).
Versions
- 2.1.2 Fixed a few bugs that’d send bad notifications (thanks Donncha!), cleaned up some code and moved to using proper WP escaping functions
- 2.1.1 WordPress 2.2 compatibility! Also note that support for
attribute_escape()is needed, so if you get errors about that, upgrade to the latest version in your branch - 2.1 big update, fixing a few potential XSS holes, and misc error messages… see above for details
- 2.0.8 XSS security fixes, hopefully fixed “+” symbols in e-mail for good
- 2.0.7 additional “funky e-mail” fixes
- 2.0.6 support for e-mail addresses with “+” symbols, option to disable CSS “clearing”
- 2.0.4 potential security bugs, better WP 2.0 capabilities compat
Feedback/Bugs
Feel free to leave bug reports or feature requests here. Use this entry’s comments to ask support questions or offer general feedback


Matteo,
Sorry about that… the WordPress server was being moved when you tried to download. It’s good now.
Dayna,
If you get a notification for this comment that I am leaving, then yes, it works with WordPress 2.0! I’ve not heard any reports of it breaking, and it is a fairly popular plugin.
Thank you for your reply. It worked well with WordPress 2.0.
Hello,
I used the comment plugin. And it works great, but i have a question. If i loged in Wp and after that i go to the mainpage and place a comment on a article. I get the following message:
You may not access this page without a valid key.
How can i fix that?
greetings,
Eddie
I forget to tell that i get that message “You may not access this page without a valid key.” when i want to manage myne subscriptions…
Hi, I’m using subscribe-to-commens with wp-phpmailer 1.6.1 (www.coffee2code.com/wp-plugins/) with WordPress 2.0.1-alpha. I just noticed that attempts to post comments result in the following error:
Warning: fsockopen(): unable to connect to mail.tatumweb.com:25 in /home/tatumweb/public_html/blog/wp-content/plugins/wp-phpmailer/class.smtp.php on line 105
Warning: fsockopen(): unable to connect to tatumweb.com:25 in /home/tatumweb/public_html/blog/wp-content/plugins/wp-phpmailer/class.smtp.php on line 105
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/tatumweb/public_html/blog/wp-content/plugins/wp-phpmailer/class.smtp.php on line 105
Warning: fsockopen(): unable to connect to smtp.tatumweb.com:25 in /home/tatumweb/public_html/blog/wp-content/plugins/wp-phpmailer/class.smtp.php on line 105
Warning: Cannot modify header information - headers already sent by (output started at /home/tatumweb/public_html/blog/wp-content/plugins/wp-phpmailer/class.smtp.php:105) in /home/tatumweb/public_html/blog/wp-includes/pluggable-functions.php on line 194
Do you think this is a problem with wp-phpmailer (I’ve left a comment there), with the pluggable functions file, or with subscribe-to-comments?
Not sure what to fix here … I’m not even sure whether the problem began with version 2.0.
Odd.
Rich.
Definitely a problem with wp-phpmailer.
Thanks for the quick response.
I poked around and found that my ISP is blocking unauthenticated posts via port 25. Nothing I could do would authenticate, so I checked some more and found that I needed to use a totally different port for authentication. Now it works. Thanks, and sorry for the blather.
On myne site you see in de commentbox the word Abonneer and then the checkbox.
In Safari it looks good, but in Firefox and IE the text Abonneer is out of the commentbox and you see also first the checkbox and then the text?
A have also a question of it is possible to see:
Abonneer, checkbox and after that also text in one line (in the bleu commentbox).
I hope someone can help me…
http://www.applenieuws.nl
Greetings from the Netherlands,
Eddie
You need to move the comment hook up into the fieldset, and remove
style="clear: both;"in the opening paragraph tag.nice plugin - there is one problem that i have. the way that i have my wp template setup is that the header goes above the content in the code, so the way the subscription manager page looks is that my menus and sidebar are under the content area. how can i change it so that it goes above the content area?
Hi!
It appears that no one has asked this before but:
1. Where exactly the email addresses of the subscribed/blocked people are saved?
2. Is there a form for the admin to see a list of all the mails with its subscriptions? It seems a bit of a pain to check mail by mail to see if any has subscriptions.
Thanks for your time.
The e-mail addresses can be in one of two places… the comment itself, or the post’s custom fields. It depends on whether they subscribed and commented, or subscribed without commenting.
There isn’t currently a built-in way for the admin to see all the e-mails and the entries to which they are subscribed.
Hi, I can’t get Subscribe to Comments 2.0/2.02 to send emails. I’ve tested it according to the readme and also have tried generating emails by using the “Change E-mail Address” function in manage->subscriptions. None of these have worked and I’ve checked server logs and they were never generated. What sort of things can I try to get it working?
I’m using wordpress 1.5.2, and the other email notification plugin I have activated works.
do you know there is a small compatability issue with wp 2.0? It is even commented on in the Wordpress Codex compatability thread here: http://codex.wordpress.org/User:Matt/2.0_Plugin_Compatibility. I love your plugin. Its one of my favorites. That is the only reason I ask! When I visit my admin and hit manage–>subscriptions, I get an error:
Warning: sg_subscribe_admin(/home/kurtdamr/public_html/wp-subscription-manager.php): failed to open stream: No such file or directory in /home/kurtdamr/public_html/wp-content/plugins/subscribe-to-comments.php on line 839
Warning: sg_subscribe_admin(/home/kurtdamr/public_html/wp-subscription-manager.php): failed to open stream: No such file or directory in /home/kurtdamr/public_html/wp-content/plugins/subscribe-to-comments.php on line 839
Warning: sg_subscribe_admin(): Failed opening ‘/home/kurtdamr/public_html/wp-subscription-manager.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/kurtdamr/public_html/wp-content/plugins/subscribe-to-comments.php on line 839
Thanks!
Kurt, that just means that you didn’t put
)
wp-subscription-manager.phpin the WP root folder. You probably deleted it when you upgrade to WP 2.0 (you’re not the only oneMark, what address do you have set as the “From” address? Is it on your domain? Some hosts don’t allow you to set “From” addresses that aren’t on your domain.
Mark, you were absolutely right. I missed that part! Thanks for being so helpful and for such an excellent plugin. Now, If I could only figure out how to use the gravatar plugin in wp 2.0 with my theme! Its too advanced for me!
Mark,
I have the from address to be on my domain, other emails that use the same from address domain (with auto-generated wordpress emails and the subscribe2 plugin) are working.
I can see that people are subscribed post comments, so I know at least that data is being stored.
I seem to be having problems with this plugin operating with wp-cache. I love this plugin, and would be loathe to do without, but my page is currently breaking if you return to the page you’ve visited previously, the cache is served up and an error occurs:
Fatal error: Call to undefined function: show_manual_subscription_form() in /home/tatumweb/public_html/blog/wp-content/cache/wp-cache-e46539f39668c74157d357836212362a.html on line 685
I’ve wrapped the functions with an mfunc wrapper, but possibly I’ve done it wrong. This is what I have:
<!–mfunc show_subscription_checkbox() –>
<?php show_subscription_checkbox(); ?>
<!–/mfunc–>
and ….
<!–mfunc show_manual_subscription_form() –>
<?php show_manual_subscription_form(); ?>
<!–/mfunc–>
This is supposed to force wp and wp-cache to process the functions ofthis plugin before delivering the cached result.
Any ideas?
Regards,
Rich
BlogRodent
This is a good plugin. The only thing that I’d advise for a future revision would be to allow modification of the emails that are sent out. Although I did this myself by directly editing the PHP, it was a bit of a haul.
Great work!
Rich,
That’s not working because the plugin isn’t loaded when the page is cached. It’s not going to work dynamically while using a cache plugin.
Mark, is it possible that PHP settings could cause the plugin not to work? How can I test if the plugin is loaded when a user visits a page? I checked, and PHP is configured with “nocache” so I’m not worried about caching, but is ther anything else?
Mark, try this:
Edit the plugin. Look for the
function send_email(… and within that function put two forward slashes//in front of the two lines that start with$headers.Let me know if that works. If not, would you be willing to give me FTP access to that file so I can troubleshoot it? What’s happening is that
wp_mail()is returning false, which means thatmail()is returning false. I think it may be the headers, for some reason.Mark, hey it works! Thanks a bunch. Without modifying the header I can’t set the from name and address and it defaults to the admin’s email, but that’s ok, since the emails actually send! Thank you so much fo ryour time to help fix this.
Hi there,
Just found this awsome plugin. I just wondered whether, in admin, I should be seeing a list of subscribed users or just the search for subscribed users in admin - manage - subscriptions. I see just the latter.
Also I have a custom comments form that has a javascript to stop people posting blank emails. I take it users won’t be able to subscribe without comments because of this.
Keep up the good work.
Karl
Hello:
I wanted to install this plugin for my step fathers site, but for some reason it is not working. I put the two files where they belong. I activated the plugin, I visited the option page for the plugin, and I tested the plugin using multiple email addresses. I am running Wordpress 1.5.2, and using the theme Kiwi. Any suggestions?
Hello:
I wanted to install this plugin for my step fathers site, but for some reason it is not working. I put the two files where they belong. I activated the plugin, I visited the option page for the plugin, and I tested the plugin using multiple email addresses. I am running Wordpress 1.5.2, and using the theme Kiwi. Any suggestions?
PS his website is Watchingpolitics.com, if that will help (I am not responsible for the content).
Has this plugin been updated for wordpress 2.0? Great work!
Todd,
The current version works with WordPress 2.0
Terrin,
Try the advice I posted in this comment… this will be fixed in a future version.
Karl,
No list of subscribed users in admin… although I may add it as it is a popular request. The “subscribe without commenting” feature uses a new form (which is why it must be placed outside of your existing comments form), so your Javascript will probably not interfere.
kindly lemme know how can i see the list of subcribed people in my admin panel!
Its a imp feature.. buddy plz implement it!
‘No list of subscribed users in admin’
OK thanks, I’m not really botthered who has subscribed but it would be nice to see the numbers of who is subscibed.
All the best
Karl
It’s coming. I’m just very busy. I found this rough script kicking around from sometime last year… maybe it’ll hold you over. It’s sorted by e-mail address. Place the script in your WordPress directory and point your browser at it.
ok dude.. thanks a lot.. lemme try that.. also plz plz work on the new version soon.
btw.. can you tell what plugin u used that it shows blogauthor and subcribed for others! Also plz include this also in the next version!
That’s been supported in Subscribe to Comments for over 18 months.
STC has a
comment_subscription_status()function that returnstrueorfalsefor each comment.Example:
I tried your rough script placing it in the root folder of wordpress and went to link:
xyz.com/wp-subscriptions-viewer.php
it gives the error:
Warning: Invalid argument supplied for foreach() in ***/public_html/wp-subscriptions-viewer.php on line 10
Warning: Invalid argument supplied for foreach() in ***/public_html/wp-subscriptions-viewer.php on line 20
That just means you have no subscriptions. Like I said, it’s rough.
Sunny, you sure you put it in the root of the wordpress folder as itworked just fine for me, where wp-config sits?
buddy actually i am very new to php stuff… the image blog author and subcribed automatically appears?
and where to place the code that you gave me above!
plz help a little on that.. i am new to php.. don’t mind!
yes karl is put in the root folder.. incase no one has subcribed it, i’l tell my friend to subcribe and see if its works.
I am using wordpress 2.0
‘the image blog author and subcribed automatically appears’
I think that is a bespoke design by the author. As standard you get a hyperlink saying ‘you are the author’ or ‘you are subscribed to this thread’
Kick me if I am wrong
I keep getting:
Fatal error: Call to undefined function: is_do_not_mail() in /home/virtual/site60/fst/var/www/html/wp-subscription-manager.php on line 50after I type in my e-mail address as requested, so are other commenters who return to either unsubscribe. Any ideas?
Thank you again for that plugin, completely operationnal with WP 2.0.1,and for the info given to put back wp-subscription manager at the root…
Sian,
You must be using
wp-subscription-manager.phpfrom the old Subscribe to Comments 1.x … please replace with the version in the 2.x version. Theis_do_not_mail()function hasn’t been in use since I rewrote the plugin almost a year ago.Mark I downloaded the above zip file and everything is now working with no problems. The only question I have is where do I upload the subscribe-to-comments.pot?
Sian,
That file is just to assist translators. You don’t have to upload it anywhere.
hello!
indeed thats a great plug in!
the prob is that i cant translate it… i go to the ubscribe-to-comments.php and change some stuff to see the result and it doesnt changes anything!
what do i do wrong?
im am changing everything on subscribe-to-comments.php (what it concerns text) and only one or two are working!!!
Hi, I noticed that the email that goes out to a commenter indicates the who is and IP of the person who commented after them.
Is there anyway to edit the email formatting to customize the look?
Mark, I installed v. 2.0.2 of your plugin. Everything works fine except the “Manage your subcription” link leads to this:
Not Found
The requested URL /fastcgist/php4/wp-subscription-manager.php was not found on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache PH/SH Ext./1.3.33 Server at http://www.efpma.org Port 80
What’s wrong?
Christoph, did you put
wp-subscription-manager.phpin your WordPress directory? It looks like it just can’t find it there.Mark, yes I did. In the meantime I deactivated all my plugins and changed back to the Kubrik theme but the error remained. I also tested .htaccess but that is the same as on my other blog — where your plugin works nicely. So maybe it’s a server thing? I can give you a test account for the site to see the effect yourself if you send me an email.
To repeat the main facts: The link points to:
http://www.efpma.org/wp-subscription-manager.php?email=freitag@
bogk.org&key=3b040a1d498ab7afa12c7216b3313fb9
&ref=http://www.efpma.org/2006/02/20/noch-n-gedicht/
(I manually added 2 line breaks) and I have made sure that
http://www.efpma.org/wp-subscription-manager.php
exists and has the same file permissions as all the other wp-xyz files.
Sounds like a server issue.
http://www.efpma.org/2006/02/20/noch-n-gedicht/
gives the same error about
index.phpnot existing.Mark, you could not jump to the page linked to above because that post was hidden by the plugin “Category Access”. Anyway that was not the problem. The problem was permalinks. When I reverted to WP default permalink structure everything worked again. Do you have any idea why? It seems to work on your blog. Any suggestion?
Christoph,
Looks like you figured it out, because it’s working? What did you do, for future reference?
Well, I did not really solve the problem. On my site http://www.efpma.org your plugin only works if I “switch off” permalinks, i.e. set permalink structure to “default”. I first thought this was a bug in WP 2.0 but WP 2.0.1 shows the same behaviour.
Interestingly a custom permalink structure such as “/%post_id%/%postname%/” does work on my other site (www.parenthese.de) which is hosted at another provider.
So I will contact my provider on http://www.efpma.org again to solve the issue. In the meantime any help concerning .htaccess rules and mod_rewrite would be appreciated. I have no clue about these.
Update: I have tracked the error down (almost). Your plugin calles wp-blog-header.php which in turn calls wp-config.php. This works irrespective of the permalink setting.
wp-blog-header.php then goes on to call the function wp() which is defined in wp-includes/wp-functions.php. This one in turn has just before been called upon by wp-config.php with the “help” of wp-settings.php.
The function wp() fails if I set permalink structure to anything else but “default”. Since wp() seems to be involved in creating the URI to pass to the server there must be a problem in the creation of this URI.
However I am at a loss here because there are just too many functions that build upon each other. I suppose it has to do with a server variable that my provider’s server doesn’t deliver, something like $_SERVER['REQUEST_URI'] or the like. I am not into Apache so I can’t say which one is the culprit.
If someone has any idea it would help me pin down my provider and/or find a workaround. I stress again: Your plugin does work on my private blog http://www.parenthese.de.
Cheers, Christoph
Mark, I solved it! It was actually very simple. All I had to do was set the server to use PHP5 instead of PHP4. At last. Googling for the right keywords was the key … ;-).
As a side-effect my site responds much faster now, great!
Wow! That’s probably the first time that moving to PHP5 ever solved a problem!
how do i view all the subscriptions that have been made? i want to be able to see the email addresses of the people who have signed up to posts on my site. The only way i can see to do it is to enter the email of the person. but since i dont know any of the email address how do i do it so that i can view an entire list.
please help, thanks
You can use this script for the time being. This is a very popular request, so this functionality will be going into the plugin eventually.
Hey Mark,
regarding your comment in the other post, I just wanted to say this:
You’re welcome - the plugin is really great and I’m looking forward to the next release..
Maybe there’s a chance that you tell me something about a date for the next release? I don’t want something like “March, 8th 2006″, but something like “within 6 or 8 weeks” would be great..
As a suggestion, I’d like to have another way of the subscription-manager.
The reason is that my theme (Firefox from hot-screensaver.com) isn’t that much compatible with your plugin..
I mean, being admin and clicking “Manage subscriptions” results in an error telling me:
(I made a manual line break due to it would break the layout if I wouldn’t do it.. ;))
So it would be great if I could define something like at any location of the site to see the subscription-manager..
But maybe I must dig through the theme-code (its code is sometimes a little bit confusing.. ;)) to get this working..
Kindly regards,
Martin..