Newsletter Sign-Up - Version 2.0.5

Version Description

  • February 19, 2015 =

Improvements

  • Updated all links to use HTTPS protocol
Download this release

Release Info

Developer DvanKooten
Plugin Icon wp plugin Newsletter Sign-Up
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

includes/NSU.php CHANGED
@@ -208,7 +208,7 @@ class NSU {
208
  $request['merge_vars'] = array_merge( $request['merge_vars'], $this->add_additional_data( array( 'email' => $email, 'name' => $name ) ) );
209
 
210
  $result = wp_remote_post(
211
- 'http://'.substr( $opts['mc_api_key'], -3 ).'.api.mailchimp.com/1.3/?output=php&method=listSubscribe',
212
  array( 'body' => json_encode( $request ) )
213
  );
214
 
208
  $request['merge_vars'] = array_merge( $request['merge_vars'], $this->add_additional_data( array( 'email' => $email, 'name' => $name ) ) );
209
 
210
  $result = wp_remote_post(
211
+ 'https://'.substr( $opts['mc_api_key'], -3 ).'.api.mailchimp.com/1.3/?output=php&method=listSubscribe',
212
  array( 'body' => json_encode( $request ) )
213
  );
214
 
includes/NSU_Admin.php CHANGED
@@ -6,7 +6,7 @@ if (!class_exists('NSU_Admin')) {
6
  private $hook = 'newsletter-sign-up';
7
  private $longname = 'Newsletter Sign-Up';
8
  private $shortname = 'Newsletter Sign-Up';
9
- private $plugin_url = 'http://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/';
10
  private $filename = 'newsletter-sign-up/newsletter-sign-up.php';
11
  private $accesslvl = 'manage_options';
12
  private $bp_active = FALSE;
@@ -48,7 +48,7 @@ if (!class_exists('NSU_Admin')) {
48
  ?>
49
  <div class="updated">
50
  <p><strong>Newsletter Sign-Up Notice:</strong> You are using MailChimp, great! Consider switching to <a href="http://dannyvankooten.com/wordpress-plugins/mailchimp-for-wordpress/">MailChimp for WordPress</a>, you will <strong>love</strong> it.
51
- It can be downloaded from the WordPress repository <a href="http://wordpress.org/plugins/mailchimp-for-wp/">here</a>. | <a href="?nsu-hide-mc4wp-notice=1">Hide Notice</a></p>
52
  </div>
53
  <?php
54
  }
6
  private $hook = 'newsletter-sign-up';
7
  private $longname = 'Newsletter Sign-Up';
8
  private $shortname = 'Newsletter Sign-Up';
9
+ private $plugin_url = 'https://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/';
10
  private $filename = 'newsletter-sign-up/newsletter-sign-up.php';
11
  private $accesslvl = 'manage_options';
12
  private $bp_active = FALSE;
48
  ?>
49
  <div class="updated">
50
  <p><strong>Newsletter Sign-Up Notice:</strong> You are using MailChimp, great! Consider switching to <a href="http://dannyvankooten.com/wordpress-plugins/mailchimp-for-wordpress/">MailChimp for WordPress</a>, you will <strong>love</strong> it.
51
+ It can be downloaded from the WordPress repository <a href="https://wordpress.org/plugins/mailchimp-for-wp/">here</a>. | <a href="?nsu-hide-mc4wp-notice=1">Hide Notice</a></p>
52
  </div>
53
  <?php
54
  }
includes/NSU_Checkbox.php CHANGED
@@ -70,7 +70,7 @@ class NSU_Checkbox {
70
  }
71
 
72
  ?>
73
- <!-- Checkbox by Newsletter Sign-Up Checkbox v<?php echo NSU_VERSION_NUMBER; ?> - http://wordpress.org/plugins/newsletter-sign-up/ -->
74
  <p id="nsu-checkbox">
75
  <label for="nsu-checkbox-input" id="nsu-checkbox-label">
76
  <input value="1" id="nsu-checkbox-input" type="checkbox" name="newsletter-sign-up-do" <?php checked( $opts['precheck'], 1 ); ?> />
70
  }
71
 
72
  ?>
73
+ <!-- Checkbox by Newsletter Sign-Up Checkbox v<?php echo NSU_VERSION_NUMBER; ?> - https://wordpress.org/plugins/newsletter-sign-up/ -->
74
  <p id="nsu-checkbox">
75
  <label for="nsu-checkbox-input" id="nsu-checkbox-label">
76
  <input value="1" id="nsu-checkbox-input" type="checkbox" name="newsletter-sign-up-do" <?php checked( $opts['precheck'], 1 ); ?> />
includes/NewsletterSignUpWidget.php CHANGED
@@ -85,7 +85,7 @@ if(!class_exists('NewsletterSignUpWidget')) {
85
  Configure the sign-up form at the <a href="admin.php?page=newsletter-sign-up-form-settings">Newsletter Sign-Up configuration page</a>.
86
  </p>
87
 
88
- <p style="background:#222; color:#eee; padding:10px;">If you like this plugin, consider <a href="http://dannyvankooten.com/donate/">donating $10, $20 or $50</a> as a token of your appreciation.</p>
89
  <?php
90
  }
91
 
85
  Configure the sign-up form at the <a href="admin.php?page=newsletter-sign-up-form-settings">Newsletter Sign-Up configuration page</a>.
86
  </p>
87
 
88
+ <p style="background:#222; color:#eee; padding:10px;">If you like this plugin, consider <a href="https://dannyvankooten.com/donate/">donating $10, $20 or $50</a> as a token of your appreciation.</p>
89
  <?php
90
  }
91
 
includes/views/config_helper.php CHANGED
@@ -45,7 +45,7 @@
45
 
46
  </table>
47
 
48
- <p>The above settings are there to help you, though they may not be right. Check out <a href="http://dannyvankooten.com/571/configuring-newsletter-sign-up-the-definitive-guide/">this post on my blog</a> for more information on how to manually
49
  configure Newsletter Sign-up.</p>
50
 
51
  <p>The form code below is a stripped down version of your sign-up form which will make it easier for you to extract the right values. Please also use this form when asking for support.</p>
45
 
46
  </table>
47
 
48
+ <p>The above settings are there to help you, though they may not be right. Check out <a href="https://dannyvankooten.com/571/configuring-newsletter-sign-up-the-definitive-guide/">this post on my blog</a> for more information on how to manually
49
  configure Newsletter Sign-up.</p>
50
 
51
  <p>The form code below is a stripped down version of your sign-up form which will make it easier for you to extract the right values. Please also use this form when asking for support.</p>
includes/views/dashboard.php CHANGED
@@ -11,7 +11,7 @@
11
  <form method="post" action="options.php">
12
  <?php settings_fields('nsu_mailinglist_group'); ?>
13
 
14
- <p>These settings are the most important, without them Newsletter Sign-Up can't do its job. Having trouble finding the right configuration settings? Have a look at <a href="http://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/">this post on my blog</a> or try the <a href="admin.php?page=newsletter-sign-up/config-helper">configuration extractor</a>.</p>
15
 
16
  <table class="form-table">
17
  <tr valign="top">
11
  <form method="post" action="options.php">
12
  <?php settings_fields('nsu_mailinglist_group'); ?>
13
 
14
+ <p>These settings are the most important, without them Newsletter Sign-Up can't do its job. Having trouble finding the right configuration settings? Have a look at <a href="https://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/">this post on my blog</a> or try the <a href="admin.php?page=newsletter-sign-up/config-helper">configuration extractor</a>.</p>
15
 
16
  <table class="form-table">
17
  <tr valign="top">
includes/views/parts/rows-mailchimp.php CHANGED
@@ -22,7 +22,7 @@
22
  echo ' style="display:none" ';
23
  } ?>>
24
  <tr valign="top">
25
- <th scope="row">MailChimp API Key <a target="_blank" href="http://admin.mailchimp.com/account/api">(?)</a></th>
26
  <td>
27
  <input class="widefat" type="text" id="mc_api_key" name="nsu_mailinglist[mc_api_key]" value="<?php if ( isset( $opts['mc_api_key'] ) ) {
28
  echo esc_attr( $opts['mc_api_key'] );
22
  echo ' style="display:none" ';
23
  } ?>>
24
  <tr valign="top">
25
+ <th scope="row">MailChimp API Key <a target="_blank" href="https://admin.mailchimp.com/account/api">(?)</a></th>
26
  <td>
27
  <input class="widefat" type="text" id="mc_api_key" name="nsu_mailinglist[mc_api_key]" value="<?php if ( isset( $opts['mc_api_key'] ) ) {
28
  echo esc_attr( $opts['mc_api_key'] );
includes/views/parts/sidebar.php CHANGED
@@ -28,7 +28,7 @@
28
  <div>
29
  <h3>Other WordPress plugins by Danny</h3>
30
  <ul class="ul-square">
31
- <li class="has-icon mc4wp"><a href="http://wordpress.org/plugins/mailchimp-for-wp/">MailChimp for WordPress</a></li>
32
  <li><a href="https://wordpress.org/plugins/scroll-triggered-boxes/">Scroll Triggered Boxes</a></li>
33
  <li><a href="https://wordpress.org/plugins/dvk-social-sharing/">Social Sharing</a></li>
34
  <li class="has-icon rfb"><a href="https://wordpress.org/plugins/recent-facebook-posts/">Recent Facebook Posts</a></li>
28
  <div>
29
  <h3>Other WordPress plugins by Danny</h3>
30
  <ul class="ul-square">
31
+ <li class="has-icon mc4wp"><a href="https://wordpress.org/plugins/mailchimp-for-wp/">MailChimp for WordPress</a></li>
32
  <li><a href="https://wordpress.org/plugins/scroll-triggered-boxes/">Scroll Triggered Boxes</a></li>
33
  <li><a href="https://wordpress.org/plugins/dvk-social-sharing/">Social Sharing</a></li>
34
  <li class="has-icon rfb"><a href="https://wordpress.org/plugins/recent-facebook-posts/">Recent Facebook Posts</a></li>
newsletter-sign-up.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Newsletter Sign-Up
4
  Plugin URI: https://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/
5
  Description: Adds various ways for your visitors to sign-up to your mailinglist (checkbox, widget, form)
6
- Version: 2.0.4
7
  Author: Danny van Kooten
8
  Author URI: https://dannyvankooten.com
9
  License: GPL2
@@ -29,7 +29,7 @@ if( ! defined( 'ABSPATH' ) ) {
29
  exit;
30
  }
31
 
32
- define('NSU_VERSION_NUMBER', "2.0.4");
33
  define("NSU_PLUGIN_DIR", plugin_dir_path(__FILE__));
34
 
35
  require_once NSU_PLUGIN_DIR . 'includes/NSU.php';
3
  Plugin Name: Newsletter Sign-Up
4
  Plugin URI: https://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/
5
  Description: Adds various ways for your visitors to sign-up to your mailinglist (checkbox, widget, form)
6
+ Version: 2.0.5
7
  Author: Danny van Kooten
8
  Author URI: https://dannyvankooten.com
9
  License: GPL2
29
  exit;
30
  }
31
 
32
+ define('NSU_VERSION_NUMBER', "2.0.5");
33
  define("NSU_PLUGIN_DIR", plugin_dir_path(__FILE__));
34
 
35
  require_once NSU_PLUGIN_DIR . 'includes/NSU.php';
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: DvanKooten
3
  Donate link: https://dannyvankooten.com/donate/
4
  Tags: newsletter,sign-up,mailchimp,aweber,newsletter signup,checkbox,ymlp,email,phplist,icontact,mailinglist,checkbox,form widget,widget,newsletter widget,subscribe widget,form shortcode,mailchimp api
5
  Requires at least: 3.6
6
- Tested up to: 4.0
7
- Stable tag: 2.0.4
8
  License: GPL2
9
 
10
  Integrate your WordPress site with 3rd-party newsletter services like Aweber and YMLP. Adds various sign-up methods to your site.
@@ -15,10 +15,10 @@ Integrate your WordPress site with 3rd-party newsletter services like Aweber and
15
 
16
  This plugin adds various sign-up methods to your WordPress website, like sign-up checkboxes in your comment form and a sign-up form to show in posts, pages or widget areas.
17
 
18
- <blockquote>
19
- <h3 style="margin-top:0;">MailChimp user?</h3>
20
- <p>Use <a href="https://wordpress.org/plugins/mailchimp-for-wp/">MailChimp for WordPress</a> instead. It's much better.</p>
21
- </blockquote>
22
 
23
  This plugin works with *almost all* third-party email marketing services including MailChimp, CampaignMonitor, ConstantContact, YMLP, Aweber, iContact, PHPList and Feedblitz. With the right configuration settings, you can make this plugin work with *any* newsletter service around.
