Version Description
- Changed newsletter copy to copy even the editor and traking status
- Fixed the subscribers search list
- Added some more buttons on Newsletter editor
- Added the subscription form menu voice (I cannot answer anymore the same request about subscribe button translation :-)
- Suppressed warning on log function
Download this release
Release Info
Developer | satollo |
Plugin | Newsletter |
Version | 3.4.0 |
Comparing to | |
See all releases |
Code changes from version 3.3.9 to 3.4.0
- emails/edit.php +2 -2
- emails/index.php +3 -0
- includes/logger.php +1 -1
- main/diagnostic.php +3 -0
- plugin.php +2 -2
- readme.txt +8 -0
- subscription/options.php +2 -1
- subscription/subscription.php +1 -1
- users/index.php +1 -2
emails/edit.php
CHANGED
@@ -183,8 +183,8 @@ if ($email['editor'] == 0) {
|
|
183 |
theme : "advanced",
|
184 |
plugins: "table,fullscreen,legacyoutput",
|
185 |
theme_advanced_disable : "styleselect",
|
186 |
-
theme_advanced_buttons1_add: "forecolor,blockquote,code",
|
187 |
-
|
188 |
relative_urls : false,
|
189 |
theme_advanced_statusbar_location: "bottom",
|
190 |
remove_script_host : false,
|
183 |
theme : "advanced",
|
184 |
plugins: "table,fullscreen,legacyoutput",
|
185 |
theme_advanced_disable : "styleselect",
|
186 |
+
theme_advanced_buttons1_add: "forecolor,blockquote,code,fontsizeselect,fontselect",
|
187 |
+
theme_advanced_buttons3_add : "tablecontrols,fullscreen",
|
188 |
relative_urls : false,
|
189 |
theme_advanced_statusbar_location: "bottom",
|
190 |
remove_script_host : false,
|
emails/index.php
CHANGED
@@ -26,6 +26,9 @@ if ($controls->is_action('copy')) {
|
|
26 |
$email['message_text'] = $original->message_text;
|
27 |
$email['send_on'] = time();
|
28 |
$email['type'] = 'message';
|
|
|
|
|
|
|
29 |
Newsletter::instance()->save_email($email);
|
30 |
$controls->messages .= 'Message duplicated.';
|
31 |
}
|
26 |
$email['message_text'] = $original->message_text;
|
27 |
$email['send_on'] = time();
|
28 |
$email['type'] = 'message';
|
29 |
+
$email['editor'] = $original->editor;
|
30 |
+
$email['track'] = $original->track;
|
31 |
+
|
32 |
Newsletter::instance()->save_email($email);
|
33 |
$controls->messages .= 'Message duplicated.';
|
34 |
}
|
includes/logger.php
CHANGED
@@ -48,7 +48,7 @@ class NewsletterLogger {
|
|
48 |
if (is_array($text) || is_object($text)) $text = print_r($text, true);
|
49 |
|
50 |
// The "logs" dir is created on Newsletter constructor.
|
51 |
-
$res = file_put_contents($this->file, $time . ' - ' . memory_get_usage() . ' - ' . $text . "\n", FILE_APPEND | FILE_TEXT);
|
52 |
if ($res === false) {
|
53 |
$this->level = self::NONE;
|
54 |
}
|
48 |
if (is_array($text) || is_object($text)) $text = print_r($text, true);
|
49 |
|
50 |
// The "logs" dir is created on Newsletter constructor.
|
51 |
+
$res = @file_put_contents($this->file, $time . ' - ' . size_format(memory_get_usage(), 1) . ' - ' . $text . "\n", FILE_APPEND | FILE_TEXT);
|
52 |
if ($res === false) {
|
53 |
$this->level = self::NONE;
|
54 |
}
|
main/diagnostic.php
CHANGED
@@ -37,6 +37,9 @@ if ($controls->is_action('upgrade')) {
|
|
37 |
NewsletterSubscription::instance()->upgrade();
|
38 |
NewsletterEmails::instance()->upgrade();
|
39 |
NewsletterStatistics::instance()->upgrade();
|
|
|
|
|
|
|
40 |
$controls->messages = 'Upgrade forced!';
|
41 |
}
|
42 |
|
37 |
NewsletterSubscription::instance()->upgrade();
|
38 |
NewsletterEmails::instance()->upgrade();
|
39 |
NewsletterStatistics::instance()->upgrade();
|
40 |
+
if (class_exists('NewsletterFollowup')) {
|
41 |
+
NewsletterFollowup::instance()->upgrade();
|
42 |
+
}
|
43 |
$controls->messages = 'Upgrade forced!';
|
44 |
}
|
45 |
|
plugin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: http://www.satollo.net/plugins/newsletter
|
6 |
Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="http://www.satollo.net/plugins/newsletter#update">this page</a> to know what's changed.</strong>
|
7 |
-
Version: 3.
|
8 |
Author: Stefano Lissa
|
9 |
Author URI: http://www.satollo.net
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
@@ -13,7 +13,7 @@
|
|
13 |
*/
|
14 |
|
15 |
// Useed as dummy parameter on css and js links
|
16 |
-
define('NEWSLETTER_VERSION', '3.
|
17 |
|
18 |
global $wpdb, $newsletter;
|
19 |
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: http://www.satollo.net/plugins/newsletter
|
6 |
Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="http://www.satollo.net/plugins/newsletter#update">this page</a> to know what's changed.</strong>
|
7 |
+
Version: 3.4.0
|
8 |
Author: Stefano Lissa
|
9 |
Author URI: http://www.satollo.net
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
13 |
*/
|
14 |
|
15 |
// Useed as dummy parameter on css and js links
|
16 |
+
define('NEWSLETTER_VERSION', '3.4.0');
|
17 |
|
18 |
global $wpdb, $newsletter;
|
19 |
|
readme.txt
CHANGED
@@ -55,6 +55,14 @@ No screen shots are available at this time.
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
= 3.3.9 =
|
59 |
|
60 |
* Fixed activation in debug mode
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= 3.4.0 =
|
59 |
+
|
60 |
+
* Changed newsletter copy to copy even the editor and traking status
|
61 |
+
* Fixed the subscribers search list
|
62 |
+
* Added some more buttons on Newsletter editor
|
63 |
+
* Added the subscription form menu voice (I cannot answer anymore the same request about subscribe button translation :-)
|
64 |
+
* Suppressed warning on log function
|
65 |
+
|
66 |
= 3.3.9 =
|
67 |
|
68 |
* Fixed activation in debug mode
|
subscription/options.php
CHANGED
@@ -104,7 +104,8 @@ if ($controls->is_action('create')) {
|
|
104 |
theme_advanced_disable : "styleselect",
|
105 |
relative_urls : false,
|
106 |
remove_script_host : false,
|
107 |
-
|
|
|
108 |
theme_advanced_toolbar_location : "top",
|
109 |
theme_advanced_resizing : true,
|
110 |
theme_advanced_statusbar_location: "bottom",
|
104 |
theme_advanced_disable : "styleselect",
|
105 |
relative_urls : false,
|
106 |
remove_script_host : false,
|
107 |
+
theme_advanced_buttons1_add: "forecolor,blockquote,code,fontsizeselect,fontselect",
|
108 |
+
theme_advanced_buttons3_add : "tablecontrols,fullscreen",
|
109 |
theme_advanced_toolbar_location : "top",
|
110 |
theme_advanced_resizing : true,
|
111 |
theme_advanced_statusbar_location: "bottom",
|
subscription/subscription.php
CHANGED
@@ -119,7 +119,7 @@ class NewsletterSubscription extends NewsletterModule {
|
|
119 |
|
120 |
function admin_menu() {
|
121 |
$this->add_menu_page('options', 'Subscription Steps');
|
122 |
-
$this->
|
123 |
$this->add_admin_page('forms', 'Forms');
|
124 |
}
|
125 |
|
119 |
|
120 |
function admin_menu() {
|
121 |
$this->add_menu_page('options', 'Subscription Steps');
|
122 |
+
$this->add_menu_page('profile', 'Subscription Form');
|
123 |
$this->add_admin_page('forms', 'Forms');
|
124 |
}
|
125 |
|
users/index.php
CHANGED
@@ -62,6 +62,7 @@ if (!empty($controls->data['search_status'])) {
|
|
62 |
|
63 |
// Total items, total pages
|
64 |
$items_per_page = 20;
|
|
|
65 |
$count = Newsletter::instance()->store->get_count($wpdb->prefix . 'newsletter', $where);
|
66 |
$last_page = floor($count / $items_per_page) - ($count % $items_per_page == 0 ? 1 : 0);
|
67 |
if ($last_page < 0) $last_page = 0;
|
@@ -96,8 +97,6 @@ if ($controls->is_action('search')) {
|
|
96 |
if ($controls->data['search_page'] < 0) $controls->data['search_page'] = 0;
|
97 |
if ($controls->data['search_page'] > $last_page) $controls->data['search_page'] = $last_page;
|
98 |
|
99 |
-
$where = $wpdb->prepare($where, $query_args);
|
100 |
-
|
101 |
$query = "select * from " . $wpdb->prefix . "newsletter " . $where . " order by id desc";
|
102 |
$query .= " limit " . ($controls->data['search_page']*$items_per_page) . "," . $items_per_page;
|
103 |
$list = $wpdb->get_results($query);
|
62 |
|
63 |
// Total items, total pages
|
64 |
$items_per_page = 20;
|
65 |
+
$where = $wpdb->prepare($where, $query_args);
|
66 |
$count = Newsletter::instance()->store->get_count($wpdb->prefix . 'newsletter', $where);
|
67 |
$last_page = floor($count / $items_per_page) - ($count % $items_per_page == 0 ? 1 : 0);
|
68 |
if ($last_page < 0) $last_page = 0;
|
97 |
if ($controls->data['search_page'] < 0) $controls->data['search_page'] = 0;
|
98 |
if ($controls->data['search_page'] > $last_page) $controls->data['search_page'] = $last_page;
|
99 |
|
|
|
|
|
100 |
$query = "select * from " . $wpdb->prefix . "newsletter " . $where . " order by id desc";
|
101 |
$query .= " limit " . ($controls->data['search_page']*$items_per_page) . "," . $items_per_page;
|
102 |
$list = $wpdb->get_results($query);
|