Subscribe2 - Version 5.3

Version Description

Download this release

Release Info

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

Code changes from version 5.2 to 5.3

Files changed (6) hide show
  1. ReadMe.txt +33 -14
  2. counterwidget.php +1 -1
  3. include/s2_edit.js +3 -3
  4. subscribe2.php +136 -48
  5. subscribe2.pot +206 -187
  6. uninstall.php +4 -4
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: 2.0.x
6
- Tested up to: 2.9
7
- Stable tag: 5.2
8
 
9
  Sends a list of subscribers an email notification when new posts are published to your blog
10
 
@@ -12,17 +12,17 @@ Sends a list of subscribers an email notification when new posts are published t
12
 
13
  Subscribe2 provides a comprehensive subscription management and email notification system for WordPress blogs that sends email notifications to a list of subscribers when you publish new content to your blog.
14
 
15
- Email Notifications can be sent on a per-post basis or periodically in a Digest email. Additionally, certain categories can be excluded from inclusion in the notification and post can be excluded on an individual basis by setting a custom field of 's2mail' to 'no'. The format of the email can also be customised for per-post notifications, subscribe2 can generate emails for each of the following formats:
16
 
17
- * plaintext excerpt
18
- * plaintext full post
19
- * HTML full post
20
 
21
- The plugin also handles subscription requests allowing users to publically subscribe by submitting their email address in an easy to use form or to register with your blog which enables greater flexibility over the email content for per-post notifications for the subscriber. Admins are given control over the presentation of the email notifications, can bulk manage subscriptions for users and manually send email notices to subscribers.
22
 
23
- Subscribe2 supports two classes of subscribers: the general public, and registered users of the blog. The general public may subscribe and unsubscribe. They will receive a limited email notification when new post is made or periodically (unless that post is assigned to one of the excluded categories you defined). The general public will receive a plaintext email with an excerpt of the post: either the excerpt you created when making the post, the portion of text before a <!--more--> tag (if present), or the first 55 words of the post.
 
 
24
 
25
- Registered users of the blog can elect to receive email notifications for specific categories (unless Digest email are select, then it is an opt in or out decision). The Users->Subscription menu item will allow them to select the delivery format (plaintext or HTML), amount of message (excerpt or full post), and the categories to which they want to subscribe. You, the blog owner, have the option (Options->Subscribe2) to allow registered users to subscribe to your excluded categories or not.
26
 
27
  == Installation ==
28
 
@@ -36,7 +36,7 @@ Registered users of the blog can elect to receive email notifications for specif
36
  <!--subscribe2-->
37
  ***Ensure the token is on a line by itself and that it has a blank line above and below.***
38
  This token will automatically be replaced by dynamic subscription information and will display all forms and messages as necessary.
39
- 8. In the WordPress "Settings" area for Subscribe2 define the default page ID in the "Appearance" section to the ID of the WordPress page created in step 7.
40
 
41
  == Frequently Asked Questions ==
42
 
@@ -68,9 +68,11 @@ Batches will occur for each group of message as described above. A site on Drea
68
 
69
  = My host has a limit of X emails per hour / day, can I limit the way Subscribe2 sends emails? =
70
 
71
- This is more commonly called 'throttling' or 'choking'. PHP is a scripting language and while it is technically possible to throttle emails using script it is not very efficient. It is much better in terms of speed and server overhead (CPU cycles and RAM) to throttle using a server side application.
 
 
72
 
73
- So, Subscribe2 does not and never will offer a throtting option. To solve the problem speak to your hosting provider about changing the restrictions, move to a less restriction hosting package or change hosting providers. Alternatively, there may be another WordPress plugin that can provide this functionality.
74
 
75
  = Why is my admin address getting emails from Subscribe2? =
76
 
@@ -89,9 +91,11 @@ Subscribe2 creates four (4) new admin menus in the back end of WordPress.
89
 
90
  There are basically only 2 types of subscriber. Public Subscribers and Registered Subscribers.
91
 
92
- Public subscribers have provided their email address for email notification of your new posts. When they enter there address on your site they are sent an email asking them to confirm their request and added to a list of Unconfirmed Subscribers. Once they complete their request by clicking on the link in their email they will become Confirmed Subscribers.
93
 
94
- Registered Users have registered with your WorPress blog (provided you have enabled this in the core WordPress settings). Once registered they can choose to subscribe to specific categories and can also control the type of email they get by choosing plain text in an excerpt or full post format or a full post format with HTML.
 
 
95
 
96
  = Can I put the form elsewhere? (header, footer, sidebar without the widget) =
97
 
@@ -134,6 +138,21 @@ Secondly, make sure that the token (<!--subscribe2-->) is correctly entered in y
134
 
135
  == Changelog ==
136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  = Version 5.2 by Matthew Robinson =
138
 
139
  * Added screen_icon() to each Subscribe2 admin page
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: 2.0.x
6
+ Tested up to: 2.9.1
7
+ Stable tag: 5.3
8
 
9
  Sends a list of subscribers an email notification when new posts are published to your blog
10
 
12
 
13
  Subscribe2 provides a comprehensive subscription management and email notification system for WordPress blogs that sends email notifications to a list of subscribers when you publish new content to your blog.
14
 
15
+ Email Notifications can be sent on a per-post basis or periodically in a Digest email. Additionally, certain categories can be excluded from inclusion in the notification and posts can be excluded on an individual basis by setting a custom field.
16
 
17
+ The plugin also handles subscription requests allowing users to publically subscribe (**Public Subscribers**) by submitting their email address in an easy to use form or to register with your blog (**Registered Users**) which enables greater flexibility over the email content for per-post notifications for the subscriber. Admins are given control over the presentation of the email notifications, can bulk manage subscriptions for users and manually send email notices to subscribers.
 
 
18
 
19
+ The format of the email can also be customised for per-post notifications, subscribe2 can generate emails for each of the following formats:
20
 
21
+ * plaintext excerpt
22
+ * plaintext full post (Registered Users only)
23
+ * HTML full post (Registered Users only)
24
 
25
+ If you want to send HTML emails to Public Subscribers too then upgrade to [Subscribe2 HTML](http://wpplugins.com/plugin/46/subscribe2-html).
26
 
27
  == Installation ==
28
 
36
  <!--subscribe2-->
37
  ***Ensure the token is on a line by itself and that it has a blank line above and below.***
38
  This token will automatically be replaced by dynamic subscription information and will display all forms and messages as necessary.
39
+ 8. In the WordPress "Settings" area for Subscribe2 select the page name in the "Appearance" section that of the WordPress page created in step 7.
40
 
41
  == Frequently Asked Questions ==
42
 
68
 
69
  = My host has a limit of X emails per hour / day, can I limit the way Subscribe2 sends emails? =
70
 
71
+ This is the second most common question I get asked (the first being about emails not being sent which quote often ends up here anyway!). This is more commonly called 'throttling' or 'choking'. PHP is a scripting language and while it is technically possible to throttle emails using script it is not very efficient. It is much better in terms of speed and server overhead (CPU cycles and RAM) to throttle using a server side application.
72
+
73
+ In the first instance you should try to solve the problem by speaking to your hosting provider about changing the restrictions, move to a less restricting hosting package or change hosting providers.
74
 
75
+ 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).
76
 
77
  = Why is my admin address getting emails from Subscribe2? =
78
 
91
 
92
  There are basically only 2 types of subscriber. Public Subscribers and Registered Subscribers.
93
 
94
+ Public subscribers have provided their email address for email notification of your new posts. When they enter there address on your site they are sent an email asking them to confirm their request and added to a list of Unconfirmed Subscribers. Once they complete their request by clicking on the link in their email they will become Confirmed Subscribers. They will receive a limited email notification when new post is made or periodically (unless that post is assigned to one of the excluded categories you defined). The general public will receive a plaintext email with an excerpt of the post: either the excerpt you created when making the post, the portion of text before a <!--more--> tag (if present), or the first 50 words or so of the post.
95
 
96
+ Registered Users have registered with your WorPress blog (provided you have enabled this in the core WordPress settings). Registered users of the blog can elect to receive email notifications for specific categories (unless Digest email are select, then it is an opt in or out decision). The Users->Subscription menu item will also allow them greater control to select the delivery format (plaintext or HTML), amount of message (excerpt or full post), and the categories to which they want to subscribe. You, the blog owner, have the option (Options->Subscribe2) to allow registered users to subscribe to your excluded categories or not.
97
+
98
+ **Note** You can sent HTML emails to Public Subscribers with the paid [Subscribe2 HTML version](http://wpplugins.com/plugin/46/subscribe2-html) of the plugin.
99
 
100
  = Can I put the form elsewhere? (header, footer, sidebar without the widget) =
101
 
138
 
139
  == Changelog ==
140
 
141
+ = Version 5.3 by Matthew Robinson =
142
+
143
+ * Added an HTML Excerpt notification type which sends an HTML formatted excerpt of the post
144
+ * Issue an error message in Settings->Subscribe2 if there is no WordPress page published on the blog site
145
+ * Improved usage of time dropdown in Settings->Subscribe2 so it works for periodic emails that are on a less than daily frequency
146
+ * Sorted categories by slugname for better presentation in the category selection area
147
+ * Make sure Preview emails skip the mail queue if WPMQ is used
148
+ * Fixed issue where blog posts made by email generated duplicate notifications
149
+ * Added fixes with the hope of stopping the random settings reset glitch many thanks to Barbara Wiebel
150
+ * Fixed AJAX bugs caused by deprecated jQuery function
151
+ * Fixed an issue where Registered Users who have requests a password reset disappear from Subscribe2
152
+ * Amended code for IP address collection to work around IIS servers
153
+ * Added COUNT keyword
154
+ * Ensure that BLOGNAME is not used in digest emails if it is empty
155
+
156
  = Version 5.2 by Matthew Robinson =
157
 
158
  * Added screen_icon() to each Subscribe2 admin page
counterwidget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Subscribe2 Counter Widget
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Adds a sidebar widget to easily customize and display your Subscribe2 subscribers stats.
6
- Version: 5.2
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
3
  Plugin Name: Subscribe2 Counter Widget
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Adds a sidebar widget to easily customize and display your Subscribe2 subscribers stats.
6
+ Version: 5.3
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
include/s2_edit.js CHANGED
@@ -20,15 +20,15 @@ function s2_hide(id) {
20
  };
21
 
22
  function s2_update(id) {
23
- var input = jQuery('input[@name="'+id+'"]').val();
24
- jQuery('input[@name="'+id+'"]').val(input);
25
  jQuery('#s2'+id).html(input);
26
  s2_hide(id);
27
  };
28
 
29
  function s2_revert(id) {
30
  var option = jQuery('#js'+id).val();
31
- jQuery('input[@name="'+id+'"]').val(option);
32
  jQuery('#s2'+id).html(option);
33
  s2_hide(id);
34
  };
20
  };
21
 
22
  function s2_update(id) {
23
+ var input = jQuery('input[name="'+id+'"]').val();
24
+ jQuery('input[name="'+id+'"]').val(input);
25
  jQuery('#s2'+id).html(input);
26
  s2_hide(id);
27
  };
28
 
29
  function s2_revert(id) {
30
  var option = jQuery('#js'+id).val();
31
+ jQuery('input[name="'+id+'"]').val(option);
32
  jQuery('#s2'+id).html(option);
33
  s2_hide(id);
34
  };