24
 
@@ -34,7 +34,7 @@ This plugin works with *almost all* third-party email marketing services includi
34
 
35
  **More information**
36
 
37
- * [MailChimp for WordPress plugin](https://wordpress.org/plugins/mailchimp-for-wp/)
38
  * [Newsletter Sign-Up for WordPress](https://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/)
39
  * Check out more [WordPress plugins](https://dannyvankooten.com/wordpress-plugins/) by Danny van Kooten
40
  * Follow [@DannyvanKooten](https://twitter.com/DannyvanKooten) on Twitter
@@ -84,7 +84,7 @@ Yes, use the following code snippet in your theme files to display a sign-up for
84
 
85
  `if(function_exists('nsu_form')) nsu_form();`
86
 
87
- For more questions and answers go have a look at the [Newsletter Sign-Up](http://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/) page on my website.
88
 
89
  == Screenshots ==
90
 
@@ -94,6 +94,12 @@ For more questions and answers go have a look at the [Newsletter Sign-Up](http:/
94
 
95
  == Changelog ==
96
 
 
 
 
 
 
 
97
  = 2.0.4 - October 4, 2014 =
98
 
99
  * Minor code improvements and WP 4.0+ compatibility.
@@ -142,7 +148,7 @@ For more questions and answers go have a look at the [Newsletter Sign-Up](http:/
142
 
143
  = 1.8 =
144
  * Fixed W3C error because of empty "action" attribute on form tag.
145
- * Added notice for MailChimp users to switch to my newer plugin, [MailChimp for WordPress](http://dannyvankooten.com/wordpress-plugins/mailchimp-for-wordpress/).
146
  * Further improved the CSS reset for the comment form checkbox
147
 
148
  = 1.7.9 =
3
  Donate link: https://dannyvankooten.com/donate/
4
  Tags: newsletter,sign-up,mailchimp,aweber,newsletter signup,checkbox,ymlp,email,phplist,icontact,mailinglist,checkbox,form widget,widget,newsletter widget,subscribe widget,form shortcode,mailchimp api
5
  Requires at least: 3.6
6
+ Tested up to: 4.1.1
7
+ Stable tag: 2.0.5
8
  License: GPL2
9
 
10
  Integrate your WordPress site with 3rd-party newsletter services like Aweber and YMLP. Adds various sign-up methods to your site.
15
 
16
  This plugin adds various sign-up methods to your WordPress website, like sign-up checkboxes in your comment form and a sign-up form to show in posts, pages or widget areas.
17
 
18
+
19
+ > **MailChimp user?**
20
+ >
21
+ > Use [MailChimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/) instead. It's free & so much better.
22
 
23
  This plugin works with *almost all* third-party email marketing services including MailChimp, CampaignMonitor, ConstantContact, YMLP, Aweber, iContact, PHPList and Feedblitz. With the right configuration settings, you can make this plugin work with *any* newsletter service around.
24
 
34
 
35
  **More information**
36
 
37
+ * [MailChimp for WordPress plugin](https://mc4wp.com/)
38
  * [Newsletter Sign-Up for WordPress](https://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/)
39
  * Check out more [WordPress plugins](https://dannyvankooten.com/wordpress-plugins/) by Danny van Kooten
40
  * Follow [@DannyvanKooten](https://twitter.com/DannyvanKooten) on Twitter
84
 
85
  `if(function_exists('nsu_form')) nsu_form();`
86
 
87
+ For more questions and answers go have a look at the [Newsletter Sign-Up](https://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/) page on my website.
88
 
89
  == Screenshots ==
90
 
94
 
95
  == Changelog ==
96
 
97
+ = 2.0.5 - February 19, 2015 =
98
+
99
+ **Improvements**
100
+
101
+ - Updated all links to use HTTPS protocol
102
+
103
  = 2.0.4 - October 4, 2014 =
104
 
105
  * Minor code improvements and WP 4.0+ compatibility.
148
 
149
  = 1.8 =
150
  * Fixed W3C error because of empty "action" attribute on form tag.
151
+ * Added notice for MailChimp users to switch to my newer plugin, [MailChimp for WordPress](https://mc4wp.com/).
152
  * Further improved the CSS reset for the comment form checkbox
153
 
154
  = 1.7.9 =