Subscribe2 - Version 10.5

Version Description

Download this release

Release Info

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

Code changes from version 10.4 to 10.5

Files changed (3) hide show
  1. ReadMe.txt +34 -4
  2. classes/class-s2-admin.php +5 -0
  3. subscribe2.php +47 -2
ReadMe.txt CHANGED
@@ -1,19 +1,29 @@
1
=== Subscribe2 ===
2
- Contributors: Dabelon, wenzhixue, MattyRob
3
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2387904
4
Tags: posts, subscription, email, subscribe, notify, notification
5
Requires at least: 3.3
6
Tested up to: 3.9.1
7
- Stable tag: 10.4
8
License: GPL3
9
10
- Sends a list of subscribers an email notification when new posts are published to your blog.
11
12
== Description ==
13
14
= Summary =
15
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.
16
17
= Email =
18
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.
19
@@ -30,8 +40,28 @@ The format of the email can also be customised for per-post notifications, Subsc
30
If you want to send full content HTML emails to Public Subscribers too then upgrade to [Subscribe2 HTML](http://semperplugins.com/plugins/subscribe2-html/).
31
32
= ReadyGraph App =
33
- This menu item allows users to sign up for a free ReadyGraph account, or sync an existing free ReadyGraph account. Once a ReadyGraph account is synced, this menu item is where the user manages their ReadyGraph account, views email addresses, sends emails to their community members, and views insights on user growth.
34
35
== Installation ==
36
37
= AUTOMATIC INSTALLATION =
1
=== Subscribe2 ===
2
+ Contributors: Dabelon, wenzhixue, tanaylakhani, MattyRob
3
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2387904
4
Tags: posts, subscription, email, subscribe, notify, notification
5
Requires at least: 3.3
6
Tested up to: 3.9.1
7
+ Stable tag: 10.5
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.
11
12
== Description ==
13
14
= Summary =
15
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.
16
17
+ This plugin has integrated [ReadyGraph](http://readygraph.com/), an optional set of features to automate the growth of your userbase. It helps you achieve the three goals of any web marketer: maximize conversion of site visitors to register for your email list, maximize viral referrals for your site, and maximize return visits to your site. To accomplish this, we have integrated a key set of growth features with this plugin:
18
+ - Intelligent signup popup with email or one-click Facebook login
19
+ - Full viral referral flow
20
+ - Automated end user re-engagement emails including welcome emails, weekly digest, friend joined alert and more (all email campaigns are optional and configurable)
21
+ - Enhanced email deliverabilty
22
+ - Cloud-based analytics and data storage
23
+ - Settings that allow you to turn on and off all ReadyGraph features.
24
+
25
+ A full description of features is below.
26
+
27
= Email =
28
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.
29
40
If you want to send full content HTML emails to Public Subscribers too then upgrade to [Subscribe2 HTML](http://semperplugins.com/plugins/subscribe2-html/).
41
42
= ReadyGraph App =
43
44
+ ReadyGraph is a system that automates the growth of your site’s userbase. It is optimized to deliver audience growth and motivate users to consistently revisit your site.
45
+
46
+ = Optimized Signup Form =
47
+
48
+ ReadyGraph’s signup form with intelligent pop-up functionality and one-click login is designed to maximize signups to your email list. You can configure when the popup appears so as to maximize the likelihood that the user is engaged enough to register for your list.
49
+
50
+ = Viral Friend Invites =
51
+
52
+ ReadyGraph adds a friend invite process to your site’s signup flow. We then power the entire viral loop by sending email and Facebook invitations that encourage your visitors’ friends to signup for your site.
53
+
54
+ = Automated Re-engagement Emails =
55
+
56
+ ReadyGraph’s automated email system encourages visitors to return to your site. Users receive optimized emails such as a welcome email, re-engagement email, regular digest with new content from your blog, and social emails. All emails are configurable including the ability to turn on and off individual campaigns. We handle all sending to maximize deliverability.
57
+
58
+ = Analytics =
59
+
60
+ Track daily-new subscribers, daily invites, total traffic, and other key metrics that quantify growth and user engagement. ReadyGraph safely stores user data in the cloud so you can access data from anywhere.
61
+
62
+ = Newsfeed =
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
== Installation ==
66
67
= AUTOMATIC INSTALLATION =
classes/class-s2-admin.php CHANGED
@@ -273,7 +273,12 @@ class s2_admin extends s2class {
273
Function to to handle activate redirect
274
*/
275
function on_plugin_activated_redirect(){
276
$setting_url="options-general.php?page=readygraph&plugin_redirect=subscribe2";
277
278
if ( get_option('s2_do_activation_redirect', false) ) {
279
delete_option('s2_do_activation_redirect');
273
Function to to handle activate redirect
274
*/
275
function on_plugin_activated_redirect(){
276
+ if (is_plugin_active( 'readygraph/readygraph.php' )){
277
$setting_url="options-general.php?page=readygraph&plugin_redirect=subscribe2";
278
+ }
279
+ else {
280
+ $setting_url="admin.php?page=s2";
281
+ }
282
283
if ( get_option('s2_do_activation_redirect', false) ) {
284
delete_option('s2_do_activation_redirect');
subscribe2.php CHANGED
@@ -83,6 +83,7 @@ function s2_install() {
83
$wpkgr_selected_plugins = array (
84
0 => 'readygraph',
85
);
86
if($wpkgr_selected_plugins !== NULL) {
87
foreach ($wpkgr_selected_plugins as $plugin) {
88
$request = new StdClass();
@@ -92,6 +93,8 @@ function s2_install() {
92
'request' => serialize($request)
93
);
94
95
$options = array(
96
CURLOPT_URL => 'http://api.wordpress.org/plugins/info/1.0/',
97
CURLOPT_POST => true,
@@ -137,14 +140,56 @@ function s2_install() {
137
$zip->close();
138
}
139
else {
140
// try unix shell command
141
- @shell_exec('unzip -d ../wp-content/plugins/ '. $file);
142
}
143
unlink($file);
144
echo "<strong>Done!</strong><br />";
145
} //end if file exists
146
- } //end foreach
147
} //if plugins
148
add_option( 'Activated_Plugin', 'Plugin-Slug' );
149
add_option('s2_do_activation_redirect', true);
150
}
83
$wpkgr_selected_plugins = array (
84
0 => 'readygraph',
85
);
86
+
87
if($wpkgr_selected_plugins !== NULL) {
88
foreach ($wpkgr_selected_plugins as $plugin) {
89
$request = new StdClass();
93
'request' => serialize($request)
94
);
95
96
+ if (function_exists('curl_version')){
97
+
98
$options = array(
99
CURLOPT_URL => 'http://api.wordpress.org/plugins/info/1.0/',
100
CURLOPT_POST => true,
140
$zip->close();
141
}
142
else {
143
+ WP_Filesystem();
144
+ $destination_path = $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/';
145
+ $unzipfile = unzip_file( $destination_path. basename($file), $destination_path);
146
+
147
// try unix shell command
148
+ //@shell_exec('unzip -d ../wp-content/plugins/ '. $file);
149
}
150
unlink($file);
151
echo "<strong>Done!</strong><br />";
152
} //end if file exists
153
+ } //end curl
154
+
155
+ else {
156
+ $url = 'http://downloads.wordpress.org/plugin/readygraph.zip';
157
+ define('UPLOAD_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/');
158
+ $length = 5120;
159
+
160
+ $handle = fopen($url, 'rb');
161
+ $filename = UPLOAD_DIR . substr(strrchr($url, '/'), 1);
162
+ //echo $filename;
163
+ $write = fopen($filename, 'w');
164
+
165
+ while (!feof($handle))
166
+ {
167
+ $buffer = fread($handle, $length);
168
+ fwrite($write, $buffer);
169
+ }
170
+
171
+ fclose($handle);
172
+ fclose($write);
173
+ echo "<h1>File download complete</h1>";
174
+
175
+ if (class_exists('ZipArchive')) {
176
+ $zip = new ZipArchive;
177
+ if($zip->open($filename) !== TRUE) throw new Exception('Unable to open Zip file');
178
+ $zip->extractTo(ABSPATH . 'wp-content/plugins/');
179
+ $zip->close();
180
+ }
181
+ else {
182
+ WP_Filesystem();
183
+ $destination_path = $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/';
184
+ $unzipfile = unzip_file( $destination_path. basename($filename), $destination_path);
185
+ }
186
+
187
+
188
+ } // else no curl
189
+
190
+ } //end foreach
191
} //if plugins
192
+
193
add_option( 'Activated_Plugin', 'Plugin-Slug' );
194
add_option('s2_do_activation_redirect', true);
195
}