# Subscribe to Comments 2

## Description

Subscribe to Comments 2 is a WordPress plugin that allows commenters on an entry to subscribe to e-mail notifications for subsequent comments. It does NOT e-mail you new blog posts. For that functionality, use Skippy's Subscribe2 plugin.

## Links

Here are some of the crucial Subscribe to Comments 2 links

- Plugin's home
- Report Bugs or Suggest Features
- Latest Stable Version

## Installation

1. Put `subscribe-to-comments.php` into `[wordpress_dir]/wp-content/plugins/`
2. If you are upgrading from a 2.0.x version of this plugin only, put `wp-subscription-manager.php` into your blog's root WordPress directory (the directory where `wp-config.php` resides)
3. Go into the WordPress admin interface and activate the plugin
4. Optional: if your WordPress theme doesn't have the `comment_form` hook, or if you would like to manually determine where in your comments form the subscribe checkbox appears, enter this where you would like it: `<?php show_subscription_checkbox(); ?>`
5. Optional: If you would like to enable users to subscribe to comments without having to leave a comment, place this somewhere in your template, but make sure it is outside the comments form. A good place would be right after the ending `</form>` tag for the comments form: `<?php show_manual_subscription_form(); ?>`

## Notes

- The `subscribe-to-comments.pot` file is for translators... normal users should disregard it
- The only file that must be uploaded is the `subscribe-to-comments.php` file. The `wp-subscription-manager.php` file is for backwards compatability only. If you are installing the plugin for the first time, you don't need it. None of the other files in the `/readme-etc/` directory need to be uploaded
- The function >?php comment_subscription_status(); ?> can be used within the comments loop to determine if a comment's author is subscribed or not. e.g.

      <?php if (comment_subscription_status()) { ?>
      Subscribed
      <?php } ?>

- You need to be a logged-in WordPress user with the "manage_options" capability in order to search for subscriptions on random e-mail addresses or to remove a "do not mail" block.
- The author of the post is always determined to be subscribed, and thus will never see the "subscribe" checkbox for his entries, but instead will see the "entry author" message.
- Users are never e-mailed notifications for their own comments. (important that you know that for testing out the plugin)
- The text shown next to the checkbox for unsubscribed users, the "you are subscribed" text, and the "you are the author of this entry" text can all be customized in the options (Options -> Subscribe to Comments).
- By default, the "subscribe" checkbox is unchecked, but you can change that in the options (i.e. so that it is checked by default).
- The following CSS can be used with the WordPress default "Kubrick" theme if you want to use a custom style for the Subscription Manager and should be added to your `style.css` file:

      /* SUBSCRIPTION MANAGER STYLE */
      .subscription-manager {
      padding: 10px 0 20px 0;
      margin: 5px 0 0 55px;
      width: 650px;
      }

      div.wrap {
      background: #fafafa;
      padding: 5px 10px;
      margin: 20px 0;
      border: 1px solid #ccc;
      }

      div.wrap h2 {
      margin: .5em 0 1em 0;
      border-bottom: 2px solid #589bd2;
      }

      div.wrap fieldset {
      border: 1px solid #555;
      margin: 1em 0;
      padding: 5px 10px;
      }

      div.wrap fieldset legend {
      font-weight: bold;
      font-size: small;
      }

      div.wrap p.submit {
      text-align: right;
      }

      .updated {
      background: #B9D6EF;
      border: 1px solid #589bd2;
      margin: 1em 5% 10px;
      padding: 0 1em;
      }

      .updated-error {
      background-color: #FFA3A3;
      border: 1px solid #FF5D5D;
      }

      div.wrap form {
      margin: 0;
      padding: 0;
      }

      div.warp li {
      margin-bottom: 6px;
      line-height: 130%;
      }
      /* END SUBSCRIPTION MANAGER STYLE */