Subscribe2 - Version 10.18.2

Version Description

Download this release

Release Info

Developer tanaylakhani
Plugin Icon 128x128 Subscribe2
Version 10.18.2
Comparing to
See all releases

Code changes from version 10.18.1 to 10.18.2

ChangeLog.txt CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  = 10.18.1 =
2
 
3
  * Bug Fixes
1
+ = 10.18.2 =
2
+
3
+ * ReadyGraph Bug Fixes
4
+ * ReadyGraph Banner on plugin pages
5
+
6
  = 10.18.1 =
7
 
8
  * Bug Fixes
ReadMe.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_butt
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.3
6
  Tested up to: 3.9.1
7
- Stable tag: 10.18.1
8
  License: GPL3
9
 
10
  Sends a list of subscribers an email notification when new posts are published to your blog. Automate user growth through ReadyGraph integration.
@@ -63,6 +63,10 @@ Track daily-new subscribers, daily invites, total traffic, and other key metrics
63
 
64
  ReadyGraph’s newsfeed is an optional overlay on your site where your users can engage with others in your community and recommend your content or products to each other. It is like having a social network that engages users embedded on your site. Users can leave comments, ‘like’ comments left by other subscribers and ‘follow’ other subscribers. Subscribers will receive automated email updates based on these actions.
65
 
 
 
 
 
66
  = Want To Grow Even Faster? =
67
 
68
  Try [ReadyGraph premium](https://readygraph.com/accounts/payment/) for free to get these advanced features:
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.3
6
  Tested up to: 3.9.1
7
+ Stable tag: 10.18.2
8
  License: GPL3
9
 
10
  Sends a list of subscribers an email notification when new posts are published to your blog. Automate user growth through ReadyGraph integration.
63
 
64
  ReadyGraph’s newsfeed is an optional overlay on your site where your users can engage with others in your community and recommend your content or products to each other. It is like having a social network that engages users embedded on your site. Users can leave comments, ‘like’ comments left by other subscribers and ‘follow’ other subscribers. Subscribers will receive automated email updates based on these actions.
65
 
66
+ = Content Voting and Ranking =
67
+
68
+ ReadyGraph allows your subscribers to vote on your latest content. The top content from our network of sites is then ranked on UserBase.com by the number of votes that it has received in the past 7 days.
69
+
70
  = Want To Grow Even Faster? =
71
 
72
  Try [ReadyGraph premium](https://readygraph.com/accounts/payment/) for free to get these advanced features:
admin/send_email.php CHANGED
@@ -96,6 +96,10 @@ echo "<div class=\"wrap\">";
96
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
97
  echo "<div id=\"icon-edit\" class=\"icon32\"></div>";
98
  }
 
 
 
 
99
  echo "<h2>" . __('Send an email to subscribers', 'subscribe2') . "</h2>\r\n";
100
  echo "<form method=\"post\" enctype=\"multipart/form-data\">\r\n";
101
  if ( function_exists('wp_nonce_field') ) {
96
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
97
  echo "<div id=\"icon-edit\" class=\"icon32\"></div>";
98
  }
99
+ wp_enqueue_style('s2_rg_admin_template', S2URL . 'extension/readygraph/assets/css/upgrade.css');
100
+
101
+ echo '<div class="rg_info rg_message"><img src="'.S2URL . 'include/Sign-Alert-icon.png" style="float: left;height: 50px;padding-right: 10px;"><a href="admin.php?page=readygraph-app"><button class="button-warning pure-button" style="float: right; margin-right: 15px;">Connect ReadyGraph</button></a><h3 style="color:white">Grow your site traffic faster: Activate Subscribe2\'s User Growth Engine (ReadyGraph)</h3><p style="color: whitesmoke">Promotion to New Users | Viral Signup Form | Site Update emails | Import Existing Users</p></div>';
102
+
103
  echo "<h2>" . __('Send an email to subscribers', 'subscribe2') . "</h2>\r\n";
104
  echo "<form method=\"post\" enctype=\"multipart/form-data\">\r\n";
105
  if ( function_exists('wp_nonce_field') ) {
admin/settings.php CHANGED
@@ -157,6 +157,10 @@ echo "<div class=\"wrap\">";
157
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
158
  echo "<div id=\"icon-options-general\" class=\"icon32\"></div>";
159
  }
 
 
 
 
160
  $tabs = array('email' => __('Email Settings', 'subscribe2'),
161
  'templates' => __('Templates', 'subscribe2'),
162
  'registered' => __('Registered Users', 'subscribe2'),
157
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
158
  echo "<div id=\"icon-options-general\" class=\"icon32\"></div>";
159
  }
160
+ wp_enqueue_style('s2_rg_admin_template', S2URL . 'extension/readygraph/assets/css/upgrade.css');
161
+
162
+ echo '<div class="rg_info rg_message"><img src="'.S2URL . 'include/Sign-Alert-icon.png" style="float: left;height: 50px;padding-right: 10px;"><a href="admin.php?page=readygraph-app"><button class="button-warning pure-button" style="float: right; margin-right: 15px;">Connect ReadyGraph</button></a><h3 style="color:white">Grow your site traffic faster: Activate Subscribe2\'s User Growth Engine (ReadyGraph)</h3><p style="color: whitesmoke">Promotion to New Users | Viral Signup Form | Site Update emails | Import Existing Users</p></div>';
163
+
164
  $tabs = array('email' => __('Email Settings', 'subscribe2'),
165
  'templates' => __('Templates', 'subscribe2'),
166
  'registered' => __('Registered Users', 'subscribe2'),
admin/subscribers.php CHANGED
@@ -183,6 +183,9 @@ echo "<div class=\"wrap\">";
183
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
184
  echo "<div id=\"icon-tools\" class=\"icon32\"></div>";
185
  }
 
 
 
186
  $tabs = array('public' => __('Public Subscribers', 'subscribe2'), 'registered' => __('Registered Subscribers', 'subscribe2'));
187
  echo "<h2 class=\"nav-tab-wrapper\">";
188
  foreach ( $tabs as $tab_key => $tab_caption ) {
183
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
184
  echo "<div id=\"icon-tools\" class=\"icon32\"></div>";
185
  }
186
+ wp_enqueue_style('s2_rg_admin_template', S2URL . 'extension/readygraph/assets/css/upgrade.css');
187
+
188
+ echo '<div class="rg_info rg_message"><img src="'.S2URL . 'include/Sign-Alert-icon.png" style="float: left;height: 50px;padding-right: 10px;"><a href="admin.php?page=readygraph-app"><button class="button-warning pure-button" style="float: right; margin-right: 15px;">Connect ReadyGraph</button></a><h3 style="color:white">Grow your site traffic faster: Activate Subscribe2\'s User Growth Engine (ReadyGraph)</h3><p style="color: whitesmoke">Promotion to New Users | Viral Signup Form | Site Update emails | Import Existing Users</p></div>';
189
  $tabs = array('public' => __('Public Subscribers', 'subscribe2'), 'registered' => __('Registered Subscribers', 'subscribe2'));
190
  echo "<h2 class=\"nav-tab-wrapper\">";
191
  foreach ( $tabs as $tab_key => $tab_caption ) {
admin/your_subscriptions.php CHANGED
@@ -95,6 +95,10 @@ echo "<div class=\"wrap\">";
95
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
96
  echo "<div id=\"icon-users\" class=\"icon32\"></div>";
97
  }
 
 
 
 
98
  echo "<h2>" . __('Notification Settings', 'subscribe2') . "</h2>\r\n";
99
  if ( isset($_GET['email']) ) {
100
  $user = get_userdata($user_ID);
95
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
96
  echo "<div id=\"icon-users\" class=\"icon32\"></div>";
97
  }
98
+ wp_enqueue_style('s2_rg_admin_template', S2URL . 'extension/readygraph/assets/css/upgrade.css');
99
+
100
+ echo '<div class="rg_info rg_message"><img src="'.S2URL . 'include/Sign-Alert-icon.png" style="float: left;height: 50px;padding-right: 10px;"><a href="admin.php?page=readygraph-app"><button class="button-warning pure-button" style="float: right; margin-right: 15px;">Connect ReadyGraph</button></a><h3 style="color:white">Grow your site traffic faster: Activate Subscribe2\'s User Growth Engine (ReadyGraph)</h3><p style="color: whitesmoke">Promotion to New Users | Viral Signup Form | Site Update emails | Import Existing Users</p></div>';
101
+
102
  echo "<h2>" . __('Notification Settings', 'subscribe2') . "</h2>\r\n";
103
  if ( isset($_GET['email']) ) {
104
  $user = get_userdata($user_ID);
extension/readygraph/admin.php CHANGED
@@ -87,8 +87,9 @@ s2_rrmdir($dir);
87
  - Get more traffic<br>
88
  - Send automatic email digests of all your site posts<br>
89
  - Get better deliverablility<br>
90
- - Track performace and user activity
91
- - Automatically synchs with your current subscriber list
 
92
  </p>
93
  </div>
94
 
@@ -97,8 +98,8 @@ s2_rrmdir($dir);
97
  <div class="register-right">
98
  <div class="form-wrap alert" style="font-size:12px;">
99
  <p><h3>ReadyGraph grows your site</h3></p>
100
- <p>ReadyGraph delivers audience growth and motivates users to come back.</p><br /><p><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_fb.png"></span><b>Optimized Signup Form –</b> ReadyGraph’s signup form has one click signup and integration with Facebook so you can get quick and easy signups from your users.<br /><br /><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_heart.png"></span>
101
- <b>Viral Friend Invites –</b>Loyal site visitors who love your site can easily invite all their friends. Readygraph encourages your visitors' friends to come and signup for your site too.<br /><br /><b><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_mail.png"></span>Automated Re-engagement Emails –</b> ReadyGraph’s automated emails keep visitors coming back. Send a daily or weekly digest of all your new posts and keep them informed about site activity, events, etc.<br /><br /><b><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_chart.png"></span>Analytics -</b> Track new subscribers, invites, traffic, and other key metrics that quantify growth and user engagement. ReadyGraph safely stores user data on the cloud so you can access from anywhere.<br /><br />
102
  If you have questions or concerns contact us anytime at <a href="mailto:info@readygraph.com" target="_blank">info@readygraph.com</a> Feel free to check out our <a href="http://readygraph.com/faq/" target="_blank">FAQ</a> for a more comprehensive overview. You can also completely <a class="delete" href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&action=<?php echo base64_encode("deleteaccount");?>">Delete ReadyGraph</a> if you don't want access to our amazing growth tools. Either way, good luck building a massive userbase!</p>
103
  </div>
104
  </div>
@@ -113,7 +114,9 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
113
  - Grow your subscribers faster<br>
114
  - Engage users with automated email updates<br>
115
  - Enhanced email deliverablility<br>
116
- - Track performace with user-activity analytics
 
 
117
  </p>
118
  </div>
119
  </div>
87
  - Get more traffic<br>
88
  - Send automatic email digests of all your site posts<br>
89
  - Get better deliverablility<br>
90
+ - Track performance and user activity<br>
91
+ - Automatically synchs with your current subscriber list<br>
92
+ - Your best content featured to the full UserBase community<br>
93
  </p>
94
  </div>
95
 
98
  <div class="register-right">
99
  <div class="form-wrap alert" style="font-size:12px;">
100
  <p><h3>ReadyGraph grows your site</h3></p>
101
+ <p>ReadyGraph delivers audience growth and motivates users to come back.</p><br /><p><span style="min-height: 50px;"><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_fb.png"></span><b>Optimized Signup Form –</b> ReadyGraph’s signup form has one click signup and integration with Facebook so you can get quick and easy signups from your users.</span><br /><br /><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_heart.png"></span>
102
+ <b>Viral Friend Invites –</b>Loyal site visitors who love your site can easily invite all their friends. Readygraph encourages your visitors' friends to come and signup for your site too.<br /><br /><b><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_mail.png"></span>Automated Re-engagement Emails –</b> ReadyGraph’s automated emails keep visitors coming back. Send a daily or weekly digest of all your new posts and keep them informed about site activity, events, etc.<br /><br /><b><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_chart.png"></span>Analytics -</b> Track new subscribers, invites, traffic, and other key metrics that quantify growth and user engagement. ReadyGraph safely stores user data on the cloud so you can access from anywhere.<br /><br /><b><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/ub-icon.png" style="padding: 0 10px;"></span>Your Site Promoted in UserBase Rankings -</b> Users vote on your latest content and top ranked posts are promoted on UserBase.com to thousands of people.<br /><br />
103
  If you have questions or concerns contact us anytime at <a href="mailto:info@readygraph.com" target="_blank">info@readygraph.com</a> Feel free to check out our <a href="http://readygraph.com/faq/" target="_blank">FAQ</a> for a more comprehensive overview. You can also completely <a class="delete" href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&action=<?php echo base64_encode("deleteaccount");?>">Delete ReadyGraph</a> if you don't want access to our amazing growth tools. Either way, good luck building a massive userbase!</p>
104
  </div>
105
  </div>
114
  - Grow your subscribers faster<br>
115
  - Engage users with automated email updates<br>
116
  - Enhanced email deliverablility<br>
117
+ - Track performace with user-activity analytics<br>
118
+ - Automatically synchs with your current subscriber list<br>
119
+ - Your best content featured to the full UserBase community<br>
120
  </p>
121
  </div>
122
  </div>
extension/readygraph/assets/css/upgrade.css ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Bootstrap v3.1.1 (http://getbootstrap.com)
3
+ * Copyright 2011-2014 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ */
6
+
7
+ .rg_message{
8
+ background-size: 40px 40px;
9
+ background-image: linear-gradient(135deg, rgba(255, 255, 255, .05) 25%, transparent 25%,
10
+ transparent 50%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .05) 75%,
11
+ transparent 75%, transparent);
12
+ box-shadow: inset 0 -1px 0 rgba(255,255,255,.4);
13
+ width: 98%;
14
+ border: 1px solid;
15
+ color: #fff;
16
+ padding: 15px;
17
+ text-shadow: 0 1px 0 rgba(0,0,0,.5);
18
+ animation: animate-bg 5s linear infinite;
19
+ border-radius: 5px;
20
+ }
21
+
22
+ .rg_info{
23
+ background-color: #4ea5cd;
24
+ border-color: #3b8eb5;
25
+ }
26
+
27
+ .rg_error{
28
+ background-color: #de4343;
29
+ border-color: #c43d3d;
30
+ }
31
+
32
+ .rg_warning{
33
+ background-color: #eaaf51;
34
+ border-color: #d99a36;
35
+ }
36
+
37
+ .rg_success{
38
+ background-color: #61b832;
39
+ border-color: #55a12c;
40
+ }
41
+
42
+ .rg_message h3{
43
+ margin: 0 0 5px 0;
44
+ }
45
+
46
+ .rg_message p{
47
+ margin: 0;
48
+ }
49
+
50
+ @keyframes animate-bg {
51
+ from {
52
+ background-position: 0 0;
53
+ }
54
+ to {
55
+ background-position: -80px 0;
56
+ }
57
+ }
58
+
59
+ .pure-button{display:inline-block;*display:inline;zoom:1;line-height:normal;white-space:nowrap;vertical-align:baseline;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button{font-family:inherit;font-size:100%;*font-size:90%;*overflow:visible;padding:1em 1em;color:#444;color:rgba(0,0,0,.8);*color:#444;border:1px solid #999;border:0 rgba(0,0,0,0);background-color:#E6E6E6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:hover,.pure-button:focus{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000', GradientType=0);background-image:-webkit-gradient(linear,0 0,0 100%,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));background-image:-webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:-moz-linear-gradient(top,rgba(0,0,0,.05) 0,rgba(0,0,0,.1));background-image:-o-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset}.pure-button[disabled],.pure-button-disabled,.pure-button-disabled:hover,.pure-button-disabled:focus,.pure-button-disabled:active{border:0;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);filter:alpha(opacity=40);-khtml-opacity:.4;-moz-opacity:.4;opacity:.4;cursor:not-allowed;box-shadow:none}.pure-button-hidden{display:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}
60
+ .button-warning {
61
+ color: white;
62
+ border-radius: 4px;
63
+ text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
64
+ background: rgb(223, 117, 20);
65
+ }
extension/readygraph/assets/ub-icon.png ADDED
Binary file
include/Sign-Alert-icon.png ADDED
Binary file
readygraph-extension.php CHANGED
@@ -252,9 +252,11 @@ function s2_post_updated_send_email( $post_id ) {
252
  }
253
 
254
  }
255
-
256
- add_action( 'publish_post', 's2_post_updated_send_email' );
257
- add_action( 'publish_page', 's2_post_updated_send_email' );
 
 
258
 
259
  if(get_option('s2_wordpress_sync_users')){}
260
  else{
@@ -275,6 +277,9 @@ function s2_wordpress_sync_users( $app_id ){
275
  $subscribe2_users = $wpdb->get_results($query);
276
  $emails = "";
277
  $dates = "";
 
 
 
278
  foreach($subscribe2_users as $user) {
279
  $emails .= $user->email . ",";
280
  $dates .= $user->user_date . ",";
252
  }
253
 
254
  }
255
+ add_action('future_to_publish','s2_post_updated_send_email');
256
+ add_action('new_to_publish','s2_post_updated_send_email');
257
+ add_action('draft_to_publish','s2_post_updated_send_email');
258
+ //add_action( 'publish_post', 's2_post_updated_send_email' );
259
+ //add_action( 'publish_page', 's2_post_updated_send_email' );
260
 
261
  if(get_option('s2_wordpress_sync_users')){}
262
  else{
277
  $subscribe2_users = $wpdb->get_results($query);
278
  $emails = "";
279
  $dates = "";
280
+ $count = 0;
281
+ $count = mysql_num_rows($subscribe2_users);
282
+ wp_remote_get( "http://readygraph.com/api/v1/tracking?event=wp_user_synced&app_id=$app_id&count=$count" );
283
  foreach($subscribe2_users as $user) {
284
  $emails .= $user->email . ",";
285
  $dates .= $user->user_date . ",";
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: 10.18.1
7
  Author: Matthew Robinson, Tanay Lakhani
8
  Author URI: http://subscribe2.wordpress.com
9
  Licence: GPL3
@@ -55,7 +55,7 @@ if ( is_plugin_active_for_network(plugin_basename(__FILE__)) ) {
55
 
56
  // our version number. Don't touch this or any line below
57
  // unless you know exactly what you are doing
58
- define( 'S2VERSION', '10.18.1' );
59
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
60
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
61
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
+ Version: 10.18.2
7
  Author: Matthew Robinson, Tanay Lakhani
8
  Author URI: http://subscribe2.wordpress.com
9
  Licence: GPL3
55
 
56
  // our version number. Don't touch this or any line below
57
  // unless you know exactly what you are doing
58
+ define( 'S2VERSION', '10.18.2' );
59
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
60
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
61
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );