Subscribe2 - Version 7.1

Version Description

Download this release

Release Info

Developer MattyRob
Plugin Icon 128x128 Subscribe2
Version 7.1
Comparing to
See all releases

Code changes from version 7.0.1 to 7.1

ReadMe.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: MattyRob, Skippy, RavanH
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2387904
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.1
6
- Tested up to: 3.3
7
- Stable tag: 7.0.1
8
 
9
  Sends a list of subscribers an email notification when new posts are published to your blog
10
 
@@ -85,25 +85,23 @@ Subscribe2 does not maintain a separate stylesheet for the emails it generates.
85
  Note that if you ever change your site theme, you'll need to copy these additions over to the new theme's stylesheet. To avoid this problem, consider placing a custom CSS file on your server outside of your theme directory, and link to it from the template, thus overriding the active theme styles permanently.
86
 
87
  = Some or all email notifications fail to send, why? =
88
- In the first instance ***check this with your hosting provider***, they have access to your server logs and will be able to tell you where and why emails are being blocked.
89
 
90
- Some hosting providers place a restriction on the maximum number of recipients in any one email message. Some hosts simply block all emails on certain low-cost hosting plans.
91
 
92
- Subscribe2 provides a facility to work around this restriction by sending batches of emails. To enable this feature, go to Settings->Subscribe2 and located the setting to restrict the number of recipients per email. If this is set to 30 then each outgoing email notification will only contain addresses for 30 recipients.
93
 
94
- Reminder: because subscribe2 places all recipients in BCC fields, and places the blog admin in the TO field, the blog admin will receive one email per batched delivery. So if you have 90 subscribers, the blog admin should receive three post notification emails, one for each set of 30 BCC recipients.
95
-
96
- Batches will occur for each group of message as described above. A site on Dreamhost with many public and registered subscribers could conceivably generate a lot of email for your own inbox.
97
 
98
- = When I click on Send Preview in Settings->Susbcribe2 I get 4 emails, why =
99
 
100
- Subscribe2 supports 4 potential email formats for Susbcribers so you will get a preview for each of the different possibilities.
101
 
102
- = Why do I need to create a WordPress Page =
103
 
104
- Subscribe2 uses a filter system to display dynamic output to your readers. The token may result in the display of the subscription form, a subscription message, confirmation that an email has been sent, a prompt to log in. This information needs a static location for the output of the filter and a WordPress page is the ideal place for this to happen.
105
 
106
- If you decide to use Subscribe2 only using the widget you must still have at least one WordPress page on your site for Subscribe2 to work correctly.
107
 
108
  = My host has a limit of X emails per hour / day, can I limit the way Subscribe2 sends emails? =
109
 
@@ -113,6 +111,24 @@ In the first instance you should try to solve the problem by speaking to your ho
113
 
114
  If the above has not put you off then I spent some time writing a Mail Queue script for Subscribe2 that adds the mails to a database table and sends then in periodic batches. It is available, at a price, [here](http://wpplugins.com/plugin/76/wordpress-mail-queue-wpmq).
115
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  = Why is my admin address getting emails from Subscribe2? =
117
 
118
  This plugin sends emails to your subscribers using the BCC (Blind Carbon Copy) header in email messages. Each email is sent TO: the admin address. There may be emails for a plain text excerpt notification, plain text full text and HTML format emails and additionally if the number of recipients per email has been set due to hosting restrictions duplicate copies of these emails will be sent to the admin address.
@@ -283,6 +299,18 @@ Secondly, make sure that the token ([subscribe2] or <!--subscribe2-->) is correc
283
 
284
  == Changelog ==
285
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  = Version 7.0.1 by Matthew Robinson =
287
 
288
  * Fixed a typo in the include/options file that caused failed installs and upgrades
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=2387904
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.1
6
+ Tested up to: 3.3.1
7
+ Stable tag: 7.1
8
 
9
  Sends a list of subscribers an email notification when new posts are published to your blog
10
 
85
  Note that if you ever change your site theme, you'll need to copy these additions over to the new theme's stylesheet. To avoid this problem, consider placing a custom CSS file on your server outside of your theme directory, and link to it from the template, thus overriding the active theme styles permanently.
86
 
87
  = Some or all email notifications fail to send, why? =
88
+ In the first instance **check this with your hosting provider**, they have access to your server logs and will be able to tell you where and why emails are being blocked.
89
 
90
+ This is by far the most common question I am asked and the most frequent issue that arises. Without fail it is always down to a server side limitation or restriction.
91
 
92
+ These restrictions broadly fall into one of three areas. These are the sender details, the header details and restrictions on the number of messages sent.
93
 
94
+ **Sender Details**. You may need to ensure that the email notification is being sent from an email address on the same domain as your blog. So, if your blog is http://www.example.com the email should be something like admin@example.com. To do this go to Subscribe2->Settings and carefully select from the dropdown list where is says "Send Email From". Here you will see "Post Author", then the name of your blog and then the names of your administrator level users. It may be wise to set up a dummy user account specifically to send the emails from and make sure you give that account an on domain email address.
 
 
95
 
96
+ **Header Details**. Some hosting providers place a restriction on the maximum number of recipients in any one email message. Some hosts simply block all emails on certain low-cost hosting plans.
97
 
98
+ Subscribe2 provides a facility to work around a restriction of the maximum number of recipients per email by sending batches of emails. To enable this feature, go to Settings->Subscribe2 and located the setting to restrict the number of recipients per email. If this is set to 30 then each outgoing email notification will only contain addresses for 30 recipients.
99
 
100
+ Reminder: because subscribe2 places all recipients in BCC fields, and places the blog admin in the TO field, the blog admin will receive one email per batched delivery. So if you have 90 subscribers, the blog admin should receive three post notification emails, one for each set of 30 BCC recipients.
101
 
102
+ Batches will occur for each group of message as described above. A site like this with many public and registered subscribers could conceivably generate a lot of email for your own inbox.
103
 
104
+ **Restrictions on the number of messages sent**. In order to combat spam many hosts are now implementing time based limitations. This means you are only allowed to send a certain number of messages per unit time, 500 per hour for example. Subscribe2 does not have a work around for this inbuilt but see the next question.
105
 
106
  = My host has a limit of X emails per hour / day, can I limit the way Subscribe2 sends emails? =
107
 
111
 
112
  If the above has not put you off then I spent some time writing a Mail Queue script for Subscribe2 that adds the mails to a database table and sends then in periodic batches. It is available, at a price, [here](http://wpplugins.com/plugin/76/wordpress-mail-queue-wpmq).
113
 
114
+ = My Digest emails fail to send, why? =
115
+
116
+ If you have already worked through all of the above email trouble shooting tips, and you are still not seeing your periodic digest emails send there may be an issue with the WordPress pseudo-cron functions on your server.
117
+
118
+ The pseudo-cron is WordPress is named after the cron jobs on servers. These are tasks that are run periodically to automate certain functions. In WordPress these tasks include checking for core and plugin updates, publishing scheduled posts and in the case of Subscribe2 sending the digest email. so, if the psuedo-cron is not working the email won't send.
119
+
120
+ some reasons why your pseudo-cron may not be working are explained [here](http://wordpress.org/support/topic/296236#post-1175405). You can also try overcoming these by calling the wp-cron.php file directly and there are even [instructions](http://www.satollo.net/how-to-make-the-wordpress-cron-work) about how to set up a server cron job to do this periodically to restore WordPress pseudo-cron to a working state.
121
+
122
+ = When I click on Send Preview in Settings->Susbcribe2 I get 4 emails, why =
123
+
124
+ Subscribe2 supports 4 potential email formats for Susbcribers so you will get a preview for each of the different possibilities.
125
+
126
+ = Why do I need to create a WordPress Page =
127
+
128
+ Subscribe2 uses a filter system to display dynamic output to your readers. The token may result in the display of the subscription form, a subscription message, confirmation that an email has been sent, a prompt to log in. This information needs a static location for the output of the filter and a WordPress page is the ideal place for this to happen.
129
+
130
+ If you decide to use Subscribe2 only using the widget you must still have at least one WordPress page on your site for Subscribe2 to work correctly.
131
+
132
  = Why is my admin address getting emails from Subscribe2? =
133
 
134
  This plugin sends emails to your subscribers using the BCC (Blind Carbon Copy) header in email messages. Each email is sent TO: the admin address. There may be emails for a plain text excerpt notification, plain text full text and HTML format emails and additionally if the number of recipients per email has been set due to hosting restrictions duplicate copies of these emails will be sent to the admin address.
299
 
300
  == Changelog ==
301
 
302
+ = Version 7.1 by Matthew Robinson =
303
+
304
+ * Fix for Opt-out by Author for Registered Users that resulted in posts being sent even though a user had opted out
305
+ * Workaround implemented for core WordPress glitch that reults in blank sender details in digest emails when using "Post Author" as sender
306
+ * Introduced DIV HTML tags to the administrion menu screens to allow jQuery custom hiding by plugins - proposed by madtownlems
307
+ * Reduced code overhead when collecting admin level users
308
+ * Fix for non-sending emails when published via XML RPC interface (like the iOS app and Windows Live Writer) - thanks to bellarush & Marc Williams
309
+ * Removed the X-Mailer header ready for core PHPMailer update
310
+ * Removed single use of split() function which is deprecated in PHP 5.3.0
311
+ * Added additional parameters to the 's2_html_email' hook - props Milan Dinić
312
+ * Added a check on wp-cron.php to warn digest email users - props Dave Bergschneider
313
+
314
  = Version 7.0.1 by Matthew Robinson =
315
 
316
  * Fixed a typo in the include/options file that caused failed installs and upgrades
include/s2_button.dev.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ // version 1.0 - original version for WordPress versions less than 3.3
2
+ edButtons[edButtons.length] = new edButton( 'Subscribe2', 'Subscribe2', '[subscribe2]', '', '', -1 );
include/s2_button.js CHANGED
@@ -1 +1 @@
1
- edButtons[edButtons.length] = new edButton( 'Subscribe2', 'Subscribe2', '[subscribe2]', '', '', -1 );
1
+ edButtons[edButtons.length]=new edButton('Subscribe2','Subscribe2','[subscribe2]','','',-1);
include/s2_button2.dev.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ // version 2.0 - original version for WordPress versions 3.3 and greater
2
+ QTags.addButton( 'Subscribe2', 'Subscribe2', '[subscribe2]' );
include/s2_button2.js ADDED
@@ -0,0 +1 @@
 
1
+ QTags.addButton('Subscribe2','Subscribe2','[subscribe2]');
include/spacer.gif ADDED
Binary file
subscribe2.php CHANGED
@@ -3,14 +3,14 @@
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
- Version: 7.0.1
7
  Author: Matthew Robinson
8
  Author URI: http://subscribe2.wordpress.com
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=2387904
10
  */
11
 
12
  /*
13
- Copyright (C) 2006-11 Matthew Robinson
14
  Based on the Original Subscribe2 plugin by
15
  Copyright (C) 2005 Scott Merrill (skippy@skippy.net)
16
 
@@ -30,8 +30,7 @@ You should have received a copy of the GNU General Public License
30
  along with Subscribe2. If not, see <http://www.gnu.org/licenses/>.
31
  */
32
 
33
- global $wp_version;
34
- if ( version_compare($wp_version, '3.1', '<') ) {
35
  // Subscribe2 needs WordPress 3.1 or above, exit if not on a compatible version
36
  $exit_msg = sprintf(__('This version of Subscribe2 requires WordPress 3.1 or greater. Please update %1$s or use an older version of %2$s.', 'subscribe2'), '<a href="http://codex.wordpress.org/Updating_WordPress">Wordpress</a>', '<a href="http://wordpress.org/extend/plugins/subscribe2/download/">Subscribe2</a>');
37
  exit($exit_msg);
@@ -39,7 +38,7 @@ if ( version_compare($wp_version, '3.1', '<') ) {
39
 
40
  // our version number. Don't touch this or any line below
41
  // unless you know exactly what you are doing
42
- define( 'S2VERSION', '7.0.1' );
43
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
44
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
45
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
@@ -377,9 +376,9 @@ class s2class {
377
  if ( 'html' == $type ) {
378
  $headers = $this->headers('html');
379
  if ( 'yes' == $this->subscribe2_options['stylesheet'] ) {
380
- $mailtext = apply_filters('s2_html_email', "<html><head><title>" . $subject . "</title><link rel=\"stylesheet\" href=\"" . get_stylesheet_uri() . "\" type=\"text/css\" media=\"screen\" /></head><body>" . $message . "</body></html>");
381
  } else {
382
- $mailtext = apply_filters('s2_html_email', "<html><head><title>" . $subject . "</title></head><body>" . $message . "</body></html>");
383
  }
384
  } else {
385
  $headers = $this->headers();
@@ -475,6 +474,18 @@ class s2class {
475
  $admin = $this->get_userdata($this->subscribe2_options['sender']);
476
  $this->myname = html_entity_decode($admin->display_name, ENT_QUOTES);
477
  $this->myemail = $admin->user_email;
 
 
 
 
 
 
 
 
 
 
 
 
478
  }
479
  }
480
 
@@ -482,7 +493,6 @@ class s2class {
482
  $header['Reply-To'] = $this->myname . " <" . $this->myemail . ">";
483
  $header['Return-path'] = "<" . $this->myemail . ">";
484
  $header['Precedence'] = "list\nList-Id: " . get_option('blogname') . "";
485
- $header['X-Mailer'] = "PHP" . phpversion() . "";
486
  if ( $type == 'html' ) {
487
  // To send HTML mail, the Content-Type header must be set
488
  $header['Content-Type'] = get_option('html_type') . "; charset=\"". get_option('blog_charset') . "\"";
@@ -705,7 +715,7 @@ class s2class {
705
  $this->mail(array($preview), $subject, $html_body, 'html');
706
  } else {
707
  // first we send plaintext summary emails
708
- $registered = $this->get_registered("cats=$post_cats_string&format=excerpt");
709
  if ( empty($registered) ) {
710
  $recipients = (array)$public;
711
  } elseif ( empty($public) ) {
@@ -716,13 +726,13 @@ class s2class {
716
  $this->mail($recipients, $subject, $excerpt_body);
717
 
718
  // next we send plaintext full content emails
719
- $this->mail($this->get_registered("cats=$post_cats_string&format=post"), $subject, $full_body);
720
 
721
  // next we send html excerpt content emails
722
- $this->mail($this->get_registered("cats=$post_cats_string&format=html_excerpt"), $subject, $html_excerpt_body, 'html');
723
 
724
  // finally we send html full content emails
725
- $this->mail($this->get_registered("cats=$post_cats_string&format=html"), $subject, $html_body, 'html');
726
  }
727
  } // end publish()
728
 
@@ -812,14 +822,6 @@ class s2class {
812
  function activate($email = '') {
813
  global $wpdb;
814
 
815
- if ( '' == $email ) {
816
- if ( '' != $this->email ) {
817
- $email = $this->email;
818
- } else {
819
- return false;
820
- }
821
- }
822
-
823
  if ( false !== $this->is_public($email) ) {
824
  $check = $wpdb->get_var("SELECT user_email FROM $wpdb->users WHERE user_email='$this->email'");
825
  if ( $check ) { return; }
@@ -834,17 +836,9 @@ class s2class {
834
  Add an public subscriber to the subscriber table as unconfirmed
835
  */
836
  function add($email = '') {
837
- if ( $this->filtered ==1 ) { return; }
838
  global $wpdb;
839
 
840
- if ( '' == $email ) {
841
- if ( '' != $this->email ) {
842
- $email = $this->email;
843
- } else {
844
- return false;
845
- }
846
- }
847
-
848
  if ( !is_email($email) ) { return false; }
849
 
850
  if ( false !== $this->is_public($email) ) {
@@ -858,16 +852,9 @@ class s2class {
858
  Remove a public subscriber user from the subscription table
859
  */
860
  function delete($email = '') {
 
861
  global $wpdb;
862
 
863
- if ( '' == $email ) {
864
- if ( '' != $this->email ) {
865
- $email = $this->email;
866
- } else {
867
- return false;
868
- }
869
- }
870
-
871
  if ( !is_email($email) ) { return false; }
872
  $wpdb->get_results("DELETE FROM $this->public WHERE CAST(email as binary)='$email'");
873
  } // end delete()
@@ -910,7 +897,7 @@ class s2class {
910
  */
911
  function is_barred($email='') {
912
  $barred_option = $this->subscribe2_options['barred'];
913
- list($user, $domain) = split('@', $email);
914
  $bar_check = stristr($barred_option, $domain);
915
 
916
  if ( !empty($bar_check) ) {
@@ -931,8 +918,7 @@ class s2class {
931
  $code = $_GET['s2'];
932
  $action = intval(substr($code, 0, 1));
933
  $hash = substr($code, 1, 32);
934
- $code = str_replace($hash, '', $code);
935
- $id = intval(substr($code, 1));
936
  if ( $id ) {
937
  $this->email = $this->sanitize_email($this->get_email($id));
938
  if ( !$this->email || $hash !== md5($this->email) ) {
@@ -956,13 +942,10 @@ class s2class {
956
  $subject .= __('New Subscription', 'subscribe2');
957
  $subject = html_entity_decode($subject, ENT_QUOTES);
958
  $message = $this->email . " " . __('subscribed to email notifications!', 'subscribe2');
959
- $recipients = $wpdb->get_col("SELECT DISTINCT(user_email) FROM $wpdb->users INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id WHERE $wpdb->usermeta.meta_key='" . $wpdb->prefix . "user_level' AND $wpdb->usermeta.meta_value='10'");
960
- if ( empty($recipients) ) {
961
- $role = array('fields' => array('user_email'), 'role' => 'administrator');
962
- $wp_user_query = get_users( $role );
963
- foreach ($wp_user_query as $user) {
964
- $recipients[] = $user->user_email;
965
- }
966
  }
967
  $headers = $this->headers();
968
  // send individual emails so we don't reveal admin emails to each other
@@ -976,19 +959,16 @@ class s2class {
976
  // remove this subscriber
977
  $this->message = $this->deleted;
978
  if ( '0' != $current ) {
979
- $this->delete();
980
  if ( $this->subscribe2_options['admin_email'] == 'unsubs' || $this->subscribe2_options['admin_email'] == 'both' ) {
981
  ( '' == get_option('blogname') ) ? $subject = "" : $subject = "[" . stripslashes(get_option('blogname')) . "] ";
982
  $subject .= __('New Unsubscription', 'subscribe2');
983
  $subject = html_entity_decode($subject, ENT_QUOTES);
984
  $message = $this->email . " " . __('unsubscribed from email notifications!', 'subscribe2');
985
- $recipients = $wpdb->get_col("SELECT DISTINCT(user_email) FROM $wpdb->users INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id WHERE $wpdb->usermeta.meta_key='" . $wpdb->prefix . "user_level' AND $wpdb->usermeta.meta_value='10'");
986
- if ( empty($recipients) ) {
987
- $role = array('fields' => array('user_email'), 'role' => 'administrator');
988
- $wp_user_query = get_users( $role );
989
- foreach ($wp_user_query as $user) {
990
- $recipients[] = $user->user_email;
991
- }
992
  }
993
  $headers = $this->headers();
994
  // send individual emails so we don't reveal admin emails to each other
@@ -1156,7 +1136,7 @@ class s2class {
1156
  // specific authors
1157
  if ( '' != $r['author'] ) {
1158
  $JOIN .= "INNER JOIN $wpdb->usermeta AS d ON a.user_id = d.user_id ";
1159
- $AND .= " AND (d.meta_key='" . $this->get_usermeta_keyname('s2_authors') . " AND NOT FIND_IN_SET(" . $r['author'] . ", d.meta_value))";
1160
  }
1161
 
1162
  if ( $this->s2_mu ) {
@@ -1568,20 +1548,10 @@ class s2class {
1568
  $admin = &$userdata;
1569
  }
1570
 
1571
- // if user record is empty grab the first admin from the database
1572
- if ( empty($admin) ) {
1573
- $sql = "SELECT DISTINCT(ID) FROM $wpdb->users INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id WHERE $wpdb->usermeta.meta_key='" . $wpdb->prefix . "user_level' AND $wpdb->usermeta.meta_value IN (8, 9, 10) LIMIT 1";
1574
- $admin = get_userdata($wpdb->get_var($sql));
1575
- }
1576
-
1577
- // handle issues from WordPress core where user_level is not set or set low
1578
- if ( empty($admin) ) {
1579
  $role = array('role' => 'administrator');
1580
  $wp_user_query = get_users( $role );
1581
- foreach ($wp_user_query as $user) {
1582
- $admin[] = $user;
1583
- }
1584
- $admin = $admin[0];
1585
  }
1586
 
1587
  return $admin;
@@ -1800,14 +1770,17 @@ class s2class {
1800
  if ( function_exists('wp_nonce_field') ) {
1801
  wp_nonce_field('subscribe2-manage_subscribers' . $s2nonce);
1802
  }
 
1803
  echo "<h2>" . __('Add/Remove Subscribers', 'subscribe2') . "</h2>\r\n";
1804
  echo "<p>" . __('Enter addresses, one per line or comma-separated', 'subscribe2') . "<br />\r\n";
1805
  echo "<textarea rows=\"2\" cols=\"80\" name=\"addresses\"></textarea></p>\r\n";
1806
  echo "<input type=\"hidden\" name=\"s2_admin\" />\r\n";
1807
  echo "<p class=\"submit\" style=\"border-top: none;\"><input type=\"submit\" class=\"button-primary\" name=\"subscribe\" value=\"" . __('Subscribe', 'subscribe2') . "\" />";
1808
  echo "&nbsp;<input type=\"submit\" class=\"button-primary\" name=\"unsubscribe\" value=\"" . __('Unsubscribe', 'subscribe2') . "\" /></p>\r\n";
 
1809
 
1810
  // subscriber lists
 
1811
  echo "<h2>" . __('Current Subscribers', 'subscribe2') . "</h2>\r\n";
1812
  echo "<br />";
1813
  $this->display_subscriber_dropdown($what, __('Filter', 'subscribe2'));
@@ -1897,10 +1870,12 @@ class s2class {
1897
  echo "<td colspan=\"3\" align=\"right\">" . $strip . "</td></tr>\r\n";
1898
  }
1899
  echo "</table>\r\n";
 
1900
 
1901
  // show bulk managment form if filtered in some Registered Users
1902
  if ( in_array($what, array('registered', 'all_users')) || is_numeric($what) ) {
1903
  $subscribers_string = implode(',', $subscribers);
 
1904
  echo "<h2>" . __('Bulk Management', 'subscribe2') . "</h2>\r\n";
1905
  if ( $this->subscribe2_options['email_freq'] == 'never' ) {
1906
  echo __('Preferences for Registered Users selected in the filter above can be changed using this section.', 'subscribe2') . "<br />\r\n";
@@ -1929,6 +1904,7 @@ class s2class {
1929
  echo "<input type=\"hidden\" name=\"emails\" value=\"$subscribers_string\" />\r\n";
1930
  echo "<p class=\"submit\"><input type=\"submit\" class=\"button-primary\" name=\"sub_digest\" value=\"" . __('Bulk Update Digest Subscription', 'subscribe2') . "\" /></p>";
1931
  }
 
1932
  }
1933
  echo "</form></div>\r\n";
1934
 
@@ -2152,6 +2128,7 @@ class s2class {
2152
  echo "<input type=\"hidden\" id=\"jsentries\" value=\"" . $this->subscribe2_options['entries'] . "\" />";
2153
 
2154
  // settings for outgoing emails
 
2155
  echo "<h2>" . __('Notification Settings', 'subscribe2') . "</h2>\r\n";
2156
  echo __('Restrict the number of recipients per email to (0 for unlimited)', 'subscribe2') . ': ';
2157
  echo "<span id=\"s2bcc_1\"><span id=\"s2bcc\" style=\"background-color: #FFFBCC\">" . $this->subscribe2_options['bcclimit'] . "</span> ";
@@ -2217,10 +2194,12 @@ class s2class {
2217
  echo __('Add Tracking Parameters to the Permalink', 'subscribe2') . ": ";
2218
  echo "<input type=\"text\" name=\"tracking\" value=\"" . stripslashes($this->subscribe2_options['tracking']) . "\" size=\"50\" /> ";
2219
  echo "<br />" . __('eg. utm_source=subscribe2&utm_medium=email&utm_campaign=postnotify', 'subscribe2') . "<br /><br />\r\n";
 
2220
 
2221
  // email templates
 
2222
  echo "<h2>" . __('Email Templates', 'subscribe2') . "</h2>\r\n";
2223
- echo"<br />";
2224
  echo "<table width=\"100%\" cellspacing=\"2\" cellpadding=\"1\" class=\"editform\">\r\n";
2225
  echo "<tr><td>";
2226
  echo __('New Post email (must not be empty)', 'subscribe2') . ":<br />\r\n";
@@ -2263,8 +2242,10 @@ class s2class {
2263
  echo "<input type=\"text\" name=\"remind_subject\" value=\"" . stripslashes($this->subscribe2_options['remind_subject']) . "\" size=\"30\" /><br />\r\n";
2264
  echo "<textarea rows=\"9\" cols=\"60\" name=\"remind_email\">" . stripslashes($this->subscribe2_options['remind_email']) . "</textarea><br /><br />\r\n";
2265
  echo "</td></tr></table><br />\r\n";
 
2266
 
2267
  // excluded categories
 
2268
  echo "<h2>" . __('Excluded Categories', 'subscribe2') . "</h2>\r\n";
2269
  echo "<p>";
2270
  echo "<strong><em style=\"color: red\">" . __('Posts assigned to any Excluded Category do not generate notifications and are not included in digest notifications', 'subscribe2') . "</em></strong><br />\r\n";
@@ -2282,10 +2263,12 @@ class s2class {
2282
  echo "</p>";
2283
  $this->display_format_form($formats, explode(',', $this->subscribe2_options['exclude_formats']));
2284
  }
 
2285
 
2286
  // Appearance options
 
2287
  echo "<h2>" . __('Appearance', 'subscribe2') . "</h2>\r\n";
2288
- echo"<p>";
2289
 
2290
  // WordPress page ID where subscribe2 token is used
2291
  echo __('Set default Subscribe2 page as ID', 'subscribe2') . ': ';
@@ -2326,10 +2309,12 @@ class s2class {
2326
  echo "<label><input type =\"checkbox\" name=\"s2meta_default\" value=\"1\"" . checked($this->subscribe2_options['s2meta_default'], '1', false) . " /> ";
2327
  echo __('Disable email notifications is checked by default on authoring pages?', 'subscribe2') . "</label>\r\n";
2328
  echo "</p>";
 
2329
 
2330
  //Auto Subscription for new registrations
 
2331
  echo "<h2>" . __('Auto Subscribe', 'subscribe2') . "</h2>\r\n";
2332
- echo"<p>";
2333
  echo __('Subscribe new users registering with your blog', 'subscribe2') . ":<br />\r\n";
2334
  echo "<label><input type=\"radio\" name=\"autosub\" value=\"yes\"" . checked($this->subscribe2_options['autosub'], 'yes', false) . " /> ";
2335
  echo __('Automatically', 'subscribe2') . "</label>&nbsp;&nbsp;";
@@ -2369,22 +2354,23 @@ class s2class {
2369
  echo "<label><input type=\"radio\" name=\"autosub_def\" value=\"no\"" . checked($this->subscribe2_options['autosub_def'], 'no', false) . " /> ";
2370
  echo __('No', 'subscribe2') . "</label><br /><br />";
2371
  echo __('Display checkbox to allow subscriptions from the comment form', 'subscribe2') . ": <br />\r\n";
2372
- if ( version_compare($wp_version, '3.0', '>') ) {
2373
- echo "<label><input type=\"radio\" name=\"comment_subs\" value=\"before\"" . checked($this->subscribe2_options['comment_subs'], 'before', false) . " /> ";
2374
- echo __('Before the Comment Submit button', 'subscribe2') . "</label>&nbsp;&nbsp;";
2375
- }
2376
  echo "<label><input type=\"radio\" name=\"comment_subs\" value=\"after\"" . checked($this->subscribe2_options['comment_subs'], 'after', false) . " /> ";
2377
  echo __('After the Comment Submit button', 'subscribe2') . "</label>&nbsp;&nbsp;";
2378
  echo "<label><input type=\"radio\" name=\"comment_subs\" value=\"no\"" . checked($this->subscribe2_options['comment_subs'], 'no', false) . " /> ";
2379
  echo __('No', 'subscribe2');
2380
- echo"</label></p>";
 
2381
 
2382
  //barred domains
 
2383
  echo "<h2>" . __('Barred Domains', 'subscribe2') . "</h2>\r\n";
2384
- echo"<p>";
2385
  echo __('Enter domains to bar from public subscriptions: <br /> (Use a new line for each entry and omit the "@" symbol, for example email.com)', 'subscribe2');
2386
  echo "<br />\r\n<textarea style=\"width: 98%;\" rows=\"4\" cols=\"60\" name=\"barred\">" . $this->subscribe2_options['barred'] . "</textarea>";
2387
- echo"</p>";
 
2388
 
2389
  // submit
2390
  echo "<p class=\"submit\" align=\"center\"><input type=\"submit\" class=\"button-primary\" name=\"submit\" value=\"" . __('Submit', 'subscribe2') . "\" /></p>";
@@ -2986,16 +2972,10 @@ class s2class {
2986
  function admin_dropdown($inc_author = false) {
2987
  global $wpdb;
2988
 
2989
- $sql = "SELECT ID, display_name FROM $wpdb->users INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id WHERE $wpdb->usermeta.meta_key='" . $wpdb->prefix . "user_level' AND $wpdb->usermeta.meta_value IN (8, 9, 10)";
2990
- $admins = $wpdb->get_results($sql);
2991
-
2992
- // handle issues from WordPress core where user_level is not set or set low
2993
- if ( empty($admins) ) {
2994
- $args = array('fields' => array('ID', 'display_name'), 'role' => 'administrator');
2995
- $wp_user_query = get_users( $args );
2996
- foreach ($wp_user_query as $user) {
2997
- $admins[] = $user;
2998
- }
2999
  }
3000
 
3001
  if ( $inc_author ) {
@@ -3021,6 +3001,10 @@ class s2class {
3021
  */
3022
  function display_digest_choices() {
3023
  global $wpdb;
 
 
 
 
3024
  $scheduled_time = wp_next_scheduled('s2_digest_cron');
3025
  $schedule = (array)wp_get_schedules();
3026
  $schedule = array_merge(array('never' => array('interval' => 0, 'display' => __('For each Post', 'subscribe2'))), $schedule);
@@ -3624,7 +3608,12 @@ class s2class {
3624
  add_filter('mce_external_plugins', array(&$this, 'mce3_plugin'));
3625
  add_filter('mce_buttons', array(&$this, 'mce3_button'));
3626
  } else {
3627
- wp_enqueue_script('subscribe2_button', S2URL . 'include/s2_button.js', array('quicktags') );
 
 
 
 
 
3628
  }
3629
  } // end button_init()
3630
 
@@ -3632,7 +3621,7 @@ class s2class {
3632
  Add buttons for Rich Text Editor
3633
  */
3634
  function mce3_plugin($arr) {
3635
- $path = S2URL . 'tinymce3/editor_plugin.js';
3636
  $arr['subscribe2'] = $path;
3637
  return $arr;
3638
  } // end mce3_plugin()
@@ -3880,6 +3869,9 @@ class s2class {
3880
  // if SCRIPT_DEBUG is true, use dev scripts
3881
  $this->script_debug = ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) ? '.dev' : '';
3882
 
 
 
 
3883
  add_action('init', array(&$this, 'subscribe2'));
3884
  if ( '1' == $this->subscribe2_options['show_button'] ) {
3885
  add_action('admin_init', array(&$this, 'button_init'));
@@ -3987,12 +3979,14 @@ class s2class {
3987
  } else {
3988
  add_action('new_to_publish', array(&$this, 'publish'));
3989
  add_action('draft_to_publish', array(&$this, 'publish'));
 
3990
  add_action('pending_to_publish', array(&$this, 'publish'));
3991
  add_action('private_to_publish', array(&$this, 'publish'));
3992
  add_action('future_to_publish', array(&$this, 'publish'));
3993
  if ( $this->subscribe2_options['private'] == 'yes' ) {
3994
  add_action('new_to_private', array(&$this, 'publish'));
3995
  add_action('draft_to_private', array(&$this, 'publish'));
 
3996
  add_action('pending_to_private', array(&$this, 'publish'));
3997
  }
3998
  }
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
+ Version: 7.1
7
  Author: Matthew Robinson
8
  Author URI: http://subscribe2.wordpress.com
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=2387904
10
  */
11
 
12
  /*
13
+ Copyright (C) 2006-12 Matthew Robinson
14
  Based on the Original Subscribe2 plugin by
15
  Copyright (C) 2005 Scott Merrill (skippy@skippy.net)
16
 
30
  along with Subscribe2. If not, see <http://www.gnu.org/licenses/>.
31
  */
32
 
33
+ if ( version_compare($GLOBALS['wp_version'], '3.1', '<') ) {
 
34
  // Subscribe2 needs WordPress 3.1 or above, exit if not on a compatible version
35
  $exit_msg = sprintf(__('This version of Subscribe2 requires WordPress 3.1 or greater. Please update %1$s or use an older version of %2$s.', 'subscribe2'), '<a href="http://codex.wordpress.org/Updating_WordPress">Wordpress</a>', '<a href="http://wordpress.org/extend/plugins/subscribe2/download/">Subscribe2</a>');
36
  exit($exit_msg);
38
 
39
  // our version number. Don't touch this or any line below
40
  // unless you know exactly what you are doing
41
+ define( 'S2VERSION', '7.1' );
42
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
43
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
44
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
376
  if ( 'html' == $type ) {
377
  $headers = $this->headers('html');
378
  if ( 'yes' == $this->subscribe2_options['stylesheet'] ) {
379
+ $mailtext = apply_filters('s2_html_email', "<html><head><title>" . $subject . "</title><link rel=\"stylesheet\" href=\"" . get_stylesheet_uri() . "\" type=\"text/css\" media=\"screen\" /></head><body>" . $message . "</body></html>", $subject, $message);
380
  } else {
381
+ $mailtext = apply_filters('s2_html_email', "<html><head><title>" . $subject . "</title></head><body>" . $message . "</body></html>", $subject, $message);
382
  }
383
  } else {
384
  $headers = $this->headers();
474
  $admin = $this->get_userdata($this->subscribe2_options['sender']);
475
  $this->myname = html_entity_decode($admin->display_name, ENT_QUOTES);
476
  $this->myemail = $admin->user_email;
477
+ // fail safe to ensure sender details are not empty
478
+ if ( empty($this->myname) ) {
479
+ $this->myname = html_entity_decode(get_option('blogname'), ENT_QUOTES);
480
+ }
481
+ if ( empty($this->myemail) ) {
482
+ // Get the site domain and get rid of www.
483
+ $sitename = strtolower( $_SERVER['SERVER_NAME'] );
484
+ if ( substr( $sitename, 0, 4 ) == 'www.' ) {
485
+ $sitename = substr( $sitename, 4 );
486
+ }
487
+ $this->myemail = 'wordpress@' . $sitename;
488
+ }
489
  }
490
  }
491
 
493
  $header['Reply-To'] = $this->myname . " <" . $this->myemail . ">";
494
  $header['Return-path'] = "<" . $this->myemail . ">";
495
  $header['Precedence'] = "list\nList-Id: " . get_option('blogname') . "";
 
496
  if ( $type == 'html' ) {
497
  // To send HTML mail, the Content-Type header must be set
498
  $header['Content-Type'] = get_option('html_type') . "; charset=\"". get_option('blog_charset') . "\"";
715
  $this->mail(array($preview), $subject, $html_body, 'html');
716
  } else {
717
  // first we send plaintext summary emails
718
+ $registered = $this->get_registered("cats=$post_cats_string&format=excerpt&author=$post->post_author");
719
  if ( empty($registered) ) {
720
  $recipients = (array)$public;
721
  } elseif ( empty($public) ) {
726
  $this->mail($recipients, $subject, $excerpt_body);
727
 
728
  // next we send plaintext full content emails
729
+ $this->mail($this->get_registered("cats=$post_cats_string&format=post&author=$post->post_author"), $subject, $full_body);
730
 
731
  // next we send html excerpt content emails
732
+ $this->mail($this->get_registered("cats=$post_cats_string&format=html_excerpt&author=$post->post_author"), $subject, $html_excerpt_body, 'html');
733
 
734
  // finally we send html full content emails
735
+ $this->mail($this->get_registered("cats=$post_cats_string&format=html&author=$post->post_author"), $subject, $html_body, 'html');
736
  }
737
  } // end publish()
738
 
822
  function activate($email = '') {
823
  global $wpdb;
824
 
 
 
 
 
 
 
 
 
825
  if ( false !== $this->is_public($email) ) {
826
  $check = $wpdb->get_var("SELECT user_email FROM $wpdb->users WHERE user_email='$this->email'");
827
  if ( $check ) { return; }
836
  Add an public subscriber to the subscriber table as unconfirmed
837
  */
838
  function add($email = '') {
839
+ if ( $this->filtered == 1 ) { return; }
840
  global $wpdb;
841
 
 
 
 
 
 
 
 
 
842
  if ( !is_email($email) ) { return false; }
843
 
844
  if ( false !== $this->is_public($email) ) {
852
  Remove a public subscriber user from the subscription table
853
  */
854
  function delete($email = '') {
855
+ if ( $this->filtered == 1 ) { return; }
856
  global $wpdb;
857
 
 
 
 
 
 
 
 
 
858
  if ( !is_email($email) ) { return false; }
859
  $wpdb->get_results("DELETE FROM $this->public WHERE CAST(email as binary)='$email'");
860
  } // end delete()
897
  */
898
  function is_barred($email='') {
899
  $barred_option = $this->subscribe2_options['barred'];
900
+ list($user, $domain) = explode('@', $email, 2);
901
  $bar_check = stristr($barred_option, $domain);
902
 
903
  if ( !empty($bar_check) ) {
918
  $code = $_GET['s2'];
919
  $action = intval(substr($code, 0, 1));
920
  $hash = substr($code, 1, 32);
921
+ $id = intval(substr($code, 33));
 
922
  if ( $id ) {
923
  $this->email = $this->sanitize_email($this->get_email($id));
924
  if ( !$this->email || $hash !== md5($this->email) ) {
942
  $subject .= __('New Subscription', 'subscribe2');
943
  $subject = html_entity_decode($subject, ENT_QUOTES);
944
  $message = $this->email . " " . __('subscribed to email notifications!', 'subscribe2');
945
+ $role = array('fields' => array('user_email'), 'role' => 'administrator');
946
+ $wp_user_query = get_users( $role );
947
+ foreach ($wp_user_query as $user) {
948
+ $recipients[] = $user->user_email;
 
 
 
949
  }
950
  $headers = $this->headers();
951
  // send individual emails so we don't reveal admin emails to each other
959
  // remove this subscriber
960
  $this->message = $this->deleted;
961
  if ( '0' != $current ) {
962
+ $this->delete($this->email);
963
  if ( $this->subscribe2_options['admin_email'] == 'unsubs' || $this->subscribe2_options['admin_email'] == 'both' ) {
964
  ( '' == get_option('blogname') ) ? $subject = "" : $subject = "[" . stripslashes(get_option('blogname')) . "] ";
965
  $subject .= __('New Unsubscription', 'subscribe2');
966
  $subject = html_entity_decode($subject, ENT_QUOTES);
967
  $message = $this->email . " " . __('unsubscribed from email notifications!', 'subscribe2');
968
+ $role = array('fields' => array('user_email'), 'role' => 'administrator');
969
+ $wp_user_query = get_users( $role );
970
+ foreach ($wp_user_query as $user) {
971
+ $recipients[] = $user->user_email;
 
 
 
972
  }
973
  $headers = $this->headers();
974
  // send individual emails so we don't reveal admin emails to each other
1136
  // specific authors
1137
  if ( '' != $r['author'] ) {
1138
  $JOIN .= "INNER JOIN $wpdb->usermeta AS d ON a.user_id = d.user_id ";
1139
+ $AND .= " AND (d.meta_key='" . $this->get_usermeta_keyname('s2_authors') . "' AND NOT FIND_IN_SET(" . $r['author'] . ", d.meta_value))";
1140
  }
1141
 
1142
  if ( $this->s2_mu ) {
1548
  $admin = &$userdata;
1549
  }
1550
 
1551
+ if ( empty($admin) || $admin->ID == 0 ) {
 
 
 
 
 
 
 
1552
  $role = array('role' => 'administrator');
1553
  $wp_user_query = get_users( $role );
1554
+ $admin = $wp_user_query[0];
 
 
 
1555
  }
1556
 
1557
  return $admin;
1770
  if ( function_exists('wp_nonce_field') ) {
1771
  wp_nonce_field('subscribe2-manage_subscribers' . $s2nonce);
1772
  }
1773
+ echo "<div class=\"s2_admin\" id=\"s2_add_subscribers\">\r\n";
1774
  echo "<h2>" . __('Add/Remove Subscribers', 'subscribe2') . "</h2>\r\n";
1775
  echo "<p>" . __('Enter addresses, one per line or comma-separated', 'subscribe2') . "<br />\r\n";
1776
  echo "<textarea rows=\"2\" cols=\"80\" name=\"addresses\"></textarea></p>\r\n";
1777
  echo "<input type=\"hidden\" name=\"s2_admin\" />\r\n";
1778
  echo "<p class=\"submit\" style=\"border-top: none;\"><input type=\"submit\" class=\"button-primary\" name=\"subscribe\" value=\"" . __('Subscribe', 'subscribe2') . "\" />";
1779
  echo "&nbsp;<input type=\"submit\" class=\"button-primary\" name=\"unsubscribe\" value=\"" . __('Unsubscribe', 'subscribe2') . "\" /></p>\r\n";
1780
+ echo "</div>\r\n";
1781
 
1782
  // subscriber lists
1783
+ echo "<div class=\"s2_admin\" id=\"s2_current_subscribers\">\r\n";
1784
  echo "<h2>" . __('Current Subscribers', 'subscribe2') . "</h2>\r\n";
1785
  echo "<br />";
1786
  $this->display_subscriber_dropdown($what, __('Filter', 'subscribe2'));
1870
  echo "<td colspan=\"3\" align=\"right\">" . $strip . "</td></tr>\r\n";
1871
  }
1872
  echo "</table>\r\n";
1873
+ echo "</div>\r\n";
1874
 
1875
  // show bulk managment form if filtered in some Registered Users
1876
  if ( in_array($what, array('registered', 'all_users')) || is_numeric($what) ) {
1877
  $subscribers_string = implode(',', $subscribers);
1878
+ echo "<div class=\"s2_admin\" id=\"s2_bulk_manage\">\r\n";
1879
  echo "<h2>" . __('Bulk Management', 'subscribe2') . "</h2>\r\n";
1880
  if ( $this->subscribe2_options['email_freq'] == 'never' ) {
1881
  echo __('Preferences for Registered Users selected in the filter above can be changed using this section.', 'subscribe2') . "<br />\r\n";
1904
  echo "<input type=\"hidden\" name=\"emails\" value=\"$subscribers_string\" />\r\n";
1905
  echo "<p class=\"submit\"><input type=\"submit\" class=\"button-primary\" name=\"sub_digest\" value=\"" . __('Bulk Update Digest Subscription', 'subscribe2') . "\" /></p>";
1906
  }
1907
+ echo "</div>\r\n";
1908
  }
1909
  echo "</form></div>\r\n";
1910
 
2128
  echo "<input type=\"hidden\" id=\"jsentries\" value=\"" . $this->subscribe2_options['entries'] . "\" />";
2129
 
2130
  // settings for outgoing emails
2131
+ echo "<div class=\"s2_admin\" id=\"s2_notification_settings\">\r\n";
2132
  echo "<h2>" . __('Notification Settings', 'subscribe2') . "</h2>\r\n";
2133
  echo __('Restrict the number of recipients per email to (0 for unlimited)', 'subscribe2') . ': ';
2134
  echo "<span id=\"s2bcc_1\"><span id=\"s2bcc\" style=\"background-color: #FFFBCC\">" . $this->subscribe2_options['bcclimit'] . "</span> ";
2194
  echo __('Add Tracking Parameters to the Permalink', 'subscribe2') . ": ";
2195
  echo "<input type=\"text\" name=\"tracking\" value=\"" . stripslashes($this->subscribe2_options['tracking']) . "\" size=\"50\" /> ";
2196
  echo "<br />" . __('eg. utm_source=subscribe2&utm_medium=email&utm_campaign=postnotify', 'subscribe2') . "<br /><br />\r\n";
2197
+ echo "</div>\r\n";
2198
 
2199
  // email templates
2200
+ echo "<div class=\"s2_admin\" id=\"s2_templates\">\r\n";
2201
  echo "<h2>" . __('Email Templates', 'subscribe2') . "</h2>\r\n";
2202
+ echo "<br />";
2203
  echo "<table width=\"100%\" cellspacing=\"2\" cellpadding=\"1\" class=\"editform\">\r\n";
2204
  echo "<tr><td>";
2205
  echo __('New Post email (must not be empty)', 'subscribe2') . ":<br />\r\n";
2242
  echo "<input type=\"text\" name=\"remind_subject\" value=\"" . stripslashes($this->subscribe2_options['remind_subject']) . "\" size=\"30\" /><br />\r\n";
2243
  echo "<textarea rows=\"9\" cols=\"60\" name=\"remind_email\">" . stripslashes($this->subscribe2_options['remind_email']) . "</textarea><br /><br />\r\n";
2244
  echo "</td></tr></table><br />\r\n";
2245
+ echo "</div>\r\n";
2246
 
2247
  // excluded categories
2248
+ echo "<div class=\"s2_admin\" id=\"s2_excluded_categories\">\r\n";
2249
  echo "<h2>" . __('Excluded Categories', 'subscribe2') . "</h2>\r\n";
2250
  echo "<p>";
2251
  echo "<strong><em style=\"color: red\">" . __('Posts assigned to any Excluded Category do not generate notifications and are not included in digest notifications', 'subscribe2') . "</em></strong><br />\r\n";
2263
  echo "</p>";
2264
  $this->display_format_form($formats, explode(',', $this->subscribe2_options['exclude_formats']));
2265
  }
2266
+ echo "</div>\r\n";
2267
 
2268
  // Appearance options
2269
+ echo "<div class=\"s2_admin\" id=\"s2_appearance_settings\">\r\n";
2270
  echo "<h2>" . __('Appearance', 'subscribe2') . "</h2>\r\n";
2271
+ echo "<p>";
2272
 
2273
  // WordPress page ID where subscribe2 token is used
2274
  echo __('Set default Subscribe2 page as ID', 'subscribe2') . ': ';
2309
  echo "<label><input type =\"checkbox\" name=\"s2meta_default\" value=\"1\"" . checked($this->subscribe2_options['s2meta_default'], '1', false) . " /> ";
2310
  echo __('Disable email notifications is checked by default on authoring pages?', 'subscribe2') . "</label>\r\n";
2311
  echo "</p>";
2312
+ echo "</div>\r\n";
2313
 
2314
  //Auto Subscription for new registrations
2315
+ echo "<div class=\"s2_admin\" id=\"s2_autosubscribe_settings\">\r\n";
2316
  echo "<h2>" . __('Auto Subscribe', 'subscribe2') . "</h2>\r\n";
2317
+ echo "<p>";
2318
  echo __('Subscribe new users registering with your blog', 'subscribe2') . ":<br />\r\n";
2319
  echo "<label><input type=\"radio\" name=\"autosub\" value=\"yes\"" . checked($this->subscribe2_options['autosub'], 'yes', false) . " /> ";
2320
  echo __('Automatically', 'subscribe2') . "</label>&nbsp;&nbsp;";
2354
  echo "<label><input type=\"radio\" name=\"autosub_def\" value=\"no\"" . checked($this->subscribe2_options['autosub_def'], 'no', false) . " /> ";
2355
  echo __('No', 'subscribe2') . "</label><br /><br />";
2356
  echo __('Display checkbox to allow subscriptions from the comment form', 'subscribe2') . ": <br />\r\n";
2357
+ echo "<label><input type=\"radio\" name=\"comment_subs\" value=\"before\"" . checked($this->subscribe2_options['comment_subs'], 'before', false) . " /> ";
2358
+ echo __('Before the Comment Submit button', 'subscribe2') . "</label>&nbsp;&nbsp;";
 
 
2359
  echo "<label><input type=\"radio\" name=\"comment_subs\" value=\"after\"" . checked($this->subscribe2_options['comment_subs'], 'after', false) . " /> ";
2360
  echo __('After the Comment Submit button', 'subscribe2') . "</label>&nbsp;&nbsp;";
2361
  echo "<label><input type=\"radio\" name=\"comment_subs\" value=\"no\"" . checked($this->subscribe2_options['comment_subs'], 'no', false) . " /> ";
2362
  echo __('No', 'subscribe2');
2363
+ echo "</label></p>";
2364
+ echo "</div>\r\n";
2365
 
2366
  //barred domains
2367
+ echo "<div class=\"s2_admin\" id=\"s2_barred_domains\">\r\n";
2368
  echo "<h2>" . __('Barred Domains', 'subscribe2') . "</h2>\r\n";
2369
+ echo "<p>";
2370
  echo __('Enter domains to bar from public subscriptions: <br /> (Use a new line for each entry and omit the "@" symbol, for example email.com)', 'subscribe2');
2371
  echo "<br />\r\n<textarea style=\"width: 98%;\" rows=\"4\" cols=\"60\" name=\"barred\">" . $this->subscribe2_options['barred'] . "</textarea>";
2372
+ echo "</p>";
2373
+ echo "</div>\r\n";
2374
 
2375
  // submit
2376
  echo "<p class=\"submit\" align=\"center\"><input type=\"submit\" class=\"button-primary\" name=\"submit\" value=\"" . __('Submit', 'subscribe2') . "\" /></p>";
2972
  function admin_dropdown($inc_author = false) {
2973
  global $wpdb;
2974
 
2975
+ $args = array('fields' => array('ID', 'display_name'), 'role' => 'administrator');
2976
+ $wp_user_query = get_users( $args );
2977
+ foreach ($wp_user_query as $user) {
2978
+ $admins[] = $user;
 
 
 
 
 
 
2979
  }
2980
 
2981
  if ( $inc_author ) {
3001
  */
3002
  function display_digest_choices() {
3003
  global $wpdb;
3004
+ $cron_file = ABSPATH . 'wp-cron.php';
3005
+ if ( !is_readable($cron_file) ) {
3006
+ echo "<strong><em style=\"color: red\">" . __('The WordPress cron functions may be disabled on this server. Digest notifications may not work.', 'subscribe2') . "</em></strong><br />\r\n";
3007
+ }
3008
  $scheduled_time = wp_next_scheduled('s2_digest_cron');
3009
  $schedule = (array)wp_get_schedules();
3010
  $schedule = array_merge(array('never' => array('interval' => 0, 'display' => __('For each Post', 'subscribe2'))), $schedule);
3608
  add_filter('mce_external_plugins', array(&$this, 'mce3_plugin'));
3609
  add_filter('mce_buttons', array(&$this, 'mce3_button'));
3610
  } else {
3611
+ if ( version_compare($this->wp_release, '3.3', '<') ) {
3612
+ wp_enqueue_script('subscribe2_button', S2URL . 'include/s2_button' . $this->script_debug . '.js', array('quicktags'), '1.0' );
3613
+ } else {
3614
+ // use QTags.addButton for WordPress 3.3 and greater
3615
+ wp_enqueue_script('subscribe2_button', S2URL . 'include/s2_button2' . $this->script_debug . '.js', array('quicktags'), '2.0' );
3616
+ }
3617
  }
3618
  } // end button_init()
3619
 
3621
  Add buttons for Rich Text Editor
3622
  */
3623
  function mce3_plugin($arr) {
3624
+ $path = S2URL . 'tinymce3/editor_plugin' . $this->script_debug . '.js';
3625
  $arr['subscribe2'] = $path;
3626
  return $arr;
3627
  } // end mce3_plugin()
3869
  // if SCRIPT_DEBUG is true, use dev scripts
3870
  $this->script_debug = ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) ? '.dev' : '';
3871
 
3872
+ // get the WordPress release number for in code version comparisons
3873
+ list($this->wp_release, $more) = explode('-', $GLOBALS['wp_version'], 2);
3874
+
3875
  add_action('init', array(&$this, 'subscribe2'));
3876
  if ( '1' == $this->subscribe2_options['show_button'] ) {
3877
  add_action('admin_init', array(&$this, 'button_init'));
3979
  } else {
3980
  add_action('new_to_publish', array(&$this, 'publish'));
3981
  add_action('draft_to_publish', array(&$this, 'publish'));
3982
+ add_action('auto-draft_to_publish', array(&$this, 'publish'));
3983
  add_action('pending_to_publish', array(&$this, 'publish'));
3984
  add_action('private_to_publish', array(&$this, 'publish'));
3985
  add_action('future_to_publish', array(&$this, 'publish'));
3986
  if ( $this->subscribe2_options['private'] == 'yes' ) {
3987
  add_action('new_to_private', array(&$this, 'publish'));
3988
  add_action('draft_to_private', array(&$this, 'publish'));
3989
+ add_action('auto-draft_to_private', array(&$this, 'publish'));
3990
  add_action('pending_to_private', array(&$this, 'publish'));
3991
  }
3992
  }
subscribe2.pot CHANGED
@@ -8,7 +8,7 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2011-12-14 20:28+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,947 +17,953 @@ msgstr ""
17
  "Content-Type: text/plain; charset=CHARSET\n"
18
  "Content-Transfer-Encoding: 8bit\n"
19
 
20
- #: subscribe2.php:36
21
  #, php-format
22
  msgid ""
23
  "This version of Subscribe2 requires WordPress 3.1 or greater. Please update "
24
  "%1$s or use an older version of %2$s."
25
  msgstr ""
26
 
27
- #: subscribe2.php:66
28
  msgid "To manage your subscription options please"
29
  msgstr ""
30
 
31
- #: subscribe2.php:66
32
  msgid "login"
33
  msgstr ""
34
 
35
- #: subscribe2.php:68
36
  msgid "You may manage your subscription options from your"
37
  msgstr ""
38
 
39
- #: subscribe2.php:68
40
  msgid "profile"
41
  msgstr ""
42
 
43
- #: subscribe2.php:73 subscribe2.php:1807 subscribe2.php:1909
44
- #: subscribe2.php:2647 subscribe2.php:3387 subscribe2.php:3390
45
  msgid "Subscribe"
46
  msgstr ""
47
 
48
- #: subscribe2.php:73
49
  msgid "to email notifications when this blog posts new content"
50
  msgstr ""
51
 
52
- #: subscribe2.php:77
53
  msgid "A confirmation message is on its way!"
54
  msgstr ""
55
 
56
- #: subscribe2.php:79
57
  msgid "That email address is already subscribed."
58
  msgstr ""
59
 
60
- #: subscribe2.php:81
61
  msgid "That email address is not subscribed."
62
  msgstr ""
63
 
64
- #: subscribe2.php:83
65
  msgid "Sorry, but that does not look like an email address to me."
66
  msgstr ""
67
 
68
- #: subscribe2.php:85
69
  msgid ""
70
  "Sorry, email addresses at that domain are currently barred due to spam, "
71
  "please use an alternative email address."
72
  msgstr ""
73
 
74
- #: subscribe2.php:87
75
  msgid ""
76
  "Sorry, there seems to be an error on the server. Please try again later."
77
  msgstr ""
78
 
79
- #: subscribe2.php:89
80
  msgid "You must to create a WordPress page for this plugin to work correctly."
81
  msgstr ""
82
 
83
- #: subscribe2.php:91
84
  msgid "Message sent!"
85
  msgstr ""
86
 
87
- #: subscribe2.php:93
88
  msgid ""
89
  "Message failed! Check your settings and check with your hosting provider"
90
  msgstr ""
91
 
92
- #: subscribe2.php:96
93
  msgid "No such email address is registered."
94
  msgstr ""
95
 
96
- #: subscribe2.php:98
97
  msgid "You have successfully subscribed!"
98
  msgstr ""
99
 
100
- #: subscribe2.php:100
101
  msgid "You have successfully unsubscribed."
102
  msgstr ""
103
 
104
- #: subscribe2.php:102
105
  msgid "subscribe"
106
  msgstr ""
107
 
108
- #: subscribe2.php:104
109
  msgid "unsubscribe"
110
  msgstr ""
111
 
112
- #: subscribe2.php:107
113
  msgid "Options saved!"
114
  msgstr ""
115
 
116
- #: subscribe2.php:108
117
  msgid "Options reset!"
118
  msgstr ""
119
 
120
- #: subscribe2.php:116 include/widget.php:17
121
  msgid "Subscribe2"
122
  msgstr ""
123
 
124
- #: subscribe2.php:118
125
  msgid "Your Subscriptions"
126
  msgstr ""
127
 
128
- #: subscribe2.php:122
129
  msgid "Subscribers"
130
  msgstr ""
131
 
132
- #: subscribe2.php:125 subscribe2.php:3198
133
  msgid "Settings"
134
  msgstr ""
135
 
136
- #: subscribe2.php:130
137
  msgid "Send Email"
138
  msgstr ""
139
 
140
- #: subscribe2.php:698
141
  msgid "Plain Text Excerpt Preview"
142
  msgstr ""
143
 
144
- #: subscribe2.php:700
145
  msgid "Plain Text Full Preview"
146
  msgstr ""
147
 
148
- #: subscribe2.php:702
149
  msgid "HTML Excerpt Preview"
150
  msgstr ""
151
 
152
- #: subscribe2.php:704
153
  msgid "HTML Full Preview"
154
  msgstr ""
155
 
156
- #: subscribe2.php:956
157
  msgid "New Subscription"
158
  msgstr ""
159
 
160
- #: subscribe2.php:958
161
  msgid "subscribed to email notifications!"
162
  msgstr ""
163
 
164
- #: subscribe2.php:982
165
  msgid "New Unsubscription"
166
  msgstr ""
167
 
168
- #: subscribe2.php:984
169
  msgid "unsubscribed from email notifications!"
170
  msgstr ""
171
 
172
- #: subscribe2.php:1615
173
  msgid "Address(es) subscribed!"
174
  msgstr ""
175
 
176
- #: subscribe2.php:1622
177
  msgid "Address(es) unsubscribed!"
178
  msgstr ""
179
 
180
- #: subscribe2.php:1626
181
  msgid "Some emails were not processed, the following were already subscribed"
182
  msgstr ""
183
 
184
- #: subscribe2.php:1629
185
  msgid "Some emails were not processed, the following were not in the database"
186
  msgstr ""
187
 
188
- #: subscribe2.php:1638
189
  msgid "Address(es) deleted!"
190
  msgstr ""
191
 
192
- #: subscribe2.php:1644 subscribe2.php:1650
193
  msgid "Status changed!"
194
  msgstr ""
195
 
196
- #: subscribe2.php:1664
197
  msgid "Reminder Email(s) Sent!"
198
  msgstr ""
199
 
200
- #: subscribe2.php:1667
201
  msgid "Registered Users Subscribed!"
202
  msgstr ""
203
 
204
- #: subscribe2.php:1670
205
  msgid "Registered Users Unsubscribed!"
206
  msgstr ""
207
 
208
- #: subscribe2.php:1673
209
  msgid "Format updated for Selected Registered Users!"
210
  msgstr ""
211
 
212
- #: subscribe2.php:1676
213
  msgid "Digest Subscription updated for Selected Registered Users!"
214
  msgstr ""
215
 
216
- #: subscribe2.php:1771
217
  msgid "Previous Page"
218
  msgstr ""
219
 
220
- #: subscribe2.php:1791
221
  msgid "Next Page"
222
  msgstr ""
223
 
224
- #: subscribe2.php:1798
225
  msgid "Manage Subscribers"
226
  msgstr ""
227
 
228
- #: subscribe2.php:1803
229
  msgid "Add/Remove Subscribers"
230
  msgstr ""
231
 
232
- #: subscribe2.php:1804
233
  msgid "Enter addresses, one per line or comma-separated"
234
  msgstr ""
235
 
236
- #: subscribe2.php:1808 subscribe2.php:1910 subscribe2.php:2626
237
- #: subscribe2.php:3385 subscribe2.php:3390
238
  msgid "Unsubscribe"
239
  msgstr ""
240
 
241
- #: subscribe2.php:1811
242
  msgid "Current Subscribers"
243
  msgstr ""
244
 
245
- #: subscribe2.php:1813
246
  msgid "Filter"
247
  msgstr ""
248
 
249
- #: subscribe2.php:1820
250
  msgid "Search Subscribers"
251
  msgstr ""
252
 
253
- #: subscribe2.php:1823
254
  msgid "Send Reminder Email"
255
  msgstr ""
256
 
257
- #: subscribe2.php:1830
258
  msgid "Save Emails to CSV File"
259
  msgstr ""
260
 
261
- #: subscribe2.php:1837 subscribe2.php:1896
262
  msgid "Process"
263
  msgstr ""
264
 
265
- #: subscribe2.php:1850 subscribe2.php:1872
266
  msgid "Confirm this email address"
267
  msgstr ""
268
 
269
- #: subscribe2.php:1852 subscribe2.php:1865
270
  msgid "Unconfirm this email address"
271
  msgstr ""
272
 
273
- #: subscribe2.php:1854 subscribe2.php:1867 subscribe2.php:1875
274
  msgid "Delete this email address"
275
  msgstr ""
276
 
277
- #: subscribe2.php:1858 subscribe2.php:2791 subscribe2.php:2837
278
- #: subscribe2.php:2877
279
  msgid "Select / Unselect All"
280
  msgstr ""
281
 
282
- #: subscribe2.php:1883
283
  msgid "edit"
284
  msgstr ""
285
 
286
- #: subscribe2.php:1890
287
  msgid "No matching subscribers found"
288
  msgstr ""
289
 
290
- #: subscribe2.php:1892
291
  msgid "NONE"
292
  msgstr ""
293
 
294
- #: subscribe2.php:1904
295
  msgid "Bulk Management"
296
  msgstr ""
297
 
298
- #: subscribe2.php:1906 subscribe2.php:1922
299
  msgid ""
300
  "Preferences for Registered Users selected in the filter above can be changed "
301
  "using this section."
302
  msgstr ""
303
 
304
- #: subscribe2.php:1907 subscribe2.php:1923
305
  msgid "Consider User Privacy as changes cannot be undone"
306
  msgstr ""
307
 
308
- #: subscribe2.php:1908
309
  msgid "Action to perform"
310
  msgstr ""
311
 
312
- #: subscribe2.php:1913
313
  msgid "Bulk Update Categories"
314
  msgstr ""
315
 
316
- #: subscribe2.php:1915
317
  msgid "Send email as"
318
  msgstr ""
319
 
320
- #: subscribe2.php:1916 subscribe2.php:2352 subscribe2.php:2507
321
  msgid "HTML - Full"
322
  msgstr ""
323
 
324
- #: subscribe2.php:1917 subscribe2.php:2354 subscribe2.php:2509
325
  msgid "HTML - Excerpt"
326
  msgstr ""
327
 
328
- #: subscribe2.php:1918 subscribe2.php:2356 subscribe2.php:2511
329
  msgid "Plain Text - Full"
330
  msgstr ""
331
 
332
- #: subscribe2.php:1919 subscribe2.php:2358 subscribe2.php:2513
333
  msgid "Plain Text - Excerpt"
334
  msgstr ""
335
 
336
- #: subscribe2.php:1920
337
  msgid "Bulk Update Format"
338
  msgstr ""
339
 
340
- #: subscribe2.php:1924
341
  msgid "Subscribe Selected Users to recieve a periodic digest notification"
342
  msgstr ""
343
 
344
- #: subscribe2.php:1926 subscribe2.php:2176 subscribe2.php:2182
345
- #: subscribe2.php:2196 subscribe2.php:2201 subscribe2.php:2342
346
- #: subscribe2.php:2347 subscribe2.php:2361 subscribe2.php:2368
347
- #: subscribe2.php:2518 subscribe2.php:2551
348
  msgid "Yes"
349
  msgstr ""
350
 
351
- #: subscribe2.php:1928 subscribe2.php:2178 subscribe2.php:2184
352
- #: subscribe2.php:2198 subscribe2.php:2203 subscribe2.php:2339
353
- #: subscribe2.php:2344 subscribe2.php:2349 subscribe2.php:2363
354
- #: subscribe2.php:2370 subscribe2.php:2379 subscribe2.php:2520
355
- #: subscribe2.php:2555
356
  msgid "No"
357
  msgstr ""
358
 
359
- #: subscribe2.php:1930
360
  msgid "Bulk Update Digest Subscription"
361
  msgstr ""
362
 
363
- #: subscribe2.php:1968
364
  msgid "Preview message(s) sent to logged in user"
365
  msgstr ""
366
 
367
- #: subscribe2.php:1972
368
  msgid ""
369
  "The Digest Notification email contained no post information. No email was "
370
  "sent"
371
  msgstr ""
372
 
373
- #: subscribe2.php:1974
374
  msgid "Attempt made to resend the Digest Notification email"
375
  msgstr ""
376
 
377
- #: subscribe2.php:2142
378
  msgid "Subscribe2 Settings"
379
  msgstr ""
380
 
381
- #: subscribe2.php:2143
382
  msgid "Plugin Blog"
383
  msgstr ""
384
 
385
- #: subscribe2.php:2144
386
  msgid "Make a donation via PayPal"
387
  msgstr ""
388
 
389
- #: subscribe2.php:2155 subscribe2.php:2493
390
  msgid "Notification Settings"
391
  msgstr ""
392
 
393
- #: subscribe2.php:2156
394
  msgid "Restrict the number of recipients per email to (0 for unlimited)"
395
  msgstr ""
396
 
397
- #: subscribe2.php:2158 subscribe2.php:2299
398
  msgid "Edit"
399
  msgstr ""
400
 
401
- #: subscribe2.php:2161 subscribe2.php:2302
402
  msgid "Update"
403
  msgstr ""
404
 
405
- #: subscribe2.php:2162 subscribe2.php:2303
406
  msgid "Revert"
407
  msgstr ""
408
 
409
- #: subscribe2.php:2164
410
  msgid "Send Admins notifications for new"
411
  msgstr ""
412
 
413
- #: subscribe2.php:2166
414
  msgid "Subscriptions"
415
  msgstr ""
416
 
417
- #: subscribe2.php:2168
418
  msgid "Unsubscriptions"
419
  msgstr ""
420
 
421
- #: subscribe2.php:2170
422
  msgid "Both"
423
  msgstr ""
424
 
425
- #: subscribe2.php:2172
426
  msgid "Neither"
427
  msgstr ""
428
 
429
- #: subscribe2.php:2174
430
  msgid "Include theme CSS stylesheet in HTML notifications"
431
  msgstr ""
432
 
433
- #: subscribe2.php:2180
434
  msgid "Send Emails for Pages"
435
  msgstr ""
436
 
437
- #: subscribe2.php:2188
438
  msgid ""
439
  "Subscribe2 will send email notifications for the following custom post types"
440
  msgstr ""
441
 
442
- #: subscribe2.php:2194
443
  msgid "Send Emails for Password Protected Posts"
444
  msgstr ""
445
 
446
- #: subscribe2.php:2199
447
  msgid "Send Emails for Private Posts"
448
  msgstr ""
449
 
450
- #: subscribe2.php:2204
451
  msgid "Send Email From"
452
  msgstr ""
453
 
454
- #: subscribe2.php:2209
455
  msgid "Send Emails"
456
  msgstr ""
457
 
458
- #: subscribe2.php:2211
459
  msgid "For digest notifications, date order for posts is"
460
  msgstr ""
461
 
462
- #: subscribe2.php:2213
463
  msgid "Descending"
464
  msgstr ""
465
 
466
- #: subscribe2.php:2215
467
  msgid "Ascending"
468
  msgstr ""
469
 
470
- #: subscribe2.php:2217
471
  msgid "Add Tracking Parameters to the Permalink"
472
  msgstr ""
473
 
474
- #: subscribe2.php:2219
475
  msgid "eg. utm_source=subscribe2&utm_medium=email&utm_campaign=postnotify"
476
  msgstr ""
477
 
478
- #: subscribe2.php:2222
479
  msgid "Email Templates"
480
  msgstr ""
481
 
482
- #: subscribe2.php:2226
483
  msgid "New Post email (must not be empty)"
484
  msgstr ""
485
 
486
- #: subscribe2.php:2227 subscribe2.php:2257 subscribe2.php:2262
487
  msgid "Subject Line"
488
  msgstr ""
489
 
490
- #: subscribe2.php:2232
491
  msgid "Send Email Preview"
492
  msgstr ""
493
 
494
- #: subscribe2.php:2233
495
  msgid "Message substitutions"
496
  msgstr ""
497
 
498
- #: subscribe2.php:2235
499
  msgid ""
500
  "IF THE FOLLOWING KEYWORDS ARE ALSO IN YOUR POST THEY WILL BE SUBSTITUTED"
501
  msgstr ""
502
 
503
- #: subscribe2.php:2238
504
  msgid "the post's title<br />(<i>for per-post emails only</i>)"
505
  msgstr ""
506
 
507
- #: subscribe2.php:2239
508
  msgid ""
509
  "the excerpt or the entire post<br />(<i>based on the subscriber's "
510
  "preferences</i>)"
511
  msgstr ""
512
 
513
- #: subscribe2.php:2240
514
  msgid ""
515
  "the excerpt of the post and the time it was posted<br />(<i>for digest "
516
  "emails only</i>)"
517
  msgstr ""
518
 
519
- #: subscribe2.php:2241
520
  msgid "a list of post titles<br />(<i>for digest emails only</i>)"
521
  msgstr ""
522
 
523
- #: subscribe2.php:2242
524
  msgid ""
525
  "a list of post titles followed by links to the atricles<br />(<i>for digest "
526
  "emails only</i>)"
527
  msgstr ""
528
 
529
- #: subscribe2.php:2243
530
  msgid "the post's permalink<br />(<i>for per-post emails only</i>)"
531
  msgstr ""
532
 
533
- #: subscribe2.php:2244
534
  msgid ""
535
  "the post's permalink after conversion by TinyURL<br />(<i>for per-post "
536
  "emails only</i>)"
537
  msgstr ""
538
 
539
- #: subscribe2.php:2245
540
  msgid "the date the post was made<br />(<i>for per-post emails only</i>)"
541
  msgstr ""
542
 
543
- #: subscribe2.php:2246
544
  msgid "the time the post was made<br />(<i>for per-post emails only</i>)"
545
  msgstr ""
546
 
547
- #: subscribe2.php:2247
548
  msgid "the admin or post author's name"
549
  msgstr ""
550
 
551
- #: subscribe2.php:2248
552
  msgid "the admin or post author's email"
553
  msgstr ""
554
 
555
- #: subscribe2.php:2249
556
  msgid "the post author's name"
557
  msgstr ""
558
 
559
- #: subscribe2.php:2250
560
  msgid ""
561
  "the generated link to confirm a request<br />(<i>only used in the "
562
  "confirmation email template</i>)"
563
  msgstr ""
564
 
565
- #: subscribe2.php:2251
566
  msgid ""
567
  "Action performed by LINK in confirmation email<br />(<i>only used in the "
568
  "confirmation email template</i>)"
569
  msgstr ""
570
 
571
- #: subscribe2.php:2252
572
  msgid "the post's assigned categories"
573
  msgstr ""
574
 
575
- #: subscribe2.php:2253
576
  msgid "the post's assigned Tags"
577
  msgstr ""
578
 
579
- #: subscribe2.php:2254
580
  msgid ""
581
  "the number of posts included in the digest email<br />(<i>for digest emails "
582
  "only</i>)"
583
  msgstr ""
584
 
585
- #: subscribe2.php:2256
586
  msgid "Subscribe / Unsubscribe confirmation email"
587
  msgstr ""
588
 
589
- #: subscribe2.php:2261
590
  msgid "Reminder email to Unconfirmed Subscribers"
591
  msgstr ""
592
 
593
- #: subscribe2.php:2268
594
  msgid "Excluded Categories"
595
  msgstr ""
596
 
597
- #: subscribe2.php:2270
598
  msgid ""
599
  "Posts assigned to any Excluded Category do not generate notifications and "
600
  "are not included in digest notifications"
601
  msgstr ""
602
 
603
- #: subscribe2.php:2274
604
  msgid "Allow registered users to subscribe to excluded categories?"
605
  msgstr ""
606
 
607
- #: subscribe2.php:2279
608
  msgid "Excluded Formats"
609
  msgstr ""
610
 
611
- #: subscribe2.php:2281
612
  msgid ""
613
  "Posts assigned to any Excluded Format do not generate notifications and are "
614
  "not included in digest notifications"
615
  msgstr ""
616
 
617
- #: subscribe2.php:2287
618
  msgid "Appearance"
619
  msgstr ""
620
 
621
- #: subscribe2.php:2291
622
  msgid "Set default Subscribe2 page as ID"
623
  msgstr ""
624
 
625
- #: subscribe2.php:2297
626
  msgid "Set the number of Subscribers displayed per page"
627
  msgstr ""
628
 
629
- #: subscribe2.php:2307
630
  msgid "Show a link to your subscription page in \"meta\"?"
631
  msgstr ""
632
 
633
- #: subscribe2.php:2311
634
  msgid "Show the Subscribe2 button on the Write toolbar?"
635
  msgstr ""
636
 
637
- #: subscribe2.php:2315
638
  msgid "Enable AJAX style subscription form?"
639
  msgstr ""
640
 
641
- #: subscribe2.php:2319
642
  msgid "Enable Subscribe2 Widget?"
643
  msgstr ""
644
 
645
- #: subscribe2.php:2323
646
  msgid "Enable Subscribe2 Counter Widget?"
647
  msgstr ""
648
 
649
- #: subscribe2.php:2327
650
  msgid "Disable email notifications is checked by default on authoring pages?"
651
  msgstr ""
652
 
653
- #: subscribe2.php:2331
654
  msgid "Auto Subscribe"
655
  msgstr ""
656
 
657
- #: subscribe2.php:2333
658
  msgid "Subscribe new users registering with your blog"
659
  msgstr ""
660
 
661
- #: subscribe2.php:2335
662
  msgid "Automatically"
663
  msgstr ""
664
 
665
- #: subscribe2.php:2337
666
  msgid "Display option on Registration Form"
667
  msgstr ""
668
 
669
- #: subscribe2.php:2340
670
  msgid "Auto-subscribe includes any excluded categories"
671
  msgstr ""
672
 
673
- #: subscribe2.php:2345
674
  msgid "Registration Form option is checked by default"
675
  msgstr ""
676
 
677
- #: subscribe2.php:2350
678
  msgid "Auto-subscribe users to receive email as"
679
  msgstr ""
680
 
681
- #: subscribe2.php:2359
682
  msgid "Registered Users have the option to auto-subscribe to new categories"
683
  msgstr ""
684
 
685
- #: subscribe2.php:2365
686
  msgid "New categories are immediately excluded"
687
  msgstr ""
688
 
689
- #: subscribe2.php:2366
690
  msgid ""
691
  "Option for Registered Users to auto-subscribe to new categories is checked "
692
  "by default"
693
  msgstr ""
694
 
695
- #: subscribe2.php:2371
696
  msgid "Display checkbox to allow subscriptions from the comment form"
697
  msgstr ""
698
 
699
- #: subscribe2.php:2374
700
  msgid "Before the Comment Submit button"
701
  msgstr ""
702
 
703
- #: subscribe2.php:2377
704
  msgid "After the Comment Submit button"
705
  msgstr ""
706
 
707
- #: subscribe2.php:2383
708
  msgid "Barred Domains"
709
  msgstr ""
710
 
711
- #: subscribe2.php:2385
712
  msgid ""
713
  "Enter domains to bar from public subscriptions: <br /> (Use a new line for "
714
  "each entry and omit the \"@\" symbol, for example email.com)"
715
  msgstr ""
716
 
717
- #: subscribe2.php:2390
718
  msgid "Submit"
719
  msgstr ""
720
 
721
- #: subscribe2.php:2393
722
  msgid "Reset Default"
723
  msgstr ""
724
 
725
- #: subscribe2.php:2394
726
  msgid ""
727
  "Use this to reset all options to their defaults. This <strong><em>will not</"
728
  "em></strong> modify your list of subscribers."
729
  msgstr ""
730
 
731
- #: subscribe2.php:2396
732
  msgid "RESET"
733
  msgstr ""
734
 
735
- #: subscribe2.php:2487
736
  msgid "Subscription preferences updated."
737
  msgstr ""
738
 
739
- #: subscribe2.php:2496
740
  msgid "Editing Subscribe2 preferences for user"
741
  msgstr ""
742
 
743
- #: subscribe2.php:2505
744
  msgid "Receive email as"
745
  msgstr ""
746
 
747
- #: subscribe2.php:2516
748
  msgid "Automatically subscribe me to newly created categories"
749
  msgstr ""
750
 
751
- #: subscribe2.php:2531
752
  msgid "Unsubscribe me from this blog"
753
  msgstr ""
754
 
755
- #: subscribe2.php:2535
756
  msgid "Subscribe to all categories"
757
  msgstr ""
758
 
759
- #: subscribe2.php:2537
760
  msgid "Subscribed Categories on"
761
  msgstr ""
762
 
763
- #: subscribe2.php:2539
764
  msgid "Subscribed Categories"
765
  msgstr ""
766
 
767
- #: subscribe2.php:2545
768
  msgid "Receive periodic summaries of new posts?"
769
  msgstr ""
770
 
771
- #: subscribe2.php:2560
772
  msgid "Do not send notifications for post made by these authors"
773
  msgstr ""
774
 
775
- #: subscribe2.php:2565
776
  msgid "Update Preferences"
777
  msgstr ""
778
 
779
- #: subscribe2.php:2615
780
  msgid "Subscribed Blogs"
781
  msgstr ""
782
 
783
- #: subscribe2.php:2620 subscribe2.php:2641
784
  msgid "Viewing Settings Now"
785
  msgstr ""
786
 
787
- #: subscribe2.php:2624 subscribe2.php:2645
788
  msgid "View Settings"
789
  msgstr ""
790
 
791
- #: subscribe2.php:2636
792
  msgid "Subscribe to new blogs"
793
  msgstr ""
794
 
795
- #: subscribe2.php:2712
796
  msgid "Send an email to subscribers"
797
  msgstr ""
798
 
799
- #: subscribe2.php:2720
800
  msgid "A message from"
801
  msgstr ""
802
 
803
- #: subscribe2.php:2725
804
  msgid "Subject"
805
  msgstr ""
806
 
807
- #: subscribe2.php:2728
808
  msgid "Recipients:"
809
  msgstr ""
810
 
811
- #: subscribe2.php:2732
812
  msgid "Preview"
813
  msgstr ""
814
 
815
- #: subscribe2.php:2732
816
  msgid "Send"
817
  msgstr ""
818
 
819
- #: subscribe2.php:2912
820
  msgid "All Users and Subscribers"
821
  msgstr ""
822
 
823
- #: subscribe2.php:2913
824
  msgid "Public Subscribers"
825
  msgstr ""
826
 
827
- #: subscribe2.php:2914
828
  msgid "Confirmed"
829
  msgstr ""
830
 
831
- #: subscribe2.php:2915
832
  msgid "Unconfirmed"
833
  msgstr ""
834
 
835
- #: subscribe2.php:2916
836
  msgid "All Registered Users"
837
  msgstr ""
838
 
839
- #: subscribe2.php:2917
840
  msgid "Registered Subscribers"
841
  msgstr ""
842
 
843
- #: subscribe2.php:3002
844
  msgid "Post Author"
845
  msgstr ""
846
 
847
- #: subscribe2.php:3026
 
 
 
 
 
 
848
  msgid "For each Post"
849
  msgstr ""
850
 
851
- #: subscribe2.php:3040
852
  msgid "Send Digest Notification at"
853
  msgstr ""
854
 
855
- #: subscribe2.php:3052
856
  msgid ""
857
  "This option will be ignored if the time selected is not in the future in "
858
  "relation to the current time"
859
  msgstr ""
860
 
861
- #: subscribe2.php:3055
862
  msgid "Current UTC time is"
863
  msgstr ""
864
 
865
- #: subscribe2.php:3057
866
  msgid "Current blog time is"
867
  msgstr ""
868
 
869
- #: subscribe2.php:3059
870
  msgid "Next email notification will be sent when your blog time is after"
871
  msgstr ""
872
 
873
- #: subscribe2.php:3062
874
  msgid "Attempt to resend the last Digest Notification email"
875
  msgstr ""
876
 
877
- #: subscribe2.php:3063
878
  msgid "Resend Digest"
879
  msgstr ""
880
 
881
- #: subscribe2.php:3141
882
  msgid "Confirmed Public Subscriber"
883
  msgstr ""
884
 
885
- #: subscribe2.php:3143
886
  msgid "Unconfirmed Public Subscriber"
887
  msgstr ""
888
 
889
- #: subscribe2.php:3199
890
  msgid "Donate"
891
  msgstr ""
892
 
893
- #: subscribe2.php:3211
894
  msgid "Check here to Subscribe to email notifications for new posts"
895
  msgstr ""
896
 
897
- #: subscribe2.php:3217
898
  msgid ""
899
  "By registering with this blog you are also agreeing to receive email "
900
  "notifications for new posts but you can unsubscribe at anytime"
901
  msgstr ""
902
 
903
- #: subscribe2.php:3268 subscribe2.php:3269
904
  msgid "Subscribe2 Notification Override"
905
  msgstr ""
906
 
907
- #: subscribe2.php:3279
908
  msgid ""
909
  "Check here to disable sending of an email notification for this post/page"
910
  msgstr ""
911
 
912
- #: subscribe2.php:3314
913
  msgid "Check here to Subscribe to notifications for new posts"
914
  msgstr ""
915
 
916
- #: subscribe2.php:3398 subscribe2.php:3400
917
  msgid "Your email:"
918
  msgstr ""
919
 
920
- #: subscribe2.php:3400
921
  msgid "Enter email address..."
922
  msgstr ""
923
 
924
- #: subscribe2.php:3505
925
  msgid "Subscription Confirmation"
926
  msgstr ""
927
 
928
- #: subscribe2.php:3577
929
  msgid "[Un]Subscribe to Posts"
930
  msgstr ""
931
 
932
- #: subscribe2.php:3601 subscribe2.php:3603
933
  msgid "Subscribe to this blog"
934
  msgstr ""
935
 
936
- #: subscribe2.php:3650
937
  msgid "Weekly"
938
  msgstr ""
939
 
940
- #: subscribe2.php:3771 subscribe2.php:3772
941
  msgid "Author"
942
  msgstr ""
943
 
944
- #: subscribe2.php:3780
945
  msgid "Posted on"
946
  msgstr ""
947
 
948
- #: subscribe2.php:3784 subscribe2.php:3785
949
  msgid "Posted in"
950
  msgstr ""
951
 
952
- #: subscribe2.php:3790 subscribe2.php:3791
953
  msgid "Tagged as"
954
  msgstr ""
955
 
956
- #: subscribe2.php:3852
957
  msgid "Digest Email"
958
  msgstr ""
959
 
960
- #: subscribe2.php:3862
961
  msgid "Digest Preview"
962
  msgstr ""
963
 
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
  "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2012-01-14 09:18+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
17
  "Content-Type: text/plain; charset=CHARSET\n"
18
  "Content-Transfer-Encoding: 8bit\n"
19
 
20
+ #: subscribe2.php:35
21
  #, php-format
22
  msgid ""
23
  "This version of Subscribe2 requires WordPress 3.1 or greater. Please update "
24
  "%1$s or use an older version of %2$s."
25
  msgstr ""
26
 
27
+ #: subscribe2.php:65
28
  msgid "To manage your subscription options please"
29
  msgstr ""
30
 
31
+ #: subscribe2.php:65
32
  msgid "login"
33
  msgstr ""
34
 
35
+ #: subscribe2.php:67
36
  msgid "You may manage your subscription options from your"
37
  msgstr ""
38
 
39
+ #: subscribe2.php:67
40
  msgid "profile"
41
  msgstr ""
42
 
43
+ #: subscribe2.php:72 subscribe2.php:1778 subscribe2.php:1884
44
+ #: subscribe2.php:2633 subscribe2.php:3371 subscribe2.php:3374
45
  msgid "Subscribe"
46
  msgstr ""
47
 
48
+ #: subscribe2.php:72
49
  msgid "to email notifications when this blog posts new content"
50
  msgstr ""
51
 
52
+ #: subscribe2.php:76
53
  msgid "A confirmation message is on its way!"
54
  msgstr ""
55
 
56
+ #: subscribe2.php:78
57
  msgid "That email address is already subscribed."
58
  msgstr ""
59
 
60
+ #: subscribe2.php:80
61
  msgid "That email address is not subscribed."
62
  msgstr ""
63
 
64
+ #: subscribe2.php:82
65
  msgid "Sorry, but that does not look like an email address to me."
66
  msgstr ""
67
 
68
+ #: subscribe2.php:84
69
  msgid ""
70
  "Sorry, email addresses at that domain are currently barred due to spam, "
71
  "please use an alternative email address."
72
  msgstr ""
73
 
74
+ #: subscribe2.php:86
75
  msgid ""
76
  "Sorry, there seems to be an error on the server. Please try again later."
77
  msgstr ""
78
 
79
+ #: subscribe2.php:88
80
  msgid "You must to create a WordPress page for this plugin to work correctly."
81
  msgstr ""
82
 
83
+ #: subscribe2.php:90
84
  msgid "Message sent!"
85
  msgstr ""
86
 
87
+ #: subscribe2.php:92
88
  msgid ""
89
  "Message failed! Check your settings and check with your hosting provider"
90
  msgstr ""
91
 
92
+ #: subscribe2.php:95
93
  msgid "No such email address is registered."
94
  msgstr ""
95
 
96
+ #: subscribe2.php:97
97
  msgid "You have successfully subscribed!"
98
  msgstr ""
99
 
100
+ #: subscribe2.php:99
101
  msgid "You have successfully unsubscribed."
102
  msgstr ""
103
 
104
+ #: subscribe2.php:101
105
  msgid "subscribe"
106
  msgstr ""
107
 
108
+ #: subscribe2.php:103
109
  msgid "unsubscribe"
110
  msgstr ""
111
 
112
+ #: subscribe2.php:106
113
  msgid "Options saved!"
114
  msgstr ""
115
 
116
+ #: subscribe2.php:107
117
  msgid "Options reset!"
118
  msgstr ""
119
 
120
+ #: subscribe2.php:115 include/widget.php:17
121
  msgid "Subscribe2"
122
  msgstr ""
123
 
124
+ #: subscribe2.php:117
125
  msgid "Your Subscriptions"
126
  msgstr ""
127
 
128
+ #: subscribe2.php:121
129
  msgid "Subscribers"
130
  msgstr ""
131
 
132
+ #: subscribe2.php:124 subscribe2.php:3182
133
  msgid "Settings"
134
  msgstr ""
135
 
136
+ #: subscribe2.php:129
137
  msgid "Send Email"
138
  msgstr ""
139
 
140
+ #: subscribe2.php:708
141
  msgid "Plain Text Excerpt Preview"
142
  msgstr ""
143
 
144
+ #: subscribe2.php:710
145
  msgid "Plain Text Full Preview"
146
  msgstr ""
147
 
148
+ #: subscribe2.php:712
149
  msgid "HTML Excerpt Preview"
150
  msgstr ""
151
 
152
+ #: subscribe2.php:714
153
  msgid "HTML Full Preview"
154
  msgstr ""
155
 
156
+ #: subscribe2.php:942
157
  msgid "New Subscription"
158
  msgstr ""
159
 
160
+ #: subscribe2.php:944
161
  msgid "subscribed to email notifications!"
162
  msgstr ""
163
 
164
+ #: subscribe2.php:965
165
  msgid "New Unsubscription"
166
  msgstr ""
167
 
168
+ #: subscribe2.php:967
169
  msgid "unsubscribed from email notifications!"
170
  msgstr ""
171
 
172
+ #: subscribe2.php:1585
173
  msgid "Address(es) subscribed!"
174
  msgstr ""
175
 
176
+ #: subscribe2.php:1592
177
  msgid "Address(es) unsubscribed!"
178
  msgstr ""
179
 
180
+ #: subscribe2.php:1596
181
  msgid "Some emails were not processed, the following were already subscribed"
182
  msgstr ""
183
 
184
+ #: subscribe2.php:1599
185
  msgid "Some emails were not processed, the following were not in the database"
186
  msgstr ""
187
 
188
+ #: subscribe2.php:1608
189
  msgid "Address(es) deleted!"
190
  msgstr ""
191
 
192
+ #: subscribe2.php:1614 subscribe2.php:1620
193
  msgid "Status changed!"
194
  msgstr ""
195
 
196
+ #: subscribe2.php:1634
197
  msgid "Reminder Email(s) Sent!"
198
  msgstr ""
199
 
200
+ #: subscribe2.php:1637
201
  msgid "Registered Users Subscribed!"
202
  msgstr ""
203
 
204
+ #: subscribe2.php:1640
205
  msgid "Registered Users Unsubscribed!"
206
  msgstr ""
207
 
208
+ #: subscribe2.php:1643
209
  msgid "Format updated for Selected Registered Users!"
210
  msgstr ""
211
 
212
+ #: subscribe2.php:1646
213
  msgid "Digest Subscription updated for Selected Registered Users!"
214
  msgstr ""
215
 
216
+ #: subscribe2.php:1741
217
  msgid "Previous Page"
218
  msgstr ""
219
 
220
+ #: subscribe2.php:1761
221
  msgid "Next Page"
222
  msgstr ""
223
 
224
+ #: subscribe2.php:1768
225
  msgid "Manage Subscribers"
226
  msgstr ""
227
 
228
+ #: subscribe2.php:1774
229
  msgid "Add/Remove Subscribers"
230
  msgstr ""
231
 
232
+ #: subscribe2.php:1775
233
  msgid "Enter addresses, one per line or comma-separated"
234
  msgstr ""
235
 
236
+ #: subscribe2.php:1779 subscribe2.php:1885 subscribe2.php:2612
237
+ #: subscribe2.php:3369 subscribe2.php:3374
238
  msgid "Unsubscribe"
239
  msgstr ""
240
 
241
+ #: subscribe2.php:1784
242
  msgid "Current Subscribers"
243
  msgstr ""
244
 
245
+ #: subscribe2.php:1786
246
  msgid "Filter"
247
  msgstr ""
248
 
249
+ #: subscribe2.php:1793
250
  msgid "Search Subscribers"
251
  msgstr ""
252
 
253
+ #: subscribe2.php:1796
254
  msgid "Send Reminder Email"
255
  msgstr ""
256
 
257
+ #: subscribe2.php:1803
258
  msgid "Save Emails to CSV File"
259
  msgstr ""
260
 
261
+ #: subscribe2.php:1810 subscribe2.php:1869
262
  msgid "Process"
263
  msgstr ""
264
 
265
+ #: subscribe2.php:1823 subscribe2.php:1845
266
  msgid "Confirm this email address"
267
  msgstr ""
268
 
269
+ #: subscribe2.php:1825 subscribe2.php:1838
270
  msgid "Unconfirm this email address"
271
  msgstr ""
272
 
273
+ #: subscribe2.php:1827 subscribe2.php:1840 subscribe2.php:1848
274
  msgid "Delete this email address"
275
  msgstr ""
276
 
277
+ #: subscribe2.php:1831 subscribe2.php:2777 subscribe2.php:2823
278
+ #: subscribe2.php:2863
279
  msgid "Select / Unselect All"
280
  msgstr ""
281
 
282
+ #: subscribe2.php:1856
283
  msgid "edit"
284
  msgstr ""
285
 
286
+ #: subscribe2.php:1863
287
  msgid "No matching subscribers found"
288
  msgstr ""
289
 
290
+ #: subscribe2.php:1865
291
  msgid "NONE"
292
  msgstr ""
293
 
294
+ #: subscribe2.php:1879
295
  msgid "Bulk Management"
296
  msgstr ""
297
 
298
+ #: subscribe2.php:1881 subscribe2.php:1897
299
  msgid ""
300
  "Preferences for Registered Users selected in the filter above can be changed "
301
  "using this section."
302
  msgstr ""
303
 
304
+ #: subscribe2.php:1882 subscribe2.php:1898
305
  msgid "Consider User Privacy as changes cannot be undone"
306
  msgstr ""
307
 
308
+ #: subscribe2.php:1883
309
  msgid "Action to perform"
310
  msgstr ""
311
 
312
+ #: subscribe2.php:1888
313
  msgid "Bulk Update Categories"
314
  msgstr ""
315
 
316
+ #: subscribe2.php:1890
317
  msgid "Send email as"
318
  msgstr ""
319
 
320
+ #: subscribe2.php:1891 subscribe2.php:2337 subscribe2.php:2493
321
  msgid "HTML - Full"
322
  msgstr ""
323
 
324
+ #: subscribe2.php:1892 subscribe2.php:2339 subscribe2.php:2495
325
  msgid "HTML - Excerpt"
326
  msgstr ""
327
 
328
+ #: subscribe2.php:1893 subscribe2.php:2341 subscribe2.php:2497
329
  msgid "Plain Text - Full"
330
  msgstr ""
331
 
332
+ #: subscribe2.php:1894 subscribe2.php:2343 subscribe2.php:2499
333
  msgid "Plain Text - Excerpt"
334
  msgstr ""
335
 
336
+ #: subscribe2.php:1895
337
  msgid "Bulk Update Format"
338
  msgstr ""
339
 
340
+ #: subscribe2.php:1899
341
  msgid "Subscribe Selected Users to recieve a periodic digest notification"
342
  msgstr ""
343
 
344
+ #: subscribe2.php:1901 subscribe2.php:2153 subscribe2.php:2159
345
+ #: subscribe2.php:2173 subscribe2.php:2178 subscribe2.php:2327
346
+ #: subscribe2.php:2332 subscribe2.php:2346 subscribe2.php:2353
347
+ #: subscribe2.php:2504 subscribe2.php:2537
348
  msgid "Yes"
349
  msgstr ""
350
 
351
+ #: subscribe2.php:1903 subscribe2.php:2155 subscribe2.php:2161
352
+ #: subscribe2.php:2175 subscribe2.php:2180 subscribe2.php:2324
353
+ #: subscribe2.php:2329 subscribe2.php:2334 subscribe2.php:2348
354
+ #: subscribe2.php:2355 subscribe2.php:2362 subscribe2.php:2506
355
+ #: subscribe2.php:2541
356
  msgid "No"
357
  msgstr ""
358
 
359
+ #: subscribe2.php:1905
360
  msgid "Bulk Update Digest Subscription"
361
  msgstr ""
362
 
363
+ #: subscribe2.php:1944
364
  msgid "Preview message(s) sent to logged in user"
365
  msgstr ""
366
 
367
+ #: subscribe2.php:1948
368
  msgid ""
369
  "The Digest Notification email contained no post information. No email was "
370
  "sent"
371
  msgstr ""
372
 
373
+ #: subscribe2.php:1950
374
  msgid "Attempt made to resend the Digest Notification email"
375
  msgstr ""
376
 
377
+ #: subscribe2.php:2118
378
  msgid "Subscribe2 Settings"
379
  msgstr ""
380
 
381
+ #: subscribe2.php:2119
382
  msgid "Plugin Blog"
383
  msgstr ""
384
 
385
+ #: subscribe2.php:2120
386
  msgid "Make a donation via PayPal"
387
  msgstr ""
388
 
389
+ #: subscribe2.php:2132 subscribe2.php:2479
390
  msgid "Notification Settings"
391
  msgstr ""
392
 
393
+ #: subscribe2.php:2133
394
  msgid "Restrict the number of recipients per email to (0 for unlimited)"
395
  msgstr ""
396
 
397
+ #: subscribe2.php:2135 subscribe2.php:2282
398
  msgid "Edit"
399
  msgstr ""
400
 
401
+ #: subscribe2.php:2138 subscribe2.php:2285
402
  msgid "Update"
403
  msgstr ""
404
 
405
+ #: subscribe2.php:2139 subscribe2.php:2286
406
  msgid "Revert"
407
  msgstr ""
408
 
409
+ #: subscribe2.php:2141
410
  msgid "Send Admins notifications for new"
411
  msgstr ""
412
 
413
+ #: subscribe2.php:2143
414
  msgid "Subscriptions"
415
  msgstr ""
416
 
417
+ #: subscribe2.php:2145
418
  msgid "Unsubscriptions"
419
  msgstr ""
420
 
421
+ #: subscribe2.php:2147
422
  msgid "Both"
423
  msgstr ""
424
 
425
+ #: subscribe2.php:2149
426
  msgid "Neither"
427
  msgstr ""
428
 
429
+ #: subscribe2.php:2151
430
  msgid "Include theme CSS stylesheet in HTML notifications"
431
  msgstr ""
432
 
433
+ #: subscribe2.php:2157
434
  msgid "Send Emails for Pages"
435
  msgstr ""
436
 
437
+ #: subscribe2.php:2165
438
  msgid ""
439
  "Subscribe2 will send email notifications for the following custom post types"
440
  msgstr ""
441
 
442
+ #: subscribe2.php:2171
443
  msgid "Send Emails for Password Protected Posts"
444
  msgstr ""
445
 
446
+ #: subscribe2.php:2176
447
  msgid "Send Emails for Private Posts"
448
  msgstr ""
449
 
450
+ #: subscribe2.php:2181
451
  msgid "Send Email From"
452
  msgstr ""
453
 
454
+ #: subscribe2.php:2186
455
  msgid "Send Emails"
456
  msgstr ""
457
 
458
+ #: subscribe2.php:2188
459
  msgid "For digest notifications, date order for posts is"
460
  msgstr ""
461
 
462
+ #: subscribe2.php:2190
463
  msgid "Descending"
464
  msgstr ""
465
 
466
+ #: subscribe2.php:2192
467
  msgid "Ascending"
468
  msgstr ""
469
 
470
+ #: subscribe2.php:2194
471
  msgid "Add Tracking Parameters to the Permalink"
472
  msgstr ""
473
 
474
+ #: subscribe2.php:2196
475
  msgid "eg. utm_source=subscribe2&utm_medium=email&utm_campaign=postnotify"
476
  msgstr ""
477
 
478
+ #: subscribe2.php:2201
479
  msgid "Email Templates"
480
  msgstr ""
481
 
482
+ #: subscribe2.php:2205
483
  msgid "New Post email (must not be empty)"
484
  msgstr ""
485
 
486
+ #: subscribe2.php:2206 subscribe2.php:2236 subscribe2.php:2241
487
  msgid "Subject Line"
488
  msgstr ""
489
 
490
+ #: subscribe2.php:2211
491
  msgid "Send Email Preview"
492
  msgstr ""
493
 
494
+ #: subscribe2.php:2212
495
  msgid "Message substitutions"
496
  msgstr ""
497
 
498
+ #: subscribe2.php:2214
499
  msgid ""
500
  "IF THE FOLLOWING KEYWORDS ARE ALSO IN YOUR POST THEY WILL BE SUBSTITUTED"
501
  msgstr ""
502
 
503
+ #: subscribe2.php:2217
504
  msgid "the post's title<br />(<i>for per-post emails only</i>)"
505
  msgstr ""
506
 
507
+ #: subscribe2.php:2218
508
  msgid ""
509
  "the excerpt or the entire post<br />(<i>based on the subscriber's "
510
  "preferences</i>)"
511
  msgstr ""
512
 
513
+ #: subscribe2.php:2219
514
  msgid ""
515
  "the excerpt of the post and the time it was posted<br />(<i>for digest "
516
  "emails only</i>)"
517
  msgstr ""
518
 
519
+ #: subscribe2.php:2220
520
  msgid "a list of post titles<br />(<i>for digest emails only</i>)"
521
  msgstr ""
522
 
523
+ #: subscribe2.php:2221
524
  msgid ""
525
  "a list of post titles followed by links to the atricles<br />(<i>for digest "
526
  "emails only</i>)"
527
  msgstr ""
528
 
529
+ #: subscribe2.php:2222
530
  msgid "the post's permalink<br />(<i>for per-post emails only</i>)"
531
  msgstr ""
532
 
533
+ #: subscribe2.php:2223
534
  msgid ""
535
  "the post's permalink after conversion by TinyURL<br />(<i>for per-post "
536
  "emails only</i>)"
537
  msgstr ""
538
 
539
+ #: subscribe2.php:2224
540
  msgid "the date the post was made<br />(<i>for per-post emails only</i>)"
541
  msgstr ""
542
 
543
+ #: subscribe2.php:2225
544
  msgid "the time the post was made<br />(<i>for per-post emails only</i>)"
545
  msgstr ""
546
 
547
+ #: subscribe2.php:2226
548
  msgid "the admin or post author's name"
549
  msgstr ""
550
 
551
+ #: subscribe2.php:2227
552
  msgid "the admin or post author's email"
553
  msgstr ""
554
 
555
+ #: subscribe2.php:2228
556
  msgid "the post author's name"
557
  msgstr ""
558
 
559
+ #: subscribe2.php:2229
560
  msgid ""
561
  "the generated link to confirm a request<br />(<i>only used in the "
562
  "confirmation email template</i>)"
563
  msgstr ""
564
 
565
+ #: subscribe2.php:2230
566
  msgid ""
567
  "Action performed by LINK in confirmation email<br />(<i>only used in the "
568
  "confirmation email template</i>)"
569
  msgstr ""
570
 
571
+ #: subscribe2.php:2231
572
  msgid "the post's assigned categories"
573
  msgstr ""
574
 
575
+ #: subscribe2.php:2232
576
  msgid "the post's assigned Tags"
577
  msgstr ""
578
 
579
+ #: subscribe2.php:2233
580
  msgid ""
581
  "the number of posts included in the digest email<br />(<i>for digest emails "
582
  "only</i>)"
583
  msgstr ""
584
 
585
+ #: subscribe2.php:2235
586
  msgid "Subscribe / Unsubscribe confirmation email"
587
  msgstr ""
588
 
589
+ #: subscribe2.php:2240
590
  msgid "Reminder email to Unconfirmed Subscribers"
591
  msgstr ""
592
 
593
+ #: subscribe2.php:2249
594
  msgid "Excluded Categories"
595
  msgstr ""
596
 
597
+ #: subscribe2.php:2251
598
  msgid ""
599
  "Posts assigned to any Excluded Category do not generate notifications and "
600
  "are not included in digest notifications"
601
  msgstr ""
602
 
603
+ #: subscribe2.php:2255
604
  msgid "Allow registered users to subscribe to excluded categories?"
605
  msgstr ""
606
 
607
+ #: subscribe2.php:2260
608
  msgid "Excluded Formats"
609
  msgstr ""
610
 
611
+ #: subscribe2.php:2262
612
  msgid ""
613
  "Posts assigned to any Excluded Format do not generate notifications and are "
614
  "not included in digest notifications"
615
  msgstr ""
616
 
617
+ #: subscribe2.php:2270
618
  msgid "Appearance"
619
  msgstr ""
620
 
621
+ #: subscribe2.php:2274
622
  msgid "Set default Subscribe2 page as ID"
623
  msgstr ""
624
 
625
+ #: subscribe2.php:2280
626
  msgid "Set the number of Subscribers displayed per page"
627
  msgstr ""
628
 
629
+ #: subscribe2.php:2290
630
  msgid "Show a link to your subscription page in \"meta\"?"
631
  msgstr ""
632
 
633
+ #: subscribe2.php:2294
634
  msgid "Show the Subscribe2 button on the Write toolbar?"
635
  msgstr ""
636
 
637
+ #: subscribe2.php:2298
638
  msgid "Enable AJAX style subscription form?"
639
  msgstr ""
640
 
641
+ #: subscribe2.php:2302
642
  msgid "Enable Subscribe2 Widget?"
643
  msgstr ""
644
 
645
+ #: subscribe2.php:2306
646
  msgid "Enable Subscribe2 Counter Widget?"
647
  msgstr ""
648
 
649
+ #: subscribe2.php:2310
650
  msgid "Disable email notifications is checked by default on authoring pages?"
651
  msgstr ""
652
 
653
+ #: subscribe2.php:2316
654
  msgid "Auto Subscribe"
655
  msgstr ""
656
 
657
+ #: subscribe2.php:2318
658
  msgid "Subscribe new users registering with your blog"
659
  msgstr ""
660
 
661
+ #: subscribe2.php:2320
662
  msgid "Automatically"
663
  msgstr ""
664
 
665
+ #: subscribe2.php:2322
666
  msgid "Display option on Registration Form"
667
  msgstr ""
668
 
669
+ #: subscribe2.php:2325
670
  msgid "Auto-subscribe includes any excluded categories"
671
  msgstr ""
672
 
673
+ #: subscribe2.php:2330
674
  msgid "Registration Form option is checked by default"
675
  msgstr ""
676
 
677
+ #: subscribe2.php:2335
678
  msgid "Auto-subscribe users to receive email as"
679
  msgstr ""
680
 
681
+ #: subscribe2.php:2344
682
  msgid "Registered Users have the option to auto-subscribe to new categories"
683
  msgstr ""
684
 
685
+ #: subscribe2.php:2350
686
  msgid "New categories are immediately excluded"
687
  msgstr ""
688
 
689
+ #: subscribe2.php:2351
690
  msgid ""
691
  "Option for Registered Users to auto-subscribe to new categories is checked "
692
  "by default"
693
  msgstr ""
694
 
695
+ #: subscribe2.php:2356
696
  msgid "Display checkbox to allow subscriptions from the comment form"
697
  msgstr ""
698
 
699
+ #: subscribe2.php:2358
700
  msgid "Before the Comment Submit button"
701
  msgstr ""
702
 
703
+ #: subscribe2.php:2360
704
  msgid "After the Comment Submit button"
705
  msgstr ""
706
 
707
+ #: subscribe2.php:2368
708
  msgid "Barred Domains"
709
  msgstr ""
710
 
711
+ #: subscribe2.php:2370
712
  msgid ""
713
  "Enter domains to bar from public subscriptions: <br /> (Use a new line for "
714
  "each entry and omit the \"@\" symbol, for example email.com)"
715
  msgstr ""
716
 
717
+ #: subscribe2.php:2376
718
  msgid "Submit"
719
  msgstr ""
720
 
721
+ #: subscribe2.php:2379
722
  msgid "Reset Default"
723
  msgstr ""
724
 
725
+ #: subscribe2.php:2380
726
  msgid ""
727
  "Use this to reset all options to their defaults. This <strong><em>will not</"
728
  "em></strong> modify your list of subscribers."
729
  msgstr ""
730
 
731
+ #: subscribe2.php:2382
732
  msgid "RESET"
733
  msgstr ""
734
 
735
+ #: subscribe2.php:2473
736
  msgid "Subscription preferences updated."
737
  msgstr ""
738
 
739
+ #: subscribe2.php:2482
740
  msgid "Editing Subscribe2 preferences for user"
741
  msgstr ""
742
 
743
+ #: subscribe2.php:2491
744
  msgid "Receive email as"
745
  msgstr ""
746
 
747
+ #: subscribe2.php:2502
748
  msgid "Automatically subscribe me to newly created categories"
749
  msgstr ""
750
 
751
+ #: subscribe2.php:2517
752
  msgid "Unsubscribe me from this blog"
753
  msgstr ""
754
 
755
+ #: subscribe2.php:2521
756
  msgid "Subscribe to all categories"
757
  msgstr ""
758
 
759
+ #: subscribe2.php:2523
760
  msgid "Subscribed Categories on"
761
  msgstr ""
762
 
763
+ #: subscribe2.php:2525
764
  msgid "Subscribed Categories"
765
  msgstr ""
766
 
767
+ #: subscribe2.php:2531
768
  msgid "Receive periodic summaries of new posts?"
769
  msgstr ""
770
 
771
+ #: subscribe2.php:2546
772
  msgid "Do not send notifications for post made by these authors"
773
  msgstr ""
774
 
775
+ #: subscribe2.php:2551
776
  msgid "Update Preferences"
777
  msgstr ""
778
 
779
+ #: subscribe2.php:2601
780
  msgid "Subscribed Blogs"
781
  msgstr ""
782
 
783
+ #: subscribe2.php:2606 subscribe2.php:2627
784
  msgid "Viewing Settings Now"
785
  msgstr ""
786
 
787
+ #: subscribe2.php:2610 subscribe2.php:2631
788
  msgid "View Settings"
789
  msgstr ""
790
 
791
+ #: subscribe2.php:2622
792
  msgid "Subscribe to new blogs"
793
  msgstr ""
794
 
795
+ #: subscribe2.php:2698
796
  msgid "Send an email to subscribers"
797
  msgstr ""
798
 
799
+ #: subscribe2.php:2706
800
  msgid "A message from"
801
  msgstr ""
802
 
803
+ #: subscribe2.php:2711
804
  msgid "Subject"
805
  msgstr ""
806
 
807
+ #: subscribe2.php:2714
808
  msgid "Recipients:"
809
  msgstr ""
810
 
811
+ #: subscribe2.php:2718
812
  msgid "Preview"
813
  msgstr ""
814
 
815
+ #: subscribe2.php:2718
816
  msgid "Send"
817
  msgstr ""
818
 
819
+ #: subscribe2.php:2898
820
  msgid "All Users and Subscribers"
821
  msgstr ""
822
 
823
+ #: subscribe2.php:2899
824
  msgid "Public Subscribers"
825
  msgstr ""
826
 
827
+ #: subscribe2.php:2900
828
  msgid "Confirmed"
829
  msgstr ""
830
 
831
+ #: subscribe2.php:2901
832
  msgid "Unconfirmed"
833
  msgstr ""
834
 
835
+ #: subscribe2.php:2902
836
  msgid "All Registered Users"
837
  msgstr ""
838
 
839
+ #: subscribe2.php:2903
840
  msgid "Registered Subscribers"
841
  msgstr ""
842
 
843
+ #: subscribe2.php:2982
844
  msgid "Post Author"
845
  msgstr ""
846
 
847
+ #: subscribe2.php:3006
848
+ msgid ""
849
+ "The WordPress cron functions may be disabled on this server. Digest "
850
+ "notifications may not work."
851
+ msgstr ""
852
+
853
+ #: subscribe2.php:3010
854
  msgid "For each Post"
855
  msgstr ""
856
 
857
+ #: subscribe2.php:3024
858
  msgid "Send Digest Notification at"
859
  msgstr ""
860
 
861
+ #: subscribe2.php:3036
862
  msgid ""
863
  "This option will be ignored if the time selected is not in the future in "
864
  "relation to the current time"
865
  msgstr ""
866
 
867
+ #: subscribe2.php:3039
868
  msgid "Current UTC time is"
869
  msgstr ""
870
 
871
+ #: subscribe2.php:3041
872
  msgid "Current blog time is"
873
  msgstr ""
874
 
875
+ #: subscribe2.php:3043
876
  msgid "Next email notification will be sent when your blog time is after"
877
  msgstr ""
878
 
879
+ #: subscribe2.php:3046
880
  msgid "Attempt to resend the last Digest Notification email"
881
  msgstr ""
882
 
883
+ #: subscribe2.php:3047
884
  msgid "Resend Digest"
885
  msgstr ""
886
 
887
+ #: subscribe2.php:3125
888
  msgid "Confirmed Public Subscriber"
889
  msgstr ""
890
 
891
+ #: subscribe2.php:3127
892
  msgid "Unconfirmed Public Subscriber"
893
  msgstr ""
894
 
895
+ #: subscribe2.php:3183
896
  msgid "Donate"
897
  msgstr ""
898
 
899
+ #: subscribe2.php:3195
900
  msgid "Check here to Subscribe to email notifications for new posts"
901
  msgstr ""
902
 
903
+ #: subscribe2.php:3201
904
  msgid ""
905
  "By registering with this blog you are also agreeing to receive email "
906
  "notifications for new posts but you can unsubscribe at anytime"
907
  msgstr ""
908
 
909
+ #: subscribe2.php:3252 subscribe2.php:3253
910
  msgid "Subscribe2 Notification Override"
911
  msgstr ""
912
 
913
+ #: subscribe2.php:3263
914
  msgid ""
915
  "Check here to disable sending of an email notification for this post/page"
916
  msgstr ""
917
 
918
+ #: subscribe2.php:3298
919
  msgid "Check here to Subscribe to notifications for new posts"
920
  msgstr ""
921
 
922
+ #: subscribe2.php:3382 subscribe2.php:3384
923
  msgid "Your email:"
924
  msgstr ""
925
 
926
+ #: subscribe2.php:3384
927
  msgid "Enter email address..."
928
  msgstr ""
929
 
930
+ #: subscribe2.php:3489
931
  msgid "Subscription Confirmation"
932
  msgstr ""
933
 
934
+ #: subscribe2.php:3561
935
  msgid "[Un]Subscribe to Posts"
936
  msgstr ""
937
 
938
+ #: subscribe2.php:3585 subscribe2.php:3587
939
  msgid "Subscribe to this blog"
940
  msgstr ""
941
 
942
+ #: subscribe2.php:3639
943
  msgid "Weekly"
944
  msgstr ""
945
 
946
+ #: subscribe2.php:3760 subscribe2.php:3761
947
  msgid "Author"
948
  msgstr ""
949
 
950
+ #: subscribe2.php:3769
951
  msgid "Posted on"
952
  msgstr ""
953
 
954
+ #: subscribe2.php:3773 subscribe2.php:3774
955
  msgid "Posted in"
956
  msgstr ""
957
 
958
+ #: subscribe2.php:3779 subscribe2.php:3780
959
  msgid "Tagged as"
960
  msgstr ""
961
 
962
+ #: subscribe2.php:3841
963
  msgid "Digest Email"
964
  msgstr ""
965
 
966
+ #: subscribe2.php:3851
967
  msgid "Digest Preview"
968
  msgstr ""
969
 
tinymce3/{editor_plugin_src.js → editor_plugin.dev.js} RENAMED
@@ -1,7 +1,7 @@
1
  (function() {
2
  tinymce.create('tinymce.plugins.Subscribe2Plugin', {
3
  init : function(ed, url) {
4
- var pb = '<img src="' + url + '/../../include/trans.gif" class="mceSubscribe2 mceItemNoResize" />',
5
  cls = 'mceSubscribe2',
6
  sep = ed.getParam('subscribe2_separator', '[subscribe2]'),
7
  pbRE;
1
  (function() {
2
  tinymce.create('tinymce.plugins.Subscribe2Plugin', {
3
  init : function(ed, url) {
4
+ var pb = '<img src="' + url + '/../include/spacer.gif" class="mceSubscribe2 mceItemNoResize" />',
5
  cls = 'mceSubscribe2',
6
  sep = ed.getParam('subscribe2_separator', '[subscribe2]'),
7
  pbRE;
tinymce3/editor_plugin.js CHANGED
@@ -1 +1 @@
1
- (function(){tinymce.create('tinymce.plugins.Subscribe2Plugin',{init:function(ed,url){var pb='<img src="'+url+'/../../include/trans.gif" class="mceSubscribe2 mceItemNoResize" />',cls='mceSubscribe2',sep=ed.getParam('subscribe2_separator','[subscribe2]'),pbRE;pbRE=new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(a){return'\\'+a}),'g');ed.addCommand('mceSubscribe2',function(){ed.execCommand('mceInsertContent',0,pb)});ed.addButton('subscribe2',{title:'Insert Subscribe2 Token',image:url+'/../include/s2_button.png',cmd:cls});ed.onInit.add(function(){ed.dom.loadCSS(url+"/css/content.css");if(ed.theme.onResolveName){ed.theme.onResolveName.add(function(th,o){if(o.node.nodeName=='IMG'&&ed.dom.hasClass(o.node,cls))o.name='subscribe2'})}});ed.onClick.add(function(ed,e){e=e.target;if(e.nodeName==='IMG'&&ed.dom.hasClass(e,cls))ed.selection.select(e)});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('subscribe2',n.nodeName==='IMG'&&ed.dom.hasClass(n,cls))});ed.onBeforeSetContent.add(function(ed,o){o.content=o.content.replace(pbRE,pb)});ed.onPostProcess.add(function(ed,o){if(o.get)o.content=o.content.replace(/<img[^>]+>/g,function(im){if(im.indexOf('class="mceSubscribe2')!==-1)im=sep;return im})})},getInfo:function(){return{longname:'Insert Subscribe2 Token',author:'Matthew Robinson',authorurl:'http://subscribe2.wordpress.com',infourl:'http://subscribe2.wordpress.com',version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add('subscribe2',tinymce.plugins.Subscribe2Plugin)})();
1
+ (function(){tinymce.create('tinymce.plugins.Subscribe2Plugin',{init:function(ed,url){var pb='<img src="'+url+'/../include/spacer.gif" class="mceSubscribe2 mceItemNoResize" />',cls='mceSubscribe2',sep=ed.getParam('subscribe2_separator','[subscribe2]'),pbRE;pbRE=new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(a){return'\\'+a}),'g');ed.addCommand('mceSubscribe2',function(){ed.execCommand('mceInsertContent',0,pb)});ed.addButton('subscribe2',{title:'Insert Subscribe2 Token',image:url+'/../include/s2_button.png',cmd:cls});ed.onInit.add(function(){ed.dom.loadCSS(url+"/css/content.css");if(ed.theme.onResolveName){ed.theme.onResolveName.add(function(th,o){if(o.node.nodeName=='IMG'&&ed.dom.hasClass(o.node,cls))o.name='subscribe2'})}});ed.onClick.add(function(ed,e){e=e.target;if(e.nodeName==='IMG'&&ed.dom.hasClass(e,cls))ed.selection.select(e)});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('subscribe2',n.nodeName==='IMG'&&ed.dom.hasClass(n,cls))});ed.onBeforeSetContent.add(function(ed,o){o.content=o.content.replace(pbRE,pb)});ed.onPostProcess.add(function(ed,o){if(o.get)o.content=o.content.replace(/<img[^>]+>/g,function(im){if(im.indexOf('class="mceSubscribe2')!==-1)im=sep;return im})})},getInfo:function(){return{longname:'Insert Subscribe2 Token',author:'Matthew Robinson',authorurl:'http://subscribe2.wordpress.com',infourl:'http://subscribe2.wordpress.com',version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add('subscribe2',tinymce.plugins.Subscribe2Plugin)})();