subscribe2.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
- Version: 5.2
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
@@ -86,11 +86,13 @@ class s2class {
86
 
87
  $this->error = "<p>" . __('Sorry, there seems to be an error on the server. Please try again later.', 'subscribe2') . "</p>";
88
 
 
 
89
  $this->mail_sent = "<p>" . __('Message sent!', 'subscribe2') . "</p>";
90
 
91
  $this->mail_failed = "<p>" . __('Message failed! Check your settings and check with your hosting provider', 'subscribe2') . "</p>";
92
 
93
- $this->form = "<form method=\"post\" action=\"\"><input type=\"hidden\" name=\"ip\" value=\"" . getenv('REMOTE_ADDR') . "\" /><p>" . __('Your email:', 'subscribe2') . "<br /><input type=\"text\" name=\"email\" value=\"" . __('Enter email address...', 'subscribe2') . "\" size=\"20\" onfocus=\"if (this.value == '" . __('Enter email address...', 'subscribe2') . "') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = '" . __('Enter email address...', 'subscribe2') . "';}\" /></p><p><input type=\"submit\" name=\"subscribe\" value=\"" . __('Subscribe', 'subscribe2') . "\" />&nbsp;<input type=\"submit\" name=\"unsubscribe\" value=\"" . __('Unsubscribe', 'subscribe2') . "\" /></p></form>\r\n";
94
 
95
  // confirmation messages
96
  $this->no_such_email = "<p>" . __('No such email address is registered.', 'subscribe2') . "</p>";
@@ -288,6 +290,7 @@ class s2class {
288
  $string = str_replace("AUTHORNAME", $this->authorname, $string);
289
  $string = str_replace("CATS", $this->post_cat_names, $string);
290
  $string = str_replace("TAGS", $this->post_tag_names, $string);
 
291
 
292
  return $string;
293
  } // end substitute()
@@ -325,8 +328,9 @@ class s2class {
325
  $recipient = trim($recipient);
326
  // sanity check -- make sure we have a valid email
327
  if ( !is_email($recipient) ) { continue; }
328
- if ( function_exists('wpmq_mail') ) {
329
- @wp_mail($recipient, $subject, $mailtext, $headers, NULL, 0);
 
330
  } else {
331
  @wp_mail($recipient, $subject, $mailtext, $headers);
332
  }
@@ -404,9 +408,9 @@ class s2class {
404
  $headers .= "X-Mailer: PHP" . phpversion() . "\n";
405
  if ( $type == 'html' ) {
406
  // To send HTML mail, the Content-Type header must be set
407
- $headers .= "Content-Type: " . get_bloginfo('html_type') . "; charset=\"". get_bloginfo('charset') . "\"\n";
408
  } else {
409
- $headers .= "Content-Type: text/plain; charset=\"". get_bloginfo('charset') . "\"\n";
410
  }
411
 
412
  return $headers;
@@ -541,12 +545,33 @@ class s2class {
541
  }
542
  }
543
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
544
 
545
  // prepare mail body texts
546
  $excerpt_body = str_replace("POST", $excerpt, $mailtext);
547
  $full_body = str_replace("POST", strip_tags($plaintext), $mailtext);
548
  $html_body = str_replace("\r\n", "<br />\r\n", $mailtext);
549
  $html_body = str_replace("POST", $content, $html_body);
 
 
550
 
551
  if ( $preview != '' ) {
552
  $this->myemail = $preview;
@@ -554,6 +579,7 @@ class s2class {
554
  $this->mail(array($preview), $subject, $excerpt_body);
555
  $this->mail(array($preview), $subject, $full_body);
556
  $this->mail(array($preview), $subject, $html_body, 'html');
 
557
  } else {
558
  // first we send plaintext summary emails
559
  $registered = $this->get_registered("cats=$post_cats_string&format=excerpt");
@@ -569,6 +595,9 @@ class s2class {
569
  // next we send plaintext full content emails
570
  $this->mail($this->get_registered("cats=$post_cats_string&format=post"), $subject, $full_body);
571
 
 
 
 
572
  // finally we send html full content emails
573
  $this->mail($this->get_registered("cats=$post_cats_string&format=html"), $subject, $html_body, 'html');
574
  }
@@ -633,7 +662,12 @@ class s2class {
633
 
634
  $body = str_replace("LINK", $link, $body);
635
 
636
- return @wp_mail($this->email, $subject, $body, $mailheaders);
 
 
 
 
 
637
  } // end send_confirm()
638
 
639
  /* ===== Subscriber functions ===== */
@@ -805,7 +839,7 @@ class s2class {
805
  // make this subscription active
806
  $this->message = $this->added;
807
  if ( '1' != $current ) {
808
- $this->ip = getenv('REMOTE_ADDR');
809
  $this->activate();
810
  if ( $this->subscribe2_options['admin_email'] == 'subs' || $this->subscribe2_options['admin_email'] == 'both' ) {
811
  $subject = '[' . get_option('blogname') . '] ' . __('New subscription', 'subscribe2');
@@ -905,7 +939,7 @@ class s2class {
905
  } else {
906
  $result = $wpdb->get_col("SELECT user_id FROM $wpdb->usermeta WHERE meta_key='" . $wpdb->prefix . "capabilities'");
907
  $ids = implode(',', $result);
908
- return $wpdb->get_col("SELECT user_email FROM $wpdb->users WHERE ID IN ($ids) AND user_activation_key=''");
909
  }
910
  } else {
911
  if ( $id ) {
@@ -940,6 +974,8 @@ class s2class {
940
  $AND .= " AND b.meta_key='s2_format' AND b.meta_value=";
941
  if ( 'html' == $r['format'] ) {
942
  $AND .= "'html'";
 
 
943
  } elseif ( 'post' == $r['format'] ) {
944
  $AND .= "'post'";
945
  } elseif ( 'excerpt' == $r['format'] ) {
@@ -965,7 +1001,7 @@ class s2class {
965
  $result = $wpdb->get_col($sql);
966
  if ( $result ) {
967
  $ids = implode(',', $result);
968
- return $wpdb->get_col("SELECT user_email FROM $wpdb->users WHERE ID IN ($ids) AND user_activation_key = ''");
969
  }
970
  } // end get_registered()
971
 
@@ -1517,7 +1553,7 @@ class s2class {
1517
  if ( $total_pages > 1 ) {
1518
  for ( $page_num = 1; $page_num <= $total_pages; $page_num++ ) {
1519
  if ( $page == $page_num ) {
1520
- $strip .= "<strong>" . $page_num . "</strong>\n";
1521
  } else {
1522
  if ( $page_num < 3 || ( $page_num >= $page - 2 && $page_num <= $page + 2 ) || $page_num > $total_pages - 2 ) {
1523
  $args['s2page'] = $page_num;
@@ -1557,21 +1593,21 @@ class s2class {
1557
  $this->display_subscriber_dropdown($what, __('Filter', 'subscribe2'));
1558
  // show the selected subscribers
1559
  $alternate = '';
 
 
 
 
 
 
 
 
 
1560
  if ( !empty($subscribers) ) {
1561
  $exportcsv = implode(",\r\n", $subscribers);
1562
- echo "<table cellpadding=\"2\" cellspacing=\"2\" width=\"100%\">";
1563
- echo "<tr class=\"alternate\"><td width=\"50%\"><input type=\"text\" name=\"searchterm\" value=\"\" />&nbsp;\r\n";
1564
- echo "<input type=\"submit\" class=\"button-secondary\" name=\"search\" value=\"" . __('Search Subscribers', 'subscribe2') . "\" /></td>\r\n";
1565
- if ( $reminderform ) {
1566
- echo "<td width=\"25%\" align=\"right\"><input type=\"hidden\" name=\"reminderemails\" value=\"" . $reminderemails . "\" />\r\n";
1567
- echo "<input type=\"submit\" class=\"button-secondary\" name=\"remind\" value=\"" . __('Send Reminder Email', 'subscribe2') . "\" /></td>\r\n";
1568
- } else {
1569
- echo "<td width=\"25%\"></td>";
1570
- }
1571
  echo "<td width=\"25%\" align=\"right\"><input type=\"hidden\" name=\"exportcsv\" value=\"" . $exportcsv . "\" />\r\n";
1572
- echo "<input type=\"submit\" class=\"button-secondary\" name=\"csv\" value=\"" . __('Save Emails to CSV File', 'subscribe2') . "\" /></td></tr>\r\n";
1573
- echo "</table>";
1574
  }
 
1575
 
1576
  echo "<table class=\"widefat\" cellpadding=\"2\" cellspacing=\"2\">";
1577
  if ( !empty($subscribers) ) {
@@ -1647,9 +1683,10 @@ class s2class {
1647
  echo "<p class=\"submit\"><input type=\"submit\" class=\"button-primary\" name=\"sub_categories\" value=\"" . __('Bulk Update Categories', 'subscribe2') . "\" /></p>";
1648
 
1649
  echo "<br />" . __('Send email as', 'subscribe2') . ":\r\n";
1650
- echo "<label><input type=\"radio\" name=\"format\" value=\"excerpt\" checked=\"checked\" /> " . __('Plain Text - Excerpt', 'subscribe2') . "</label>&nbsp;&nbsp;\r\n";
 
1651
  echo "<label><input type=\"radio\" name=\"format\" value=\"full\" /> " . __('Plain Text - Full', 'subscribe2') . "</label>&nbsp;&nbsp;\r\n";
1652
- echo "<label><input type=\"radio\" name=\"format\" value=\"html\" /> " . __('HTML', 'subscribe2') . "</label>\r\n";
1653
  echo "<p class=\"submit\"><input type=\"submit\" class=\"button-primary\" name=\"sub_format\" value=\"" . __('Bulk Update Format', 'subscribe2') . "\" /></p>";
1654
  echo "</form></div>\r\n";
1655
 
@@ -1662,7 +1699,14 @@ class s2class {
1662
  Our options page
1663
  */
1664
  function options_menu() {
1665
- global $s2nonce;
 
 
 
 
 
 
 
1666
 
1667
  // was anything POSTed?
1668
  if ( isset( $_POST['s2_admin']) ) {
@@ -1672,12 +1716,14 @@ class s2class {
1672
  echo "<div id=\"message\" class=\"updated fade\"><p><strong>$this->options_reset</strong></p></div>";
1673
  } elseif ( $_POST['preview'] ) {
1674
  global $user_email;
 
1675
  if ( 'never' == $this->subscribe2_options['email_freq'] ) {
1676
  $post = get_posts('numberposts=1');
1677
  $this->publish($post[0], $user_email);
1678
  } else {
1679
  $this->subscribe2_cron($user_email);
1680
  }
 
1681
  } elseif ( $_POST['submit'] ) {
1682
  // BCClimit
1683
  if ( is_numeric($_POST['bcc']) && $_POST['bcc'] >= 0 ) {
@@ -1716,7 +1762,20 @@ class s2class {
1716
  $time = time() + $interval;
1717
  if ( $interval < 86400 ) {
1718
  // Schedule CRON events occurring less than daily starting now and periodically thereafter
1719
- $timestamp = &$time;
 
 
 
 
 
 
 
 
 
 
 
 
 
1720
  } else {
1721
  // Schedule other CRON events starting at user defined hour and periodically thereafter
1722
  $timestamp = mktime($_POST['hour'], 0, 0, date('m', $time), date('d', $time), date('Y', $time));
@@ -1939,6 +1998,7 @@ class s2class {
1939
  echo "<dt><b>ACTION</b></dt><dd>" . __("Action performed by LINK in confirmation email<br />(<i>only used in the confirmation email template</i>)", 'subscribe2') . "</dd>\r\n";
1940
  echo "<dt><b>CATS</b></dt><dd>" . __("the post's assigned categories", 'subscribe2') . "</dd>\r\n";
1941
  echo "<dt><b>TAGS</b></dt><dd>" . __("the post's assigned Tags", 'subscribe2') . "</dd>\r\n";
 
1942
  echo "</dl></td></tr><tr><td>";
1943
  echo __('Subscribe / Unsubscribe confirmation email', 'subscribe2') . ":<br />\r\n";
1944
  echo __('Subject Line', 'subscribe2') . ": ";
@@ -1969,12 +2029,7 @@ class s2class {
1969
 
1970
  // WordPress page ID where subscribe2 token is used
1971
  echo __('Set default Subscribe2 page as ID', 'subscribe2') . ': ';
1972
- echo "<span id=\"s2page_1\"><span id=\"s2page\" style=\"background-color: #FFFBCC\">" . $this->subscribe2_options['s2page'] . "</span> ";
1973
- echo "<a href=\"#\" onclick=\"s2_show('page'); return false;\">" . __('Edit', 'subscribe2') . "</a></span>\n";
1974
- echo "<span id=\"s2page_2\">\r\n";
1975
- echo "<input type=\"text\" name=\"page\" value=\"" . $this->subscribe2_options['s2page'] . "\" size=\"3\" />\r\n";
1976
- echo "<a href=\"#\" onclick=\"s2_update('page'); return false;\">". __('Update', 'subscribe2') . "</a>\n";
1977
- echo "<a href=\"#\" onclick=\"s2_revert('page'); return false;\">". __('Revert', 'subscribe2') . "</a></span>\n";
1978
 
1979
  // Number of subscribers per page
1980
  echo "<br /><br />" . __('Set the number of Subscribers displayed per page', 'subscribe2') . ': ';
@@ -2053,9 +2108,14 @@ class s2class {
2053
  if ( 'html' == $this->subscribe2_options['autoformat'] ) {
2054
  echo "checked=\"checked\" ";
2055
  }
2056
- echo "/> " . __('HTML', 'subscribe2') ."</label>&nbsp;&nbsp;";
2057
- echo "<label><input type=\"radio\" name=\"autoformat\" value=\"fulltext\" ";
2058
- if ( 'fulltext' == $this->subscribe2_options['autoformat'] ) {
 
 
 
 
 
2059
  echo "checked=\"checked\" ";
2060
  }
2061
  echo "/> " . __('Plain Text - Full', 'subscribe2') . "</label>&nbsp;&nbsp;";
@@ -2197,7 +2257,12 @@ class s2class {
2197
  if ( 'html' == get_usermeta($user_ID, 's2_format') ) {
2198
  echo "checked=\"checked\" ";
2199
  }
2200
- echo "/> " . __('HTML', 'subscribe2') ."</label>&nbsp;&nbsp;";
 
 
 
 
 
2201
  echo "<label><input type=\"radio\" name=\"s2_format\" value=\"post\" ";
2202
  if ( 'post' == get_usermeta($user_ID, 's2_format') ) {
2203
  echo "checked=\"checked\" ";
@@ -2437,7 +2502,7 @@ class s2class {
2437
  function display_category_form($selected = array(), $override = 1) {
2438
  global $wpdb;
2439
 
2440
- $all_cats = get_categories(array('hide_empty' => false));
2441
  $exclude = explode(',', $this->subscribe2_options['exclude']);
2442
 
2443
  if ( 0 == $override ) {
@@ -2467,15 +2532,15 @@ class s2class {
2467
  if ( 0 == $j ) {
2468
  echo "<label><input class=\"cat_checkall\" type=\"checkbox\" name=\"category[]\" value=\"" . $cat->term_id . "\"";
2469
  if ( in_array($cat->term_id, $selected) ) {
2470
- echo " checked=\"checked\" ";
2471
  }
2472
- echo " /> <abbr title=\"" . $cat->slug . "\">" . trim(get_category_parents($cat->term_id, false, ' &raquo; '), ' &raquo; ') . "</abbr></label><br />\r\n";
2473
  } else {
2474
  echo "<label><input class=\"cat_checkall\" type=\"checkbox\" name=\"category[]\" value=\"" . $cat->term_id . "\"";
2475
  if ( in_array($cat->term_id, $selected) ) {
2476
- echo " checked=\"checked\" ";
2477
  }
2478
- echo " /> <abbr title=\"" . $cat->slug . "\">" . trim(get_category_parents($cat->term_id, false, ' &raquo; '), ' &raquo; ') . "</abbr></label><br />\r\n";
2479
  }
2480
  $i++;
2481
  }
@@ -2636,7 +2701,7 @@ class s2class {
2636
  next($hours);
2637
  }
2638
  echo "</select>\r\n";
2639
- echo "<strong><em style=\"color: red\">" . __('This option will work for digest notification sent daily or less frequently', 'subscribe2') . "</em></strong>\r\n";
2640
  if ( $scheduled_time ) {
2641
  $datetime = get_option('date_format') . ' @ ' . get_option('time_format');
2642
  echo "<p>" . __('Current UTC time is', 'subscribe2') . ": \r\n";
@@ -2650,6 +2715,27 @@ class s2class {
2650
  }
2651
  } // end display_digest_choices()
2652
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2653
  /**
2654
  Filter for usermeta table key names to adjust them if needed for WPMU blogs
2655
  */
@@ -3106,6 +3192,7 @@ class s2class {
3106
 
3107
  // do we have any posts?
3108
  if ( empty($posts) ) { return; }
 
3109
 
3110
  // if we have posts, let's prepare the digest
3111
  $datetime = get_option('date_format') . ' @ ' . get_option('time_format');
@@ -3208,7 +3295,8 @@ class s2class {
3208
  $scheds = (array)wp_get_schedules();
3209
  $email_freq = $this->subscribe2_options['email_freq'];
3210
  $display = $scheds[$email_freq]['display'];
3211
- $subject = "[" . stripslashes(get_option('blogname')) . "] " . $display . " " . __('Digest Email', 'subscribe2');
 
3212
  $mailtext = stripslashes($this->substitute($mailtext));
3213
  $mailtext = str_replace("TABLE", $table, $mailtext);
3214
  $mailtext = str_replace("POSTTIME", $message_posttime, $mailtext);
@@ -3251,9 +3339,9 @@ class s2class {
3251
  } // end s2init()
3252
 
3253
  function subscribe2() {
3254
- global $table_prefix, $wp_version, $wpmu_version;
3255
 
3256
- load_plugin_textdomain('subscribe2', 'wp-content/plugins/' . S2DIR, S2DIR);
3257
 
3258
  // Is this WordPressMU or not?
3259
  if ( isset($wpmu_version) || strpos($wp_version, 'wordpress-mu') ) {
@@ -3264,9 +3352,9 @@ class s2class {
3264
 
3265
  // do we need to install anything?
3266
  $this->public = $table_prefix . "subscribe2";
3267
- if ( !mysql_query("DESCRIBE " . $this->public) ) { $this->install(); }
3268
  //do we need to upgrade anything?
3269
- if ( is_array($this->subscribe2_options) && $this->subscribe2_options['version'] !== S2VERSION ) {
3270
  add_action('shutdown', array(&$this, 'upgrade'));
3271
  }
3272
 
@@ -3329,7 +3417,6 @@ class s2class {
3329
  add_action('pending_to_publish', array(&$this, 'publish'));
3330
  add_action('private_to_publish', array(&$this, 'publish'));
3331
  add_action('future_to_publish', array(&$this, 'publish'));
3332
- add_action('publish_phone', array(&$this, 'publish_phone'));
3333
  if ( $this->subscribe2_options['private'] == 'yes' ) {
3334
  add_action('new_to_private', array(&$this, 'publish'));
3335
  add_action('draft_to_private', array(&$this, 'publish'));
@@ -3353,6 +3440,7 @@ class s2class {
3353
  var $myemail = '';
3354
  var $signup_dates = array();
3355
  var $filtered = 0;
 
3356
 
3357
  // state variables used to affect processing
3358
  var $action = '';
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
+ Version: 5.3
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
86
 
87
  $this->error = "<p>" . __('Sorry, there seems to be an error on the server. Please try again later.', 'subscribe2') . "</p>";
88
 
89
+ $this->no_page = "<p>" . __('You must to create a WordPress page for this plugin to work correctly.', 'subscribe2') . "<p>";
90
+
91
  $this->mail_sent = "<p>" . __('Message sent!', 'subscribe2') . "</p>";
92
 
93
  $this->mail_failed = "<p>" . __('Message failed! Check your settings and check with your hosting provider', 'subscribe2') . "</p>";
94
 
95
+ $this->form = "<form method=\"post\" action=\"\"><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" /><p>" . __('Your email:', 'subscribe2') . "<br /><input type=\"text\" name=\"email\" value=\"" . __('Enter email address...', 'subscribe2') . "\" size=\"20\" onfocus=\"if (this.value == '" . __('Enter email address...', 'subscribe2') . "') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = '" . __('Enter email address...', 'subscribe2') . "';}\" /></p><p><input type=\"submit\" name=\"subscribe\" value=\"" . __('Subscribe', 'subscribe2') . "\" />&nbsp;<input type=\"submit\" name=\"unsubscribe\" value=\"" . __('Unsubscribe', 'subscribe2') . "\" /></p></form>\r\n";
96
 
97
  // confirmation messages
98
  $this->no_such_email = "<p>" . __('No such email address is registered.', 'subscribe2') . "</p>";
290
  $string = str_replace("AUTHORNAME", $this->authorname, $string);
291
  $string = str_replace("CATS", $this->post_cat_names, $string);
292
  $string = str_replace("TAGS", $this->post_tag_names, $string);
293
+ $string = str_replace("COUNT", $this->post_count, $string);
294
 
295
  return $string;
296
  } // end substitute()
328
  $recipient = trim($recipient);
329
  // sanity check -- make sure we have a valid email
330
  if ( !is_email($recipient) ) { continue; }
331
+ // Use the mail queue provided we are not sending a preview
332
+ if ( function_exists('wpmq_mail') && !$this->preview_email ) {
333
+ @wp_mail($recipient, $subject, $mailtext, $headers, '', 0);
334
  } else {
335
  @wp_mail($recipient, $subject, $mailtext, $headers);
336
  }
408
  $headers .= "X-Mailer: PHP" . phpversion() . "\n";
409
  if ( $type == 'html' ) {
410
  // To send HTML mail, the Content-Type header must be set
411
+ $headers .= "Content-Type: " . get_bloginfo('html_type') . "; charset=\"". get_bloginfo('charset') . "\"";
412
  } else {
413
+ $headers .= "Content-Type: text/plain; charset=\"". get_bloginfo('charset') . "\"";
414
  }
415
 
416
  return $headers;
545
  }
546
  }
547
  }
548
+ $html_excerpt = $post->post_excerpt;
549
+ if ( '' == $html_excerpt ) {
550
+ // no excerpt, is there a <!--more--> ?
551
+ if ( false !== strpos($content, '<!--more-->') ) {
552
+ list($html_excerpt, $more) = explode('<!--more-->', $content, 2);
553
+ // strip leading and trailing whitespace
554
+ $html_excerpt = balanceTags($html_excerpt);
555
+ $html_excerpt = trim($html_excerpt);
556
+ } else {
557
+ // no <!--more-->, so grab the first 55 words
558
+ $words = explode(' ', $content, $this->excerpt_length + 1);
559
+ if (count($words) > $this->excerpt_length) {
560
+ array_pop($words);
561
+ array_push($words, '[...]');
562
+ $html_excerpt = implode(' ', $words);
563
+ $html_excerpt = trim(balanceTags($html_excerpt));
564
+ }
565
+ }
566
+ }
567
 
568
  // prepare mail body texts
569
  $excerpt_body = str_replace("POST", $excerpt, $mailtext);
570
  $full_body = str_replace("POST", strip_tags($plaintext), $mailtext);
571
  $html_body = str_replace("\r\n", "<br />\r\n", $mailtext);
572
  $html_body = str_replace("POST", $content, $html_body);
573
+ $html_excerpt_body = str_replace("\r\n", "<br />\r\n", $mailtext);
574
+ $html_excerpt_body = str_replace("POST", $html_excerpt, $html_excerpt_body);
575
 
576
  if ( $preview != '' ) {
577
  $this->myemail = $preview;
579
  $this->mail(array($preview), $subject, $excerpt_body);
580
  $this->mail(array($preview), $subject, $full_body);
581
  $this->mail(array($preview), $subject, $html_body, 'html');
582
+ $this->mail(array($preview), $subject, $html_excerpt_body, 'html');
583
  } else {
584
  // first we send plaintext summary emails
585
  $registered = $this->get_registered("cats=$post_cats_string&format=excerpt");
595
  // next we send plaintext full content emails
596
  $this->mail($this->get_registered("cats=$post_cats_string&format=post"), $subject, $full_body);
597
 
598
+ // next we send html excerpt content emails
599
+ $this->mail($this->get_registered("cats=$post_cats_string&format=html_excerpt"), $subject, $html_excerpt, 'html');
600
+
601
  // finally we send html full content emails
602
  $this->mail($this->get_registered("cats=$post_cats_string&format=html"), $subject, $html_body, 'html');
603
  }
662
 
663
  $body = str_replace("LINK", $link, $body);
664
 
665
+ if ( $is_remind == true && function_exists('wpmq_mail') ) {
666
+ // could be sending lots of reminders so queue them if wpmq is enabled
667
+ @wp_mail($this->email, $subject, $body, $mailheaders, '', 0);
668
+ } else {
669
+ return @wp_mail($this->email, $subject, $body, $mailheaders);
670
+ }
671
  } // end send_confirm()
672
 
673
  /* ===== Subscriber functions ===== */
839
  // make this subscription active
840
  $this->message = $this->added;
841
  if ( '1' != $current ) {
842
+ $this->ip = $_SERVER['REMOTE_ADDR'];
843
  $this->activate();
844
  if ( $this->subscribe2_options['admin_email'] == 'subs' || $this->subscribe2_options['admin_email'] == 'both' ) {
845
  $subject = '[' . get_option('blogname') . '] ' . __('New subscription', 'subscribe2');
939
  } else {
940
  $result = $wpdb->get_col("SELECT user_id FROM $wpdb->usermeta WHERE meta_key='" . $wpdb->prefix . "capabilities'");
941
  $ids = implode(',', $result);
942
+ return $wpdb->get_col("SELECT user_email FROM $wpdb->users WHERE ID IN ($ids)");
943
  }
944
  } else {
945
  if ( $id ) {
974
  $AND .= " AND b.meta_key='s2_format' AND b.meta_value=";
975
  if ( 'html' == $r['format'] ) {
976
  $AND .= "'html'";
977
+ } elseif ( 'html_excerpt' == $r['format'] ) {
978
+ $AND .= "'html_excerpt'";
979
  } elseif ( 'post' == $r['format'] ) {
980
  $AND .= "'post'";
981
  } elseif ( 'excerpt' == $r['format'] ) {
1001
  $result = $wpdb->get_col($sql);
1002
  if ( $result ) {
1003
  $ids = implode(',', $result);
1004
+ return $wpdb->get_col("SELECT user_email FROM $wpdb->users WHERE ID IN ($ids)");
1005
  }
1006
  } // end get_registered()
1007
 
1553
  if ( $total_pages > 1 ) {
1554
  for ( $page_num = 1; $page_num <= $total_pages; $page_num++ ) {
1555
  if ( $page == $page_num ) {
1556
+ $strip .= "<strong>Page " . $page_num . "</strong>\n";
1557
  } else {
1558
  if ( $page_num < 3 || ( $page_num >= $page - 2 && $page_num <= $page + 2 ) || $page_num > $total_pages - 2 ) {
1559
  $args['s2page'] = $page_num;
1593
  $this->display_subscriber_dropdown($what, __('Filter', 'subscribe2'));
1594
  // show the selected subscribers
1595
  $alternate = '';
1596
+ echo "<table cellpadding=\"2\" cellspacing=\"2\" width=\"100%\">";
1597
+ echo "<tr class=\"alternate\"><td width=\"50%\"><input type=\"text\" name=\"searchterm\" value=\"\" />&nbsp;\r\n";
1598
+ echo "<input type=\"submit\" class=\"button-secondary\" name=\"search\" value=\"" . __('Search Subscribers', 'subscribe2') . "\" /></td>\r\n";
1599
+ if ( $reminderform ) {
1600
+ echo "<td width=\"25%\" align=\"right\"><input type=\"hidden\" name=\"reminderemails\" value=\"" . $reminderemails . "\" />\r\n";
1601
+ echo "<input type=\"submit\" class=\"button-secondary\" name=\"remind\" value=\"" . __('Send Reminder Email', 'subscribe2') . "\" /></td>\r\n";
1602
+ } else {
1603
+ echo "<td width=\"25%\"></td>";
1604
+ }
1605
  if ( !empty($subscribers) ) {
1606
  $exportcsv = implode(",\r\n", $subscribers);
 
 
 
 
 
 
 
 
 
1607
  echo "<td width=\"25%\" align=\"right\"><input type=\"hidden\" name=\"exportcsv\" value=\"" . $exportcsv . "\" />\r\n";
1608
+ echo "<input type=\"submit\" class=\"button-secondary\" name=\"csv\" value=\"" . __('Save Emails to CSV File', 'subscribe2') . "\" /></td>\r\n";
 
1609
  }
1610
+ echo "</tr></table>";
1611
 
1612
  echo "<table class=\"widefat\" cellpadding=\"2\" cellspacing=\"2\">";
1613
  if ( !empty($subscribers) ) {
1683
  echo "<p class=\"submit\"><input type=\"submit\" class=\"button-primary\" name=\"sub_categories\" value=\"" . __('Bulk Update Categories', 'subscribe2') . "\" /></p>";
1684
 
1685
  echo "<br />" . __('Send email as', 'subscribe2') . ":\r\n";
1686
+ echo "<label><input type=\"radio\" name=\"format\" value=\"html\" /> " . __('HTML - Full', 'subscribe2') . "</label>&nbsp;&nbsp;\r\n";
1687
+ echo "<label><input type=\"radio\" name=\"format\" value=\"html_excerpt\" /> " . __('HTML - Excerpt', 'subscribe2') . "</label>&nbsp;&nbsp;\r\n";
1688
  echo "<label><input type=\"radio\" name=\"format\" value=\"full\" /> " . __('Plain Text - Full', 'subscribe2') . "</label>&nbsp;&nbsp;\r\n";
1689
+ echo "<label><input type=\"radio\" name=\"format\" value=\"excerpt\" checked=\"checked\" /> " . __('Plain Text - Excerpt', 'subscribe2') . "</label>\r\n";
1690
  echo "<p class=\"submit\"><input type=\"submit\" class=\"button-primary\" name=\"sub_format\" value=\"" . __('Bulk Update Format', 'subscribe2') . "\" /></p>";
1691
  echo "</form></div>\r\n";
1692
 
1699
  Our options page
1700
  */
1701
  function options_menu() {
1702
+ global $s2nonce, $wpdb;
1703
+
1704
+ // send error message if no WordPress page exists
1705
+ $sql = "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_status='publish' LIMIT 1";
1706
+ $id = $wpdb->get_var($sql);
1707
+ if ( empty($id) ) {
1708
+ echo "<div id=\"message\" class=\"error\"><p><strong>$this->no_page</strong></p></div>";
1709
+ }
1710
 
1711
  // was anything POSTed?
1712
  if ( isset( $_POST['s2_admin']) ) {
1716
  echo "<div id=\"message\" class=\"updated fade\"><p><strong>$this->options_reset</strong></p></div>";
1717
  } elseif ( $_POST['preview'] ) {
1718
  global $user_email;
1719
+ $this->preview_email = true;
1720
  if ( 'never' == $this->subscribe2_options['email_freq'] ) {
1721
  $post = get_posts('numberposts=1');
1722
  $this->publish($post[0], $user_email);
1723
  } else {
1724
  $this->subscribe2_cron($user_email);
1725
  }
1726
+ echo "<div id=\"message\" class=\"updated fade\"><p><strong>" . __('Preview message(s) sent to logged in user', 'subscribe2') . "</strong></p></div>";
1727
  } elseif ( $_POST['submit'] ) {
1728
  // BCClimit
1729
  if ( is_numeric($_POST['bcc']) && $_POST['bcc'] >= 0 ) {
1762
  $time = time() + $interval;
1763
  if ( $interval < 86400 ) {
1764
  // Schedule CRON events occurring less than daily starting now and periodically thereafter
1765
+ $maybe_time = mktime($_POST['hour'], 0, 0, date('m', time()), date('d', time()), date('Y', time()));
1766
+ // is maybe_time in the future
1767
+ $offset = $maybe_time - time();
1768
+ // is maybe_time + $interval in the future
1769
+ $offset2 = ($maybe_time + $interval) - time();
1770
+ if ( $offset < 0 ) {
1771
+ if ( $offset2 < 0 ) {
1772
+ $timestamp = &$time;
1773
+ } else {
1774
+ $timestamp = $maybe_time + $interval;
1775
+ }
1776
+ } else {
1777
+ $timestamp = &$maybe_time;
1778
+ }
1779
  } else {
1780
  // Schedule other CRON events starting at user defined hour and periodically thereafter
1781
  $timestamp = mktime($_POST['hour'], 0, 0, date('m', $time), date('d', $time), date('Y', $time));
1998
  echo "<dt><b>ACTION</b></dt><dd>" . __("Action performed by LINK in confirmation email<br />(<i>only used in the confirmation email template</i>)", 'subscribe2') . "</dd>\r\n";
1999
  echo "<dt><b>CATS</b></dt><dd>" . __("the post's assigned categories", 'subscribe2') . "</dd>\r\n";
2000
  echo "<dt><b>TAGS</b></dt><dd>" . __("the post's assigned Tags", 'subscribe2') . "</dd>\r\n";
2001
+ echo "<dt><b>COUNT</b></dt><dd>" . __("the number of posts included in the digest email<br />(<i>for digest emails only</i>)", 'subscribe2') . "</dd>\r\n";
2002
  echo "</dl></td></tr><tr><td>";
2003
  echo __('Subscribe / Unsubscribe confirmation email', 'subscribe2') . ":<br />\r\n";
2004
  echo __('Subject Line', 'subscribe2') . ": ";
2029
 
2030
  // WordPress page ID where subscribe2 token is used
2031
  echo __('Set default Subscribe2 page as ID', 'subscribe2') . ': ';
2032
+ $this->pages_dropdown();
 
 
 
 
 
2033
 
2034
  // Number of subscribers per page
2035
  echo "<br /><br />" . __('Set the number of Subscribers displayed per page', 'subscribe2') . ': ';
2108
  if ( 'html' == $this->subscribe2_options['autoformat'] ) {
2109
  echo "checked=\"checked\" ";
2110
  }
2111
+ echo "/> " . __('HTML - Full', 'subscribe2') ."</label>&nbsp;&nbsp;";
2112
+ echo "<label><input type=\"radio\" name=\"autoformat\" value=\"html\"";
2113
+ if ( 'html' == $this->subscribe2_options['autoformat'] ) {
2114
+ echo "checked=\"checked\" ";
2115
+ }
2116
+ echo "/> " . __('HTML - Excerpt', 'subscribe2') ."</label>&nbsp;&nbsp;";
2117
+ echo "<label><input type=\"radio\" name=\"autoformat\" value=\"html_excerpt\" ";
2118
+ if ( 'html_excerpt' == $this->subscribe2_options['autoformat'] ) {
2119
  echo "checked=\"checked\" ";
2120
  }
2121
  echo "/> " . __('Plain Text - Full', 'subscribe2') . "</label>&nbsp;&nbsp;";
2257
  if ( 'html' == get_usermeta($user_ID, 's2_format') ) {
2258
  echo "checked=\"checked\" ";
2259
  }
2260
+ echo "/> " . __('HTML - Full', 'subscribe2') ."</label>&nbsp;&nbsp;";
2261
+ echo "<label><input type=\"radio\" name=\"s2_format\" value=\"html_excerpt\" ";
2262
+ if ( 'html_excerpt' == get_usermeta($user_ID, 's2_format') ) {
2263
+ echo "checked=\"checked\" ";
2264
+ }
2265
+ echo "/> " . __('HTML - Excerpt', 'subscribe2') . "</label>&nbsp;&nbsp;";
2266
  echo "<label><input type=\"radio\" name=\"s2_format\" value=\"post\" ";
2267
  if ( 'post' == get_usermeta($user_ID, 's2_format') ) {
2268
  echo "checked=\"checked\" ";
2502
  function display_category_form($selected = array(), $override = 1) {
2503
  global $wpdb;
2504
 
2505
+ $all_cats = get_categories(array('hide_empty' => false, 'orderby' => 'slug'));
2506
  $exclude = explode(',', $this->subscribe2_options['exclude']);
2507
 
2508
  if ( 0 == $override ) {
2532
  if ( 0 == $j ) {
2533
  echo "<label><input class=\"cat_checkall\" type=\"checkbox\" name=\"category[]\" value=\"" . $cat->term_id . "\"";
2534
  if ( in_array($cat->term_id, $selected) ) {
2535
+ echo " checked=\"checked\"";
2536
  }
2537
+ echo " /> <abbr title=\"" . $cat->slug . "\">" . trim(get_category_parents($cat->term_id, false, ' &#187; '), ' &#187; ') . "</abbr></label><br />\r\n";
2538
  } else {
2539
  echo "<label><input class=\"cat_checkall\" type=\"checkbox\" name=\"category[]\" value=\"" . $cat->term_id . "\"";
2540
  if ( in_array($cat->term_id, $selected) ) {
2541
+ echo " checked=\"checked\"";
2542
  }
2543
+ echo " /> <abbr title=\"" . $cat->slug . "\">" . trim(get_category_parents($cat->term_id, false, ' &#187; '), ' &#187; ') . "</abbr></label><br />\r\n";
2544
  }
2545
  $i++;
2546
  }
2701
  next($hours);
2702
  }
2703
  echo "</select>\r\n";
2704
+ echo "<strong><em style=\"color: red\">" . __('This option will be ignored if the time selected is not in the future in relation to the current time', 'subscribe2') . "</em></strong>\r\n";
2705
  if ( $scheduled_time ) {
2706
  $datetime = get_option('date_format') . ' @ ' . get_option('time_format');
2707
  echo "<p>" . __('Current UTC time is', 'subscribe2') . ": \r\n";
2715
  }
2716
  } // end display_digest_choices()
2717
 
2718
+ /**
2719
+ Create and display a dropdown list of pages
2720
+ */
2721
+ function pages_dropdown() {
2722
+ global $wpdb;
2723
+ $sql = "SELECT ID, post_title FROM $wpdb->posts WHERE post_type='page' AND post_status='publish'";
2724
+ $pages = $wpdb->get_results($sql);
2725
+
2726
+ if ( empty($pages) ) { return; }
2727
+
2728
+ echo "<select name=\"page\">\r\n";
2729
+ foreach ( $pages as $page ) {
2730
+ echo "<option value=\"" . $page->ID . "\"";
2731
+ if ( $page->ID == $this->subscribe2_options['s2page'] ) {
2732
+ echo " selected=\"selected\"";
2733
+ }
2734
+ echo ">" . $page->post_title . "</option>\r\n";
2735
+ }
2736
+ echo "</select>\r\n";
2737
+ } // end pages_dropdown()
2738
+
2739
  /**
2740
  Filter for usermeta table key names to adjust them if needed for WPMU blogs
2741
  */
3192
 
3193
  // do we have any posts?
3194
  if ( empty($posts) ) { return; }
3195
+ $this->post_count = count($posts);
3196
 
3197
  // if we have posts, let's prepare the digest
3198
  $datetime = get_option('date_format') . ' @ ' . get_option('time_format');
3295
  $scheds = (array)wp_get_schedules();
3296
  $email_freq = $this->subscribe2_options['email_freq'];
3297
  $display = $scheds[$email_freq]['display'];
3298
+ ( '' == get_option('blogname') ) ? $subject = "" : $subject = "[" . stripslashes(get_option('blogname')) . "] ";
3299
+ $subject .= $display . " " . __('Digest Email', 'subscribe2');
3300
  $mailtext = stripslashes($this->substitute($mailtext));
3301
  $mailtext = str_replace("TABLE", $table, $mailtext);
3302
  $mailtext = str_replace("POSTTIME", $message_posttime, $mailtext);
3339
  } // end s2init()
3340
 
3341
  function subscribe2() {
3342
+ global $wpdb, $table_prefix, $wp_version, $wpmu_version;
3343
 
3344
+ load_plugin_textdomain('subscribe2', 'wp-content/plugins/' . S2DIR, '/' . S2DIR);
3345
 
3346
  // Is this WordPressMU or not?
3347
  if ( isset($wpmu_version) || strpos($wp_version, 'wordpress-mu') ) {
3352
 
3353
  // do we need to install anything?
3354
  $this->public = $table_prefix . "subscribe2";
3355
+ if ( $wpdb->get_var("SHOW TABLES LIKE '$this->public'") != $this->public ) { $this->install(); }
3356
  //do we need to upgrade anything?
3357
+ if ( !$this->subscribe2_options && $this->subscribe2_options['version'] !== S2VERSION ) {
3358
  add_action('shutdown', array(&$this, 'upgrade'));
3359
  }
3360
 
3417
  add_action('pending_to_publish', array(&$this, 'publish'));
3418
  add_action('private_to_publish', array(&$this, 'publish'));
3419
  add_action('future_to_publish', array(&$this, 'publish'));
 
3420
  if ( $this->subscribe2_options['private'] == 'yes' ) {
3421
  add_action('new_to_private', array(&$this, 'publish'));
3422
  add_action('draft_to_private', array(&$this, 'publish'));
3440
  var $myemail = '';
3441
  var $signup_dates = array();
3442
  var $filtered = 0;
3443
+ var $preview_email = false;
3444
 
3445
  // state variables used to affect processing
3446
  var $action = '';
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: 2009-12-19 20:30+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"
@@ -60,739 +60,758 @@ msgid ""
60
  msgstr ""
61
 
62
  #: subscribe2.php:89
63
- msgid "Message sent!"
64
  msgstr ""
65
 
66
  #: subscribe2.php:91
 
 
 
 
67
  msgid ""
68
  "Message failed! Check your settings and check with your hosting provider"
69
  msgstr ""
70
 
71
- #: subscribe2.php:93
72
  msgid "Your email:"
73
  msgstr ""
74
 
75
- #: subscribe2.php:93
76
  msgid "Enter email address..."
77
  msgstr ""
78
 
79
- #: subscribe2.php:93 subscribe2.php:1551 subscribe2.php:1643
80
- #: subscribe2.php:2344
81
  msgid "Subscribe"
82
  msgstr ""
83
 
84
- #: subscribe2.php:93 subscribe2.php:1552 subscribe2.php:1644
85
- #: subscribe2.php:2323
86
  msgid "Unsubscribe"
87
  msgstr ""
88
 
89
- #: subscribe2.php:96
90
  msgid "No such email address is registered."
91
  msgstr ""
92
 
93
- #: subscribe2.php:98
94
  msgid "You have successfully subscribed!"
95
  msgstr ""
96
 
97
- #: subscribe2.php:100
98
  msgid "You have successfully unsubscribed."
99
  msgstr ""
100
 
101
- #: subscribe2.php:102
102
  msgid "subscribe"
103
  msgstr ""
104
 
105
- #: subscribe2.php:104
106
  msgid "unsubscribe"
107
  msgstr ""
108
 
109
- #: subscribe2.php:107
110
  msgid "Options saved!"
111
  msgstr ""
112
 
113
- #: subscribe2.php:108
114
  msgid "Options reset!"
115
  msgstr ""
116
 
117
- #: subscribe2.php:116
118
  msgid "Subscribers"
119
  msgstr ""
120
 
121
- #: subscribe2.php:119
122
  msgid "Subscribe2 Options"
123
  msgstr ""
124
 
125
- #: subscribe2.php:119 subscribe2.php:2892 subscribe2.php:3012
126
  msgid "Subscribe2"
127
  msgstr ""
128
 
129
- #: subscribe2.php:124 subscribe2.php:1831
130
  msgid "Subscriptions"
131
  msgstr ""
132
 
133
- #: subscribe2.php:128
134
  msgid "Mail Subscribers"
135
  msgstr ""
136
 
137
- #: subscribe2.php:811
138
  msgid "New subscription"
139
  msgstr ""
140
 
141
- #: subscribe2.php:813
142
  msgid "subscribed to email notifications!"
143
  msgstr ""
144
 
145
- #: subscribe2.php:828
146
  msgid "New Unsubscription"
147
  msgstr ""
148
 
149
- #: subscribe2.php:830
150
  msgid "unsubscribed from email notifications!"
151
  msgstr ""
152
 
153
- #: subscribe2.php:1366
154
  msgid "Address(es) subscribed!"
155
  msgstr ""
156
 
157
- #: subscribe2.php:1369
158
  msgid "Address(es) unsubscribed!"
159
  msgstr ""
160
 
161
- #: subscribe2.php:1379
162
  msgid "Address(es) deleted!"
163
  msgstr ""
164
 
165
- #: subscribe2.php:1385 subscribe2.php:1391
166
  msgid "Status changed!"
167
  msgstr ""
168
 
169
- #: subscribe2.php:1405
170
  msgid "Reminder Email(s) Sent!"
171
  msgstr ""
172
 
173
- #: subscribe2.php:1408
174
  msgid "Registered Users Subscribed!"
175
  msgstr ""
176
 
177
- #: subscribe2.php:1411
178
  msgid "Registered Users Unsubscribed!"
179
  msgstr ""
180
 
181
- #: subscribe2.php:1420
182
  msgid "Format updated for Registered Users!"
183
  msgstr ""
184
 
185
- #: subscribe2.php:1515
186
  msgid "Previous Page"
187
  msgstr ""
188
 
189
- #: subscribe2.php:1535
190
  msgid "Next Page"
191
  msgstr ""
192
 
193
- #: subscribe2.php:1542
194
  msgid "Manage Subscribers"
195
  msgstr ""
196
 
197
- #: subscribe2.php:1547
198
  msgid "Add/Remove Subscribers"
199
  msgstr ""
200
 
201
- #: subscribe2.php:1548
202
  msgid "Enter addresses, one per line or comma-separated"
203
  msgstr ""
204
 
205
- #: subscribe2.php:1555
206
  msgid "Current Subscribers"
207
  msgstr ""
208
 
209
- #: subscribe2.php:1557
210
  msgid "Filter"
211
  msgstr ""
212
 
213
- #: subscribe2.php:1564
214
  msgid "Search Subscribers"
215
  msgstr ""
216
 
217
- #: subscribe2.php:1567
218
  msgid "Send Reminder Email"
219
  msgstr ""
220
 
221
- #: subscribe2.php:1572
222
  msgid "Save Emails to CSV File"
223
  msgstr ""
224
 
225
- #: subscribe2.php:1578 subscribe2.php:1632
226
  msgid "Process"
227
  msgstr ""
228
 
229
- #: subscribe2.php:1587 subscribe2.php:1609
230
  msgid "Confirm this email address"
231
  msgstr ""
232
 
233
- #: subscribe2.php:1589 subscribe2.php:1602
234
  msgid "Unconfirm this email address"
235
  msgstr ""
236
 
237
- #: subscribe2.php:1591 subscribe2.php:1604 subscribe2.php:1612
238
  msgid "Delete this email address"
239
  msgstr ""
240
 
241
- #: subscribe2.php:1595 subscribe2.php:2459
242
  msgid "Select / Unselect All"
243
  msgstr ""
244
 
245
- #: subscribe2.php:1619
246
  msgid "edit"
247
  msgstr ""
248
 
249
- #: subscribe2.php:1626
250
  msgid "No matching subscribers found"
251
  msgstr ""
252
 
253
- #: subscribe2.php:1628
254
  msgid "NONE"
255
  msgstr ""
256
 
257
- #: subscribe2.php:1638
258
  msgid "Categories"
259
  msgstr ""
260
 
261
- #: subscribe2.php:1639
262
  msgid ""
263
  "Preferences for all existing Registered Users can be changed using this "
264
  "section."
265
  msgstr ""
266
 
267
- #: subscribe2.php:1640
268
  msgid "Consider User Privacy as changes cannot be undone"
269
  msgstr ""
270
 
271
- #: subscribe2.php:1642
272
  msgid "Action to perform"
273
  msgstr ""
274
 
275
- #: subscribe2.php:1647
276
  msgid "Bulk Update Categories"
277
  msgstr ""
278
 
279
- #: subscribe2.php:1649
280
  msgid "Send email as"
281
  msgstr ""
282
 
283
- #: subscribe2.php:1650 subscribe2.php:2066 subscribe2.php:2210
284
- msgid "Plain Text - Excerpt"
285
  msgstr ""
286
 
287
- #: subscribe2.php:1651 subscribe2.php:2061 subscribe2.php:2205
 
 
 
 
288
  msgid "Plain Text - Full"
289
  msgstr ""
290
 
291
- #: subscribe2.php:1652 subscribe2.php:2056 subscribe2.php:2200
292
- msgid "HTML"
293
  msgstr ""
294
 
295
- #: subscribe2.php:1653
296
  msgid "Bulk Update Format"
297
  msgstr ""
298
 
299
- #: subscribe2.php:1803
 
 
 
 
300
  msgid "Subscribe2 Settings"
301
  msgstr ""
302
 
303
- #: subscribe2.php:1804
304
  msgid "Plugin Blog"
305
  msgstr ""
306
 
307
- #: subscribe2.php:1805
308
  msgid "Support Forum"
309
  msgstr ""
310
 
311
- #: subscribe2.php:1806
312
  msgid "Make a donation via PayPal"
313
  msgstr ""
314
 
315
- #: subscribe2.php:1817 subscribe2.php:2183
316
  msgid "Notification Settings"
317
  msgstr ""
318
 
319
- #: subscribe2.php:1818
320
  msgid "Restrict the number of recipients per email to (0 for unlimited)"
321
  msgstr ""
322
 
323
- #: subscribe2.php:1820 subscribe2.php:1973 subscribe2.php:1982
324
  msgid "Edit"
325
  msgstr ""
326
 
327
- #: subscribe2.php:1823 subscribe2.php:1976 subscribe2.php:1985
328
  msgid "Update"
329
  msgstr ""
330
 
331
- #: subscribe2.php:1824 subscribe2.php:1977 subscribe2.php:1986
332
  msgid "Revert"
333
  msgstr ""
334
 
335
- #: subscribe2.php:1826
336
  msgid "Send Admins notifications for new"
337
  msgstr ""
338
 
339
- #: subscribe2.php:1836
340
  msgid "Unsubscriptions"
341
  msgstr ""
342
 
343
- #: subscribe2.php:1841
344
  msgid "Both"
345
  msgstr ""
346
 
347
- #: subscribe2.php:1846
348
  msgid "Neither"
349
  msgstr ""
350
 
351
- #: subscribe2.php:1848
352
  msgid "Include theme CSS stylesheet in HTML notifications"
353
  msgstr ""
354
 
355
- #: subscribe2.php:1853 subscribe2.php:1865 subscribe2.php:1876
356
- #: subscribe2.php:1887 subscribe2.php:2034 subscribe2.php:2045
357
- #: subscribe2.php:2072 subscribe2.php:2088 subscribe2.php:2218
358
- #: subscribe2.php:2254
359
  msgid "Yes"
360
  msgstr ""
361
 
362
- #: subscribe2.php:1858 subscribe2.php:1870 subscribe2.php:1881
363
- #: subscribe2.php:1892 subscribe2.php:2028 subscribe2.php:2039
364
- #: subscribe2.php:2050 subscribe2.php:2077 subscribe2.php:2093
365
- #: subscribe2.php:2223 subscribe2.php:2258
366
  msgid "No"
367
  msgstr ""
368
 
369
- #: subscribe2.php:1860
370
  msgid "Send Emails for Pages"
371
  msgstr ""
372
 
373
- #: subscribe2.php:1871
374
  msgid "Send Emails for Password Protected Posts"
375
  msgstr ""
376
 
377
- #: subscribe2.php:1882
378
  msgid "Send Emails for Private Posts"
379
  msgstr ""
380
 
381
- #: subscribe2.php:1893
382
  msgid "Send Email From"
383
  msgstr ""
384
 
385
- #: subscribe2.php:1898
386
  msgid "Send Emails"
387
  msgstr ""
388
 
389
- #: subscribe2.php:1900
390
  msgid "For digest notifications, date order for posts is"
391
  msgstr ""
392
 
393
- #: subscribe2.php:1905
394
  msgid "Descending"
395
  msgstr ""
396
 
397
- #: subscribe2.php:1910
398
  msgid "Ascending"
399
  msgstr ""
400
 
401
- #: subscribe2.php:1914
402
  msgid "Email Templates"
403
  msgstr ""
404
 
405
- #: subscribe2.php:1918
406
  msgid "New Post email (must not be empty)"
407
  msgstr ""
408
 
409
- #: subscribe2.php:1919 subscribe2.php:1944 subscribe2.php:1949
410
  msgid "Subject Line"
411
  msgstr ""
412
 
413
- #: subscribe2.php:1924
414
  msgid "Send Email Preview"
415
  msgstr ""
416
 
417
- #: subscribe2.php:1925
418
  msgid "Message substitions"
419
  msgstr ""
420
 
421
- #: subscribe2.php:1929
422
  msgid "the post's title<br />(<i>for per-post emails only</i>)"
423
  msgstr ""
424
 
425
- #: subscribe2.php:1930
426
  msgid ""
427
  "the excerpt or the entire post<br />(<i>based on the subscriber's "
428
  "preferences</i>)"
429
  msgstr ""
430
 
431
- #: subscribe2.php:1931
432
  msgid ""
433
  "the excerpt of the post and the time it was posted<br />(<i>for digest "
434
  "emails only</i>)"
435
  msgstr ""
436
 
437
- #: subscribe2.php:1932
438
  msgid "a list of post titles<br />(<i>for digest emails only</i>)"
439
  msgstr ""
440
 
441
- #: subscribe2.php:1933
442
  msgid "the post's permalink<br />(<i>for per-post emails only</i>)"
443
  msgstr ""
444
 
445
- #: subscribe2.php:1934
446
  msgid ""
447
  "the post's permalink after conversion by TinyURL<br />(<i>for per-post "
448
  "emails only</i>)"
449
  msgstr ""
450
 
451
- #: subscribe2.php:1935
452
  msgid "the admin or post author's name"
453
  msgstr ""
454
 
455
- #: subscribe2.php:1936
456
  msgid "the admin or post author's email"
457
  msgstr ""
458
 
459
- #: subscribe2.php:1937
460
  msgid "the post author's name"
461
  msgstr ""
462
 
463
- #: subscribe2.php:1938
464
  msgid ""
465
  "the generated link to confirm a request<br />(<i>only used in the "
466
  "confirmation email template</i>)"
467
  msgstr ""
468
 
469
- #: subscribe2.php:1939
470
  msgid ""
471
  "Action performed by LINK in confirmation email<br />(<i>only used in the "
472
  "confirmation email template</i>)"
473
  msgstr ""
474
 
475
- #: subscribe2.php:1940
476
  msgid "the post's assigned categories"
477
  msgstr ""
478
 
479
- #: subscribe2.php:1941
480
  msgid "the post's assigned Tags"
481
  msgstr ""
482
 
483
- #: subscribe2.php:1943
 
 
 
 
 
 
484
  msgid "Subscribe / Unsubscribe confirmation email"
485
  msgstr ""
486
 
487
- #: subscribe2.php:1948
488
  msgid "Reminder email to Unconfirmed Subscribers"
489
  msgstr ""
490
 
491
- #: subscribe2.php:1955
492
  msgid "Excluded Categories"
493
  msgstr ""
494
 
495
- #: subscribe2.php:1957
496
  msgid ""
497
  "Posts assigned to any Excluded Category do not generate notifications and "
498
  "are not included in digest notifications"
499
  msgstr ""
500
 
501
- #: subscribe2.php:1964
502
  msgid "Allow registered users to subscribe to excluded categories?"
503
  msgstr ""
504
 
505
- #: subscribe2.php:1967
506
  msgid "Appearance"
507
  msgstr ""
508
 
509
- #: subscribe2.php:1971
510
  msgid "Set default Subscribe2 page as ID"
511
  msgstr ""
512
 
513
- #: subscribe2.php:1980
514
  msgid "Set the number of Subscribers displayed per page"
515
  msgstr ""
516
 
517
- #: subscribe2.php:1993
518
  msgid "Show a link to your subscription page in \"meta\"?"
519
  msgstr ""
520
 
521
- #: subscribe2.php:2000
522
  msgid "Show the Subscribe2 button on the Write toolbar?"
523
  msgstr ""
524
 
525
- #: subscribe2.php:2007
526
  msgid "Enable Subscribe2 Widget?"
527
  msgstr ""
528
 
529
- #: subscribe2.php:2011
530
  msgid "Auto Subscribe"
531
  msgstr ""
532
 
533
- #: subscribe2.php:2013
534
  msgid "Subscribe new users registering with your blog"
535
  msgstr ""
536
 
537
- #: subscribe2.php:2018
538
  msgid "Automatically"
539
  msgstr ""
540
 
541
- #: subscribe2.php:2023
542
  msgid "Display option on Registration Form"
543
  msgstr ""
544
 
545
- #: subscribe2.php:2029
546
  msgid "Auto-subscribe includes any excluded categories"
547
  msgstr ""
548
 
549
- #: subscribe2.php:2040
550
  msgid "Registration Form option is checked by default"
551
  msgstr ""
552
 
553
- #: subscribe2.php:2051
554
  msgid "Auto-subscribe users to receive email as"
555
  msgstr ""
556
 
557
- #: subscribe2.php:2067
558
  msgid "Registered Users have the option to auto-subscribe to new categories"
559
  msgstr ""
560
 
561
- #: subscribe2.php:2082
562
  msgid "New categories are immediately excluded"
563
  msgstr ""
564
 
565
- #: subscribe2.php:2083
566
  msgid ""
567
  "Option for Registered Users to auto-subscribe to new categories is checked "
568
  "by default"
569
  msgstr ""
570
 
571
- #: subscribe2.php:2097
572
  msgid "Barred Domains"
573
  msgstr ""
574
 
575
- #: subscribe2.php:2099
576
  msgid ""
577
  "Enter domains to bar from public subscriptions: <br /> (Use a new line for "
578
  "each entry and omit the \"@\" symbol, for example email.com)"
579
  msgstr ""
580
 
581
- #: subscribe2.php:2104
582
  msgid "Submit"
583
  msgstr ""
584
 
585
- #: subscribe2.php:2107
586
  msgid "Reset Default"
587
  msgstr ""
588
 
589
- #: subscribe2.php:2108
590
  msgid ""
591
  "Use this to reset all options to their defaults. This <strong><em>will not</"
592
  "em></strong> modify your list of subscribers."
593
  msgstr ""
594
 
595
- #: subscribe2.php:2110
596
  msgid "RESET"
597
  msgstr ""
598
 
599
- #: subscribe2.php:2136
600
  msgid "Subscription preferences updated."
601
  msgstr ""
602
 
603
- #: subscribe2.php:2186
604
  msgid "Editing Subscribe2 preferences for user"
605
  msgstr ""
606
 
607
- #: subscribe2.php:2195
608
  msgid "Receive email as"
609
  msgstr ""
610
 
611
- #: subscribe2.php:2213
612
  msgid "Automatically subscribe me to newly created categories"
613
  msgstr ""
614
 
615
- #: subscribe2.php:2234
616
  msgid "Unsubscribe me from this blog"
617
  msgstr ""
618
 
619
- #: subscribe2.php:2238
620
  msgid "Subscribe to all categories"
621
  msgstr ""
622
 
623
- #: subscribe2.php:2240
624
  msgid "Subscribed Categories on"
625
  msgstr ""
626
 
627
- #: subscribe2.php:2242
628
  msgid "Subscribed Categories"
629
  msgstr ""
630
 
631
- #: subscribe2.php:2248
632
  msgid "Receive periodic summaries of new posts?"
633
  msgstr ""
634
 
635
- #: subscribe2.php:2263
636
  msgid "Update Preferences"
637
  msgstr ""
638
 
639
- #: subscribe2.php:2312
640
  msgid "Subscribed Blogs"
641
  msgstr ""
642
 
643
- #: subscribe2.php:2317 subscribe2.php:2338
644
  msgid "Viewing Settings Now"
645
  msgstr ""
646
 
647
- #: subscribe2.php:2321 subscribe2.php:2342
648
  msgid "View Settings"
649
  msgstr ""
650
 
651
- #: subscribe2.php:2333
652
  msgid "Subscribe to new blogs"
653
  msgstr ""
654
 
655
- #: subscribe2.php:2406
656
  msgid "Send an email to subscribers"
657
  msgstr ""
658
 
659
- #: subscribe2.php:2414
660
  msgid "A message from"
661
  msgstr ""
662
 
663
- #: subscribe2.php:2416
664
  msgid "Subject"
665
  msgstr ""
666
 
667
- #: subscribe2.php:2419
668
  msgid "Recipients:"
669
  msgstr ""
670
 
671
- #: subscribe2.php:2423
672
  msgid "Send"
673
  msgstr ""
674
 
675
- #: subscribe2.php:2494
676
  msgid "All Users and Subscribers"
677
  msgstr ""
678
 
679
- #: subscribe2.php:2495
680
  msgid "Public Subscribers"
681
  msgstr ""
682
 
683
- #: subscribe2.php:2496
684
  msgid "Confirmed"
685
  msgstr ""
686
 
687
- #: subscribe2.php:2497
688
  msgid "Unconfirmed"
689
  msgstr ""
690
 
691
- #: subscribe2.php:2498
692
  msgid "All Registered Users"
693
  msgstr ""
694
 
695
- #: subscribe2.php:2499
696
  msgid "Registered Subscribers"
697
  msgstr ""
698
 
699
- #: subscribe2.php:2610
700
  msgid "For each Post"
701
  msgstr ""
702
 
703
- #: subscribe2.php:2627
704
  msgid "Send Digest Notification at"
705
  msgstr ""
706
 
707
- #: subscribe2.php:2639
708
  msgid ""
709
- "This option will work for digest notification sent daily or less frequently"
 
710
  msgstr ""
711
 
712
- #: subscribe2.php:2642
713
  msgid "Current UTC time is"
714
  msgstr ""
715
 
716
- #: subscribe2.php:2644
717
  msgid "Current blog time is"
718
  msgstr ""
719
 
720
- #: subscribe2.php:2646
721
  msgid "Next email notification will be sent when your blog time is after"
722
  msgstr ""
723
 
724
- #: subscribe2.php:2677
725
  msgid "Settings"
726
  msgstr ""
727
 
728
- #: subscribe2.php:2678
729
  msgid "Donate"
730
  msgstr ""
731
 
732
- #: subscribe2.php:2679
733
  msgid "Forum"
734
  msgstr ""
735
 
736
- #: subscribe2.php:2690
737
  msgid "Check here to Subscribe to email notifications for new posts"
738
  msgstr ""
739
 
740
- #: subscribe2.php:2699
741
  msgid ""
742
  "By registering with this blog you are also agreeing to receive email "
743
  "notifications for new posts but you can unsubscribe at anytime"
744
  msgstr ""
745
 
746
- #: subscribe2.php:2720 subscribe2.php:2721 subscribe2.php:2749
747
  msgid "Subscribe2 Notification Override"
748
  msgstr ""
749
 
750
- #: subscribe2.php:2735
751
  msgid ""
752
  "Check here to disable sending of an email notification for this post/page"
753
  msgstr ""
754
 
755
- #: subscribe2.php:2878
756
  msgid "Subscription Confirmation"
757
  msgstr ""
758
 
759
- #: subscribe2.php:2930
760
  msgid "Title"
761
  msgstr ""
762
 
763
- #: subscribe2.php:2932
764
  msgid "Div class name"
765
  msgstr ""
766
 
767
- #: subscribe2.php:2934
768
  msgid "Pre-Content"
769
  msgstr ""
770
 
771
- #: subscribe2.php:2936
772
  msgid "Post-Content"
773
  msgstr ""
774
 
775
- #: subscribe2.php:2986
776
  msgid "[Un]Subscribe to Posts"
777
  msgstr ""
778
 
779
- #: subscribe2.php:3064
780
  msgid "Weekly"
781
  msgstr ""
782
 
783
- #: subscribe2.php:3149
784
  msgid "Posted on"
785
  msgstr ""
786
 
787
- #: subscribe2.php:3153 subscribe2.php:3154
788
  msgid "Posted in"
789
  msgstr ""
790
 
791
- #: subscribe2.php:3159 subscribe2.php:3160
792
  msgid "Tagged as"
793
  msgstr ""
794
 
795
- #: subscribe2.php:3211
796
  msgid "Digest Email"
797
  msgstr ""
798
 
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
  "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2010-01-30 14:32+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"
60
  msgstr ""
61
 
62
  #: subscribe2.php:89
63
+ msgid "You must to create a WordPress page for this plugin to work correctly."
64
  msgstr ""
65
 
66
  #: subscribe2.php:91
67
+ msgid "Message sent!"
68
+ msgstr ""
69
+
70
+ #: subscribe2.php:93
71
  msgid ""
72
  "Message failed! Check your settings and check with your hosting provider"
73
  msgstr ""
74
 
75
+ #: subscribe2.php:95
76
  msgid "Your email:"
77
  msgstr ""
78
 
79
+ #: subscribe2.php:95
80
  msgid "Enter email address..."
81
  msgstr ""
82
 
83
+ #: subscribe2.php:95 subscribe2.php:1587 subscribe2.php:1679
84
+ #: subscribe2.php:2409
85
  msgid "Subscribe"
86
  msgstr ""
87
 
88
+ #: subscribe2.php:95 subscribe2.php:1588 subscribe2.php:1680
89
+ #: subscribe2.php:2388
90
  msgid "Unsubscribe"
91
  msgstr ""
92
 
93
+ #: subscribe2.php:98
94
  msgid "No such email address is registered."
95
  msgstr ""
96
 
97
+ #: subscribe2.php:100
98
  msgid "You have successfully subscribed!"
99
  msgstr ""
100
 
101
+ #: subscribe2.php:102
102
  msgid "You have successfully unsubscribed."
103
  msgstr ""
104
 
105
+ #: subscribe2.php:104
106
  msgid "subscribe"
107
  msgstr ""
108
 
109
+ #: subscribe2.php:106
110
  msgid "unsubscribe"
111
  msgstr ""
112
 
113
+ #: subscribe2.php:109
114
  msgid "Options saved!"
115
  msgstr ""
116
 
117
+ #: subscribe2.php:110
118
  msgid "Options reset!"
119
  msgstr ""
120
 
121
+ #: subscribe2.php:118
122
  msgid "Subscribers"
123
  msgstr ""
124
 
125
+ #: subscribe2.php:121
126
  msgid "Subscribe2 Options"
127
  msgstr ""
128
 
129
+ #: subscribe2.php:121 subscribe2.php:2978 subscribe2.php:3098
130
  msgid "Subscribe2"
131
  msgstr ""
132
 
133
+ #: subscribe2.php:126 subscribe2.php:1890
134
  msgid "Subscriptions"
135
  msgstr ""
136
 
137
+ #: subscribe2.php:130
138
  msgid "Mail Subscribers"
139
  msgstr ""
140
 
141
+ #: subscribe2.php:845
142
  msgid "New subscription"
143
  msgstr ""
144
 
145
+ #: subscribe2.php:847
146
  msgid "subscribed to email notifications!"
147
  msgstr ""
148
 
149
+ #: subscribe2.php:862
150
  msgid "New Unsubscription"
151
  msgstr ""
152
 
153
+ #: subscribe2.php:864
154
  msgid "unsubscribed from email notifications!"
155
  msgstr ""
156
 
157
+ #: subscribe2.php:1402
158
  msgid "Address(es) subscribed!"
159
  msgstr ""
160
 
161
+ #: subscribe2.php:1405
162
  msgid "Address(es) unsubscribed!"
163
  msgstr ""
164
 
165
+ #: subscribe2.php:1415
166
  msgid "Address(es) deleted!"
167
  msgstr ""
168
 
169
+ #: subscribe2.php:1421 subscribe2.php:1427
170
  msgid "Status changed!"
171
  msgstr ""
172
 
173
+ #: subscribe2.php:1441
174
  msgid "Reminder Email(s) Sent!"
175
  msgstr ""
176
 
177
+ #: subscribe2.php:1444
178
  msgid "Registered Users Subscribed!"
179
  msgstr ""
180
 
181
+ #: subscribe2.php:1447
182
  msgid "Registered Users Unsubscribed!"
183
  msgstr ""
184
 
185
+ #: subscribe2.php:1456
186
  msgid "Format updated for Registered Users!"
187
  msgstr ""
188
 
189
+ #: subscribe2.php:1551
190
  msgid "Previous Page"
191
  msgstr ""
192
 
193
+ #: subscribe2.php:1571
194
  msgid "Next Page"
195
  msgstr ""
196
 
197
+ #: subscribe2.php:1578
198
  msgid "Manage Subscribers"
199
  msgstr ""
200
 
201
+ #: subscribe2.php:1583
202
  msgid "Add/Remove Subscribers"
203
  msgstr ""
204
 
205
+ #: subscribe2.php:1584
206
  msgid "Enter addresses, one per line or comma-separated"
207
  msgstr ""
208
 
209
+ #: subscribe2.php:1591
210
  msgid "Current Subscribers"
211
  msgstr ""
212
 
213
+ #: subscribe2.php:1593
214
  msgid "Filter"
215
  msgstr ""
216
 
217
+ #: subscribe2.php:1598
218
  msgid "Search Subscribers"
219
  msgstr ""
220
 
221
+ #: subscribe2.php:1601
222
  msgid "Send Reminder Email"
223
  msgstr ""
224
 
225
+ #: subscribe2.php:1608
226
  msgid "Save Emails to CSV File"
227
  msgstr ""
228
 
229
+ #: subscribe2.php:1614 subscribe2.php:1668
230
  msgid "Process"
231
  msgstr ""
232
 
233
+ #: subscribe2.php:1623 subscribe2.php:1645
234
  msgid "Confirm this email address"
235
  msgstr ""
236
 
237
+ #: subscribe2.php:1625 subscribe2.php:1638
238
  msgid "Unconfirm this email address"
239
  msgstr ""
240
 
241
+ #: subscribe2.php:1627 subscribe2.php:1640 subscribe2.php:1648
242
  msgid "Delete this email address"
243
  msgstr ""
244
 
245
+ #: subscribe2.php:1631 subscribe2.php:2524
246
  msgid "Select / Unselect All"
247
  msgstr ""
248
 
249
+ #: subscribe2.php:1655
250
  msgid "edit"
251
  msgstr ""
252
 
253
+ #: subscribe2.php:1662
254
  msgid "No matching subscribers found"
255
  msgstr ""
256
 
257
+ #: subscribe2.php:1664
258
  msgid "NONE"
259
  msgstr ""
260
 
261
+ #: subscribe2.php:1674
262
  msgid "Categories"
263
  msgstr ""
264
 
265
+ #: subscribe2.php:1675
266
  msgid ""
267
  "Preferences for all existing Registered Users can be changed using this "
268
  "section."
269
  msgstr ""
270
 
271
+ #: subscribe2.php:1676
272
  msgid "Consider User Privacy as changes cannot be undone"
273
  msgstr ""
274
 
275
+ #: subscribe2.php:1678
276
  msgid "Action to perform"
277
  msgstr ""
278
 
279
+ #: subscribe2.php:1683
280
  msgid "Bulk Update Categories"
281
  msgstr ""
282
 
283
+ #: subscribe2.php:1685
284
  msgid "Send email as"
285
  msgstr ""
286
 
287
+ #: subscribe2.php:1686 subscribe2.php:2111 subscribe2.php:2260
288
+ msgid "HTML - Full"
289
  msgstr ""
290
 
291
+ #: subscribe2.php:1687 subscribe2.php:2116 subscribe2.php:2265
292
+ msgid "HTML - Excerpt"
293
+ msgstr ""
294
+
295
+ #: subscribe2.php:1688 subscribe2.php:2121 subscribe2.php:2270
296
  msgid "Plain Text - Full"
297
  msgstr ""
298
 
299
+ #: subscribe2.php:1689 subscribe2.php:2126 subscribe2.php:2275
300
+ msgid "Plain Text - Excerpt"
301
  msgstr ""
302
 
303
+ #: subscribe2.php:1690
304
  msgid "Bulk Update Format"
305
  msgstr ""
306
 
307
+ #: subscribe2.php:1726
308
+ msgid "Preview message(s) sent to logged in user"
309
+ msgstr ""
310
+
311
+ #: subscribe2.php:1862
312
  msgid "Subscribe2 Settings"
313
  msgstr ""
314
 
315
+ #: subscribe2.php:1863
316
  msgid "Plugin Blog"
317
  msgstr ""
318
 
319
+ #: subscribe2.php:1864
320
  msgid "Support Forum"
321
  msgstr ""
322
 
323
+ #: subscribe2.php:1865
324
  msgid "Make a donation via PayPal"
325
  msgstr ""
326
 
327
+ #: subscribe2.php:1876 subscribe2.php:2243
328
  msgid "Notification Settings"
329
  msgstr ""
330
 
331
+ #: subscribe2.php:1877
332
  msgid "Restrict the number of recipients per email to (0 for unlimited)"
333
  msgstr ""
334
 
335
+ #: subscribe2.php:1879 subscribe2.php:2037
336
  msgid "Edit"
337
  msgstr ""
338
 
339
+ #: subscribe2.php:1882 subscribe2.php:2040
340
  msgid "Update"
341
  msgstr ""
342
 
343
+ #: subscribe2.php:1883 subscribe2.php:2041
344
  msgid "Revert"
345
  msgstr ""
346
 
347
+ #: subscribe2.php:1885
348
  msgid "Send Admins notifications for new"
349
  msgstr ""
350
 
351
+ #: subscribe2.php:1895
352
  msgid "Unsubscriptions"
353
  msgstr ""
354
 
355
+ #: subscribe2.php:1900
356
  msgid "Both"
357
  msgstr ""
358
 
359
+ #: subscribe2.php:1905
360
  msgid "Neither"
361
  msgstr ""
362
 
363
+ #: subscribe2.php:1907
364
  msgid "Include theme CSS stylesheet in HTML notifications"
365
  msgstr ""
366
 
367
+ #: subscribe2.php:1912 subscribe2.php:1924 subscribe2.php:1935
368
+ #: subscribe2.php:1946 subscribe2.php:2089 subscribe2.php:2100
369
+ #: subscribe2.php:2132 subscribe2.php:2148 subscribe2.php:2283
370
+ #: subscribe2.php:2319
371
  msgid "Yes"
372
  msgstr ""
373
 
374
+ #: subscribe2.php:1917 subscribe2.php:1929 subscribe2.php:1940
375
+ #: subscribe2.php:1951 subscribe2.php:2083 subscribe2.php:2094
376
+ #: subscribe2.php:2105 subscribe2.php:2137 subscribe2.php:2153
377
+ #: subscribe2.php:2288 subscribe2.php:2323
378
  msgid "No"
379
  msgstr ""
380
 
381
+ #: subscribe2.php:1919
382
  msgid "Send Emails for Pages"
383
  msgstr ""
384
 
385
+ #: subscribe2.php:1930
386
  msgid "Send Emails for Password Protected Posts"
387
  msgstr ""
388
 
389
+ #: subscribe2.php:1941
390
  msgid "Send Emails for Private Posts"
391
  msgstr ""
392
 
393
+ #: subscribe2.php:1952
394
  msgid "Send Email From"
395
  msgstr ""
396
 
397
+ #: subscribe2.php:1957
398
  msgid "Send Emails"
399
  msgstr ""
400
 
401
+ #: subscribe2.php:1959
402
  msgid "For digest notifications, date order for posts is"
403
  msgstr ""
404
 
405
+ #: subscribe2.php:1964
406
  msgid "Descending"
407
  msgstr ""
408
 
409
+ #: subscribe2.php:1969
410
  msgid "Ascending"
411
  msgstr ""
412
 
413
+ #: subscribe2.php:1973
414
  msgid "Email Templates"
415
  msgstr ""
416
 
417
+ #: subscribe2.php:1977
418
  msgid "New Post email (must not be empty)"
419
  msgstr ""
420
 
421
+ #: subscribe2.php:1978 subscribe2.php:2004 subscribe2.php:2009
422
  msgid "Subject Line"
423
  msgstr ""
424
 
425
+ #: subscribe2.php:1983
426
  msgid "Send Email Preview"
427
  msgstr ""
428
 
429
+ #: subscribe2.php:1984
430
  msgid "Message substitions"
431
  msgstr ""
432
 
433
+ #: subscribe2.php:1988
434
  msgid "the post's title<br />(<i>for per-post emails only</i>)"
435
  msgstr ""
436
 
437
+ #: subscribe2.php:1989
438
  msgid ""
439
  "the excerpt or the entire post<br />(<i>based on the subscriber's "
440
  "preferences</i>)"
441
  msgstr ""
442
 
443
+ #: subscribe2.php:1990
444
  msgid ""
445
  "the excerpt of the post and the time it was posted<br />(<i>for digest "
446
  "emails only</i>)"
447
  msgstr ""
448
 
449
+ #: subscribe2.php:1991
450
  msgid "a list of post titles<br />(<i>for digest emails only</i>)"
451
  msgstr ""
452
 
453
+ #: subscribe2.php:1992
454
  msgid "the post's permalink<br />(<i>for per-post emails only</i>)"
455
  msgstr ""
456
 
457
+ #: subscribe2.php:1993
458
  msgid ""
459
  "the post's permalink after conversion by TinyURL<br />(<i>for per-post "
460
  "emails only</i>)"
461
  msgstr ""
462
 
463
+ #: subscribe2.php:1994
464
  msgid "the admin or post author's name"
465
  msgstr ""
466
 
467
+ #: subscribe2.php:1995
468
  msgid "the admin or post author's email"
469
  msgstr ""
470
 
471
+ #: subscribe2.php:1996
472
  msgid "the post author's name"
473
  msgstr ""
474
 
475
+ #: subscribe2.php:1997
476
  msgid ""
477
  "the generated link to confirm a request<br />(<i>only used in the "
478
  "confirmation email template</i>)"
479
  msgstr ""
480
 
481
+ #: subscribe2.php:1998
482
  msgid ""
483
  "Action performed by LINK in confirmation email<br />(<i>only used in the "
484
  "confirmation email template</i>)"
485
  msgstr ""
486
 
487
+ #: subscribe2.php:1999
488
  msgid "the post's assigned categories"
489
  msgstr ""
490
 
491
+ #: subscribe2.php:2000
492
  msgid "the post's assigned Tags"
493
  msgstr ""
494
 
495
+ #: subscribe2.php:2001
496
+ msgid ""
497
+ "the number of posts included in the digest email<br />(<i>for digest emails "
498
+ "only</i>)"
499
+ msgstr ""
500
+
501
+ #: subscribe2.php:2003
502
  msgid "Subscribe / Unsubscribe confirmation email"
503
  msgstr ""
504
 
505
+ #: subscribe2.php:2008
506
  msgid "Reminder email to Unconfirmed Subscribers"
507
  msgstr ""
508
 
509
+ #: subscribe2.php:2015
510
  msgid "Excluded Categories"
511
  msgstr ""
512
 
513
+ #: subscribe2.php:2017
514
  msgid ""
515
  "Posts assigned to any Excluded Category do not generate notifications and "
516
  "are not included in digest notifications"
517
  msgstr ""
518
 
519
+ #: subscribe2.php:2024
520
  msgid "Allow registered users to subscribe to excluded categories?"
521
  msgstr ""
522
 
523
+ #: subscribe2.php:2027
524
  msgid "Appearance"
525
  msgstr ""
526
 
527
+ #: subscribe2.php:2031
528
  msgid "Set default Subscribe2 page as ID"
529
  msgstr ""
530
 
531
+ #: subscribe2.php:2035
532
  msgid "Set the number of Subscribers displayed per page"
533
  msgstr ""
534
 
535
+ #: subscribe2.php:2048
536
  msgid "Show a link to your subscription page in \"meta\"?"
537
  msgstr ""
538
 
539
+ #: subscribe2.php:2055
540
  msgid "Show the Subscribe2 button on the Write toolbar?"
541
  msgstr ""
542
 
543
+ #: subscribe2.php:2062
544
  msgid "Enable Subscribe2 Widget?"
545
  msgstr ""
546
 
547
+ #: subscribe2.php:2066
548
  msgid "Auto Subscribe"
549
  msgstr ""
550
 
551
+ #: subscribe2.php:2068
552
  msgid "Subscribe new users registering with your blog"
553
  msgstr ""
554
 
555
+ #: subscribe2.php:2073
556
  msgid "Automatically"
557
  msgstr ""
558
 
559
+ #: subscribe2.php:2078
560
  msgid "Display option on Registration Form"
561
  msgstr ""
562
 
563
+ #: subscribe2.php:2084
564
  msgid "Auto-subscribe includes any excluded categories"
565
  msgstr ""
566
 
567
+ #: subscribe2.php:2095
568
  msgid "Registration Form option is checked by default"
569
  msgstr ""
570
 
571
+ #: subscribe2.php:2106
572
  msgid "Auto-subscribe users to receive email as"
573
  msgstr ""
574
 
575
+ #: subscribe2.php:2127
576
  msgid "Registered Users have the option to auto-subscribe to new categories"
577
  msgstr ""
578
 
579
+ #: subscribe2.php:2142
580
  msgid "New categories are immediately excluded"
581
  msgstr ""
582
 
583
+ #: subscribe2.php:2143
584
  msgid ""
585
  "Option for Registered Users to auto-subscribe to new categories is checked "
586
  "by default"
587
  msgstr ""
588
 
589
+ #: subscribe2.php:2157
590
  msgid "Barred Domains"
591
  msgstr ""
592
 
593
+ #: subscribe2.php:2159
594
  msgid ""
595
  "Enter domains to bar from public subscriptions: <br /> (Use a new line for "
596
  "each entry and omit the \"@\" symbol, for example email.com)"
597
  msgstr ""
598
 
599
+ #: subscribe2.php:2164
600
  msgid "Submit"
601
  msgstr ""
602
 
603
+ #: subscribe2.php:2167
604
  msgid "Reset Default"
605
  msgstr ""
606
 
607
+ #: subscribe2.php:2168
608
  msgid ""
609
  "Use this to reset all options to their defaults. This <strong><em>will not</"
610
  "em></strong> modify your list of subscribers."
611
  msgstr ""
612
 
613
+ #: subscribe2.php:2170
614
  msgid "RESET"
615
  msgstr ""
616
 
617
+ #: subscribe2.php:2196
618
  msgid "Subscription preferences updated."
619
  msgstr ""
620
 
621
+ #: subscribe2.php:2246
622
  msgid "Editing Subscribe2 preferences for user"
623
  msgstr ""
624
 
625
+ #: subscribe2.php:2255
626
  msgid "Receive email as"
627
  msgstr ""
628
 
629
+ #: subscribe2.php:2278
630
  msgid "Automatically subscribe me to newly created categories"
631
  msgstr ""
632
 
633
+ #: subscribe2.php:2299
634
  msgid "Unsubscribe me from this blog"
635
  msgstr ""
636
 
637
+ #: subscribe2.php:2303
638
  msgid "Subscribe to all categories"
639
  msgstr ""
640
 
641
+ #: subscribe2.php:2305
642
  msgid "Subscribed Categories on"
643
  msgstr ""
644
 
645
+ #: subscribe2.php:2307
646
  msgid "Subscribed Categories"
647
  msgstr ""
648
 
649
+ #: subscribe2.php:2313
650
  msgid "Receive periodic summaries of new posts?"
651
  msgstr ""
652
 
653
+ #: subscribe2.php:2328
654
  msgid "Update Preferences"
655
  msgstr ""
656
 
657
+ #: subscribe2.php:2377
658
  msgid "Subscribed Blogs"
659
  msgstr ""
660
 
661
+ #: subscribe2.php:2382 subscribe2.php:2403
662
  msgid "Viewing Settings Now"
663
  msgstr ""
664
 
665
+ #: subscribe2.php:2386 subscribe2.php:2407
666
  msgid "View Settings"
667
  msgstr ""
668
 
669
+ #: subscribe2.php:2398
670
  msgid "Subscribe to new blogs"
671
  msgstr ""
672
 
673
+ #: subscribe2.php:2471
674
  msgid "Send an email to subscribers"
675
  msgstr ""
676
 
677
+ #: subscribe2.php:2479
678
  msgid "A message from"
679
  msgstr ""
680
 
681
+ #: subscribe2.php:2481
682
  msgid "Subject"
683
  msgstr ""
684
 
685
+ #: subscribe2.php:2484
686
  msgid "Recipients:"
687
  msgstr ""
688
 
689
+ #: subscribe2.php:2488
690
  msgid "Send"
691
  msgstr ""
692
 
693
+ #: subscribe2.php:2559
694
  msgid "All Users and Subscribers"
695
  msgstr ""
696
 
697
+ #: subscribe2.php:2560
698
  msgid "Public Subscribers"
699
  msgstr ""
700
 
701
+ #: subscribe2.php:2561
702
  msgid "Confirmed"
703
  msgstr ""
704
 
705
+ #: subscribe2.php:2562
706
  msgid "Unconfirmed"
707
  msgstr ""
708
 
709
+ #: subscribe2.php:2563
710
  msgid "All Registered Users"
711
  msgstr ""
712
 
713
+ #: subscribe2.php:2564
714
  msgid "Registered Subscribers"
715
  msgstr ""
716
 
717
+ #: subscribe2.php:2675
718
  msgid "For each Post"
719
  msgstr ""
720
 
721
+ #: subscribe2.php:2692
722
  msgid "Send Digest Notification at"
723
  msgstr ""
724
 
725
+ #: subscribe2.php:2704
726
  msgid ""
727
+ "This option will be ignored if the time selected is not in the future in "
728
+ "relation to the current time"
729
  msgstr ""
730
 
731
+ #: subscribe2.php:2707
732
  msgid "Current UTC time is"
733
  msgstr ""
734
 
735
+ #: subscribe2.php:2709
736
  msgid "Current blog time is"
737
  msgstr ""
738
 
739
+ #: subscribe2.php:2711
740
  msgid "Next email notification will be sent when your blog time is after"
741
  msgstr ""
742
 
743
+ #: subscribe2.php:2763
744
  msgid "Settings"
745
  msgstr ""
746
 
747
+ #: subscribe2.php:2764
748
  msgid "Donate"
749
  msgstr ""
750
 
751
+ #: subscribe2.php:2765
752
  msgid "Forum"
753
  msgstr ""
754
 
755
+ #: subscribe2.php:2776
756
  msgid "Check here to Subscribe to email notifications for new posts"
757
  msgstr ""
758
 
759
+ #: subscribe2.php:2785
760
  msgid ""
761
  "By registering with this blog you are also agreeing to receive email "
762
  "notifications for new posts but you can unsubscribe at anytime"
763
  msgstr ""
764
 
765
+ #: subscribe2.php:2806 subscribe2.php:2807 subscribe2.php:2835
766
  msgid "Subscribe2 Notification Override"
767
  msgstr ""
768
 
769
+ #: subscribe2.php:2821
770
  msgid ""
771
  "Check here to disable sending of an email notification for this post/page"
772
  msgstr ""
773
 
774
+ #: subscribe2.php:2964
775
  msgid "Subscription Confirmation"
776
  msgstr ""
777
 
778
+ #: subscribe2.php:3016
779
  msgid "Title"
780
  msgstr ""
781
 
782
+ #: subscribe2.php:3018
783
  msgid "Div class name"
784
  msgstr ""
785
 
786
+ #: subscribe2.php:3020
787
  msgid "Pre-Content"
788
  msgstr ""
789
 
790
+ #: subscribe2.php:3022
791
  msgid "Post-Content"
792
  msgstr ""
793
 
794
+ #: subscribe2.php:3072
795
  msgid "[Un]Subscribe to Posts"
796
  msgstr ""
797
 
798
+ #: subscribe2.php:3150
799
  msgid "Weekly"
800
  msgstr ""
801
 
802
+ #: subscribe2.php:3236
803
  msgid "Posted on"
804
  msgstr ""
805
 
806
+ #: subscribe2.php:3240 subscribe2.php:3241
807
  msgid "Posted in"
808
  msgstr ""
809
 
810
+ #: subscribe2.php:3246 subscribe2.php:3247
811
  msgid "Tagged as"
812
  msgstr ""
813
 
814
+ #: subscribe2.php:3299
815
  msgid "Digest Email"
816
  msgstr ""
817
 
uninstall.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- if(!defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN')) {
3
  exit();
4
  } else {
5
  global $wpdb, $table_prefix;
@@ -13,8 +13,8 @@ if(!defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN')) {
13
  wp_clear_scheduled_hook('s2_digest_cron');
14
  // delete usermeta data for registered users
15
  $users = $wpdb->get_col("SELECT ID FROM $wpdb->users");
16
- if (!empty($users)) {
17
- foreach ($users as $user) {
18
  $cats = explode(',', get_usermeta($user, 's2_subscribed'));
19
  if ($cats) {
20
  foreach ($cats as $cat) {
@@ -26,6 +26,6 @@ if(!defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN')) {
26
  }
27
  // drop the subscribe2 table
28
  $sql = "DROP TABLE IF EXISTS `" . $public . "`";
29
- mysql_query($sql);
30
  }
31
  ?>
1
  <?php
2
+ if( !defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') ) {
3
  exit();
4
  } else {
5
  global $wpdb, $table_prefix;
13
  wp_clear_scheduled_hook('s2_digest_cron');
14
  // delete usermeta data for registered users
15
  $users = $wpdb->get_col("SELECT ID FROM $wpdb->users");
16
+ if ( !empty($users) ) {
17
+ foreach ( $users as $user ) {
18
  $cats = explode(',', get_usermeta($user, 's2_subscribed'));
19
  if ($cats) {
20
  foreach ($cats as $cat) {
26
  }
27
  // drop the subscribe2 table
28
  $sql = "DROP TABLE IF EXISTS `" . $public . "`";
29
+ $wpdb->query($sql);
30
  }
31
  ?>