Version Description
Download this release
Release Info
Developer | markjaquith |
Plugin | Subscribe to Comments |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.0.2
- readme.txt +26 -0
- subscribe-to-comments.php +2 -2
- subscribe-to-comments.pot +29 -29
- wp-subscription-manager.php +1 -1
readme.txt
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Subscribe to Comments ===
|
2 |
+
Tags: comments, subscription
|
3 |
+
Contributors: markjaquith
|
4 |
+
|
5 |
+
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.
|
6 |
+
|
7 |
+
== Installation ==
|
8 |
+
|
9 |
+
1. Put subscribe-to-comments.php into [wordpress_dir]/wp-content/plugins/
|
10 |
+
2. Put wp-subscription-manager.php into your blog's root WordPress directory (the directory where wp-config.php resides)
|
11 |
+
3. Go into the WordPress admin interface and activate the plugin
|
12 |
+
4. Optional: if your WordPress 1.5 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(); ?>
|
13 |
+
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 <strong>outside the comments form</strong>. A good place would be right after the ending </form> tag for the comments form: <?php show_manual_subscription_form(); ?>
|
14 |
+
|
15 |
+
== Frequently Asked Questions ==
|
16 |
+
|
17 |
+
= How can I tell if it's working? =
|
18 |
+
|
19 |
+
1. Log out of WordPress
|
20 |
+
2. Leave a comment on an entry and check the comment subscription box, using an e-mail that is NOT the WP admin e-mail address or the e-mail address of the author of the post.
|
21 |
+
3. Leave a second comment (don't have to subscribed) using any old e-mail address
|
22 |
+
4. This should trigger a notification to the first address you used.
|
23 |
+
|
24 |
+
= I'd like the subscription checkbox to be checked by default. Can I do that? =
|
25 |
+
|
26 |
+
By default, the "subscribe" checkbox is unchecked, but you can change that in the options (i.e. so that it is checked by default).
|
subscribe-to-comments.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Subscribe To Comments
|
4 |
-
Version: 2.0
|
5 |
Plugin URI: http://txfx.net/search/subscribe%20to%20comments%202
|
6 |
Description: Allows readers to recieve notifications of new comments that are posted to an entry
|
7 |
Author: Mark Jaquith and Jennifer (ScriptyGoddess)
|
@@ -784,7 +784,7 @@ class sg_subscribe
|
|
784 |
// Substitute the substring matches into the query.
|
785 |
eval("\$query = \"$query\";");
|
786 |
$query = new WP_Query($query);
|
787 |
-
if ( $query->
|
788 |
return $query->post->ID;
|
789 |
else
|
790 |
return 0;
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Subscribe To Comments
|
4 |
+
Version: 2.0.2
|
5 |
Plugin URI: http://txfx.net/search/subscribe%20to%20comments%202
|
6 |
Description: Allows readers to recieve notifications of new comments that are posted to an entry
|
7 |
Author: Mark Jaquith and Jennifer (ScriptyGoddess)
|
784 |
// Substitute the substring matches into the query.
|
785 |
eval("\$query = \"$query\";");
|
786 |
$query = new WP_Query($query);
|
787 |
+
if ( $query->is_single || $query->is_page )
|
788 |
return $query->post->ID;
|
789 |
else
|
790 |
return 0;
|
subscribe-to-comments.pot
CHANGED
@@ -2,9 +2,9 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Subscribe to Comments 2.0\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
-
"PO-Revision-Date: 2005-
|
6 |
"Last-Translator: Mark Jaquith <mark.i18n@txfx.net>\n"
|
7 |
-
"Language-Team: Mark Jaquith
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -196,17 +196,17 @@ msgstr ""
|
|
196 |
msgid "You are the author of this entry. <a href=\"[manager_link]\">Manage subscriptions</a>."
|
197 |
msgstr ""
|
198 |
|
199 |
-
# c:\stc/subscribe-to-comments.php:
|
200 |
-
# c:\stc/wp-subscription-manager.php:
|
201 |
msgid "Comment Subscription Manager"
|
202 |
msgstr ""
|
203 |
|
204 |
-
# c:\stc/subscribe-to-comments.php:
|
205 |
-
# c:\stc/wp-subscription-manager.php:
|
206 |
msgid "Subscriptions"
|
207 |
msgstr ""
|
208 |
|
209 |
-
# c:\stc/subscribe-to-comments.php:
|
210 |
msgid "Subscribe to Comments"
|
211 |
msgstr ""
|
212 |
|
@@ -281,99 +281,99 @@ msgstr ""
|
|
281 |
msgid "%s Comment Subscription Manager"
|
282 |
msgstr ""
|
283 |
|
284 |
-
# c:\stc/wp-subscription-manager.php:
|
285 |
#, php-format
|
286 |
msgid "Return to the page you were viewing: %s"
|
287 |
msgstr ""
|
288 |
|
289 |
-
# c:\stc/wp-subscription-manager.php:
|
290 |
msgid "Remove Block"
|
291 |
msgstr ""
|
292 |
|
293 |
-
# c:\stc/wp-subscription-manager.php:
|
294 |
#, php-format
|
295 |
msgid "Click the button below to remove the block on <strong>%s</strong>. This should only be done if the user has specifically requested it."
|
296 |
msgstr ""
|
297 |
|
298 |
-
# c:\stc/wp-subscription-manager.php:
|
299 |
msgid "Remove Block »"
|
300 |
msgstr ""
|
301 |
|
302 |
-
# c:\stc/wp-subscription-manager.php:
|
303 |
msgid "Blocked"
|
304 |
msgstr ""
|
305 |
|
306 |
-
# c:\stc/wp-subscription-manager.php:
|
307 |
#, php-format
|
308 |
msgid "You have indicated that you do not wish to receive any notifications at <strong>%s</strong> from this site. If this is incorrect, or if you wish to have the block removed, please contact the <a href=\"mailto:%s\">site administrator</a>."
|
309 |
msgstr ""
|
310 |
|
311 |
-
# c:\stc/wp-subscription-manager.php:
|
312 |
#, php-format
|
313 |
msgid "<strong>%s</strong> is not subscribed to any posts on this site."
|
314 |
msgstr ""
|
315 |
|
316 |
-
# c:\stc/wp-subscription-manager.php:
|
317 |
#, php-format
|
318 |
msgid "<strong>%s</strong> is not a valid e-mail address."
|
319 |
msgstr ""
|
320 |
|
321 |
-
# c:\stc/wp-subscription-manager.php:
|
322 |
msgid "Find Subscriptions"
|
323 |
msgstr ""
|
324 |
|
325 |
-
# c:\stc/wp-subscription-manager.php:
|
326 |
msgid "Enter an e-mail address to view its subscriptions or undo a block."
|
327 |
msgstr ""
|
328 |
|
329 |
-
# c:\stc/wp-subscription-manager.php:
|
330 |
msgid "Search »"
|
331 |
msgstr ""
|
332 |
|
333 |
-
# c:\stc/wp-subscription-manager.php:
|
334 |
#, php-format
|
335 |
msgid "<strong>%s</strong> is subscribed to the posts listed below. To unsubscribe to one or more posts, click the checkbox next to the title, then click \"Remove Selected Subscription(s)\" at the bottom of the list."
|
336 |
msgstr ""
|
337 |
|
338 |
-
# c:\stc/wp-subscription-manager.php:
|
339 |
msgid "Invert Checkbox Selection"
|
340 |
msgstr ""
|
341 |
|
342 |
-
# c:\stc/wp-subscription-manager.php:
|
343 |
msgid "Remove Selected Subscription(s) »"
|
344 |
msgstr ""
|
345 |
|
346 |
-
# c:\stc/wp-subscription-manager.php:
|
347 |
msgid "Advanced Options"
|
348 |
msgstr ""
|
349 |
|
350 |
-
# c:\stc/wp-subscription-manager.php:
|
351 |
msgid "Block All Notifications"
|
352 |
msgstr ""
|
353 |
|
354 |
-
# c:\stc/wp-subscription-manager.php:
|
355 |
#, php-format
|
356 |
msgid "If you would like <strong>%s</strong> to be blocked from receiving any notifications from this site, click the button below. This should be reserved for cases where someone is signing you up for notifications without your consent."
|
357 |
msgstr ""
|
358 |
|
359 |
-
# c:\stc/wp-subscription-manager.php:
|
360 |
msgid "Block Notifications »"
|
361 |
msgstr ""
|
362 |
|
363 |
-
# c:\stc/wp-subscription-manager.php:
|
364 |
msgid "Change E-mail Address"
|
365 |
msgstr ""
|
366 |
|
367 |
-
# c:\stc/wp-subscription-manager.php:
|
368 |
#, php-format
|
369 |
msgid "If you would like to change the e-mail address for your subscriptions, enter the new address below. You will be required to verify this request by clicking a special link sent to your current address (<strong>%s</strong>)."
|
370 |
msgstr ""
|
371 |
|
372 |
-
# c:\stc/wp-subscription-manager.php:
|
373 |
msgid "New E-mail Address:"
|
374 |
msgstr ""
|
375 |
|
376 |
-
# c:\stc/wp-subscription-manager.php:
|
377 |
msgid "Change E-mail Address »"
|
378 |
msgstr ""
|
379 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Subscribe to Comments 2.0\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: 2005-07-11 18:42-0500\n"
|
6 |
"Last-Translator: Mark Jaquith <mark.i18n@txfx.net>\n"
|
7 |
+
"Language-Team: Mark Jaquith <mark.wordpress@txfx.net>\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
196 |
msgid "You are the author of this entry. <a href=\"[manager_link]\">Manage subscriptions</a>."
|
197 |
msgstr ""
|
198 |
|
199 |
+
# c:\stc/subscribe-to-comments.php:813
|
200 |
+
# c:\stc/wp-subscription-manager.php:119
|
201 |
msgid "Comment Subscription Manager"
|
202 |
msgstr ""
|
203 |
|
204 |
+
# c:\stc/subscribe-to-comments.php:813
|
205 |
+
# c:\stc/wp-subscription-manager.php:220
|
206 |
msgid "Subscriptions"
|
207 |
msgstr ""
|
208 |
|
209 |
+
# c:\stc/subscribe-to-comments.php:818
|
210 |
msgid "Subscribe to Comments"
|
211 |
msgstr ""
|
212 |
|
281 |
msgid "%s Comment Subscription Manager"
|
282 |
msgstr ""
|
283 |
|
284 |
+
# c:\stc/wp-subscription-manager.php:122
|
285 |
#, php-format
|
286 |
msgid "Return to the page you were viewing: %s"
|
287 |
msgstr ""
|
288 |
|
289 |
+
# c:\stc/wp-subscription-manager.php:133
|
290 |
msgid "Remove Block"
|
291 |
msgstr ""
|
292 |
|
293 |
+
# c:\stc/wp-subscription-manager.php:136
|
294 |
#, php-format
|
295 |
msgid "Click the button below to remove the block on <strong>%s</strong>. This should only be done if the user has specifically requested it."
|
296 |
msgstr ""
|
297 |
|
298 |
+
# c:\stc/wp-subscription-manager.php:144
|
299 |
msgid "Remove Block »"
|
300 |
msgstr ""
|
301 |
|
302 |
+
# c:\stc/wp-subscription-manager.php:152
|
303 |
msgid "Blocked"
|
304 |
msgstr ""
|
305 |
|
306 |
+
# c:\stc/wp-subscription-manager.php:155
|
307 |
#, php-format
|
308 |
msgid "You have indicated that you do not wish to receive any notifications at <strong>%s</strong> from this site. If this is incorrect, or if you wish to have the block removed, please contact the <a href=\"mailto:%s\">site administrator</a>."
|
309 |
msgstr ""
|
310 |
|
311 |
+
# c:\stc/wp-subscription-manager.php:169
|
312 |
#, php-format
|
313 |
msgid "<strong>%s</strong> is not subscribed to any posts on this site."
|
314 |
msgstr ""
|
315 |
|
316 |
+
# c:\stc/wp-subscription-manager.php:171
|
317 |
#, php-format
|
318 |
msgid "<strong>%s</strong> is not a valid e-mail address."
|
319 |
msgstr ""
|
320 |
|
321 |
+
# c:\stc/wp-subscription-manager.php:183
|
322 |
msgid "Find Subscriptions"
|
323 |
msgstr ""
|
324 |
|
325 |
+
# c:\stc/wp-subscription-manager.php:186
|
326 |
msgid "Enter an e-mail address to view its subscriptions or undo a block."
|
327 |
msgstr ""
|
328 |
|
329 |
+
# c:\stc/wp-subscription-manager.php:194
|
330 |
msgid "Search »"
|
331 |
msgstr ""
|
332 |
|
333 |
+
# c:\stc/wp-subscription-manager.php:223
|
334 |
#, php-format
|
335 |
msgid "<strong>%s</strong> is subscribed to the posts listed below. To unsubscribe to one or more posts, click the checkbox next to the title, then click \"Remove Selected Subscription(s)\" at the bottom of the list."
|
336 |
msgstr ""
|
337 |
|
338 |
+
# c:\stc/wp-subscription-manager.php:237
|
339 |
msgid "Invert Checkbox Selection"
|
340 |
msgstr ""
|
341 |
|
342 |
+
# c:\stc/wp-subscription-manager.php:241
|
343 |
msgid "Remove Selected Subscription(s) »"
|
344 |
msgstr ""
|
345 |
|
346 |
+
# c:\stc/wp-subscription-manager.php:248
|
347 |
msgid "Advanced Options"
|
348 |
msgstr ""
|
349 |
|
350 |
+
# c:\stc/wp-subscription-manager.php:251
|
351 |
msgid "Block All Notifications"
|
352 |
msgstr ""
|
353 |
|
354 |
+
# c:\stc/wp-subscription-manager.php:258
|
355 |
#, php-format
|
356 |
msgid "If you would like <strong>%s</strong> to be blocked from receiving any notifications from this site, click the button below. This should be reserved for cases where someone is signing you up for notifications without your consent."
|
357 |
msgstr ""
|
358 |
|
359 |
+
# c:\stc/wp-subscription-manager.php:262
|
360 |
msgid "Block Notifications »"
|
361 |
msgstr ""
|
362 |
|
363 |
+
# c:\stc/wp-subscription-manager.php:268
|
364 |
msgid "Change E-mail Address"
|
365 |
msgstr ""
|
366 |
|
367 |
+
# c:\stc/wp-subscription-manager.php:275
|
368 |
#, php-format
|
369 |
msgid "If you would like to change the e-mail address for your subscriptions, enter the new address below. You will be required to verify this request by clicking a special link sent to your current address (<strong>%s</strong>)."
|
370 |
msgstr ""
|
371 |
|
372 |
+
# c:\stc/wp-subscription-manager.php:279
|
373 |
msgid "New E-mail Address:"
|
374 |
msgstr ""
|
375 |
|
376 |
+
# c:\stc/wp-subscription-manager.php:284
|
377 |
msgid "Change E-mail Address »"
|
378 |
msgstr ""
|
379 |
|
wp-subscription-manager.php
CHANGED
@@ -217,7 +217,7 @@ for( i = 0, n = form.elements.length; i < n; i++ ) {
|
|
217 |
</script>
|
218 |
|
219 |
<fieldset class="options">
|
220 |
-
<legend><?php _e('Subscriptions'); ?></legend>
|
221 |
|
222 |
<p>
|
223 |
<?php printf(__('<strong>%s</strong> is subscribed to the posts listed below. To unsubscribe to one or more posts, click the checkbox next to the title, then click "Remove Selected Subscription(s)" at the bottom of the list.', 'subscribe-to-comments'), $sg_subscribe->email); ?>
|
217 |
</script>
|
218 |
|
219 |
<fieldset class="options">
|
220 |
+
<legend><?php _e('Subscriptions', 'subscribe-to-comments'); ?></legend>
|
221 |
|
222 |
<p>
|
223 |
<?php printf(__('<strong>%s</strong> is subscribed to the posts listed below. To unsubscribe to one or more posts, click the checkbox next to the title, then click "Remove Selected Subscription(s)" at the bottom of the list.', 'subscribe-to-comments'), $sg_subscribe->email); ?>
|