Email Subscribers & Newsletters - Version 3.3.3

Version Description

(11.07.2017) =

  • Fix: Settings used to get reset to default values when upgraded to a version higher than version 3.3
Download this release

Release Info

Developer storeapps
Plugin Icon 128x128 Email Subscribers & Newsletters
Version 3.3.3
Comparing to
See all releases

Code changes from version 3.3.2 to 3.3.3

changelog.txt CHANGED
@@ -4,6 +4,10 @@ Author : Icegram
4
  Author URI : http://www.icegram.com/
5
  License : GPLv3
6
 
 
 
 
 
7
  ************************************************************Version 3.3.2************************************************************
8
 
9
  * New: Improvements in default Post Notification & Newsletter templates created on first install of plugin
4
  Author URI : http://www.icegram.com/
5
  License : GPLv3
6
 
7
+ ************************************************************Version 3.3.3************************************************************
8
+
9
+ * Fix: Settings used to get reset to default values when upgraded to a version higher than version 3.3
10
+
11
  ************************************************************Version 3.3.2************************************************************
12
 
13
  * New: Improvements in default Post Notification & Newsletter templates created on first install of plugin
classes/es-sendmail.php CHANGED
@@ -275,7 +275,7 @@ class es_cls_sendmail {
275
  $post_thumbnail = "";
276
  $post_thumbnail_link = "";
277
  $post = get_post($post_id);
278
- $excerpt_length = 50; // Change this value to increase the content length in newsletter.
279
  $post_title = $post->post_title;
280
  $subject = str_replace('###POSTTITLE###', $post_title, $subject);
281
  $post_link = get_permalink($post_id);
275
  $post_thumbnail = "";
276
  $post_thumbnail_link = "";
277
  $post = get_post($post_id);
278
+ $excerpt_length = 50; //Change this value to change the ###POSTDESC### content in the Post Notification. It also considers spaces as a character.
279
  $post_title = $post->post_title;
280
  $subject = str_replace('###POSTTITLE###', $post_title, $subject);
281
  $post_link = get_permalink($post_id);
email-subscribers.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Email Subscribers & Newsletters
4
  * Plugin URI: http://www.icegram.com/
5
  * Description: Add subscription forms on website, send HTML newsletters & automatically notify subscribers about new blog posts once it is published.
6
- * Version: 3.3.2
7
  * Author: Icegram
8
  * Author URI: http://www.icegram.com/
9
  * Requires at least: 3.4
3
  * Plugin Name: Email Subscribers & Newsletters
4
  * Plugin URI: http://www.icegram.com/
5
  * Description: Add subscription forms on website, send HTML newsletters & automatically notify subscribers about new blog posts once it is published.
6
+ * Version: 3.3.3
7
  * Author: Icegram
8
  * Author URI: http://www.icegram.com/
9
  * Requires at least: 3.4
languages/email-subscribers.pot CHANGED
@@ -2,13 +2,13 @@
2
  # This file is distributed under the same license as the Email Subscribers & Newsletters package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Email Subscribers & Newsletters 3.3.2\n"
6
  "Report-Msgid-Bugs-To: http://www.storeapps.org/support/contact-us/\n"
7
- "POT-Creation-Date: 2017-07-10 11:57:27+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: Mon, 10 Jul 2017 17:27:27 +0530\n"
12
  "Last-Translator: Ratnakar Dubey <ratnakar.dubey@storeapps.org>\n"
13
  "Language-Team: StoreApps <support@storeapps.org>\n"
14
 
@@ -1934,9 +1934,9 @@ msgstr ""
1934
  msgid "Email Subscribers & Newsletters"
1935
  msgstr ""
1936
 
1937
- #. #-#-#-#-# email-subscribers.pot (Email Subscribers & Newsletters 3.3.2) #-#-#-#-#
1938
  #. Plugin URI of the plugin/theme
1939
- #. #-#-#-#-# email-subscribers.pot (Email Subscribers & Newsletters 3.3.2) #-#-#-#-#
1940
  #. Author URI of the plugin/theme
1941
  msgid "http://www.icegram.com/"
1942
  msgstr ""
2
  # This file is distributed under the same license as the Email Subscribers & Newsletters package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Email Subscribers & Newsletters 3.3.3\n"
6
  "Report-Msgid-Bugs-To: http://www.storeapps.org/support/contact-us/\n"
7
+ "POT-Creation-Date: 2017-07-11 12:44:43+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: Tue, 11 Jul 2017 18:14:43 +0530\n"
12
  "Last-Translator: Ratnakar Dubey <ratnakar.dubey@storeapps.org>\n"
13
  "Language-Team: StoreApps <support@storeapps.org>\n"
14
 
1934
  msgid "Email Subscribers & Newsletters"
1935
  msgstr ""
1936
 
1937
+ #. #-#-#-#-# email-subscribers.pot (Email Subscribers & Newsletters 3.3.3) #-#-#-#-#
1938
  #. Plugin URI of the plugin/theme
1939
+ #. #-#-#-#-# email-subscribers.pot (Email Subscribers & Newsletters 3.3.3) #-#-#-#-#
1940
  #. Author URI of the plugin/theme
1941
  msgid "http://www.icegram.com/"
1942
  msgstr ""
query/db_default.php CHANGED
@@ -10,41 +10,47 @@ class es_cls_default {
10
 
11
  global $wpdb;
12
 
13
- $admin_email = get_option('admin_email');
14
- $blogname = get_option('blogname');
 
15
 
16
- if($admin_email == "") {
17
- $admin_email = "admin@gmail.com";
18
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
- $home_url = home_url('/');
21
- $optinlink = $home_url . "?es=optin&db=###DBID###&email=###EMAIL###&guid=###GUID###";
22
- $unsublink = $home_url . "?es=unsubscribe&db=###DBID###&email=###EMAIL###&guid=###GUID###";
23
-
24
- $default = array();
25
- $default['ig_es_fromname'] = "Admin";
26
- $default['ig_es_fromemail'] = $admin_email;
27
- $default['ig_es_emailtype'] = "WP HTML MAIL";
28
- $default['ig_es_notifyadmin'] = "YES";
29
- $default['ig_es_adminemail'] = $admin_email;
30
- $default['ig_es_admin_new_sub_subject'] = $blogname . " New email subscription";
31
- $default['ig_es_admin_new_sub_content'] = "Hi Admin, \r\n\r\nWe have received a request to subscribe new email address to receive emails from our website. \r\n\r\nName : ###NAME###\r\nEmail: ###EMAIL###\r\nGroup: ###GROUP### \r\n\r\nThank You\r\n".$blogname;
32
- $default['ig_es_welcomeemail'] = "YES";
33
- $default['ig_es_welcomesubject'] = $blogname . " Welcome to our newsletter";
34
- $default['ig_es_welcomecontent'] = "Hi ###NAME###, \r\n\r\nWe have received a request to subscribe this email address to receive newsletter from our website in group ###GROUP###. \r\n\r\nThank You\r\n".$blogname." \r\n\r\n No longer interested in emails from ".$blogname."?. Please <a href='###LINK###'>click here</a> to unsubscribe";
35
- $default['ig_es_optintype'] = "Double Opt In";
36
- $default['ig_es_confirmsubject'] = $blogname . " confirm subscription";
37
- $default['ig_es_confirmcontent'] = "Hi ###NAME###, \r\n\r\nA subscription request for this email address was received. Please confirm it by <a href='###LINK###'>clicking here</a>.\r\n\r\nIf you still cannot subscribe, please click this link : \r\n ###LINK### \r\n\r\nThank You\r\n".$blogname;
38
- $default['ig_es_optinlink'] = $optinlink;
39
- $default['ig_es_unsublink'] = $unsublink;
40
- $default['ig_es_unsubcontent'] = "No longer interested in emails from ".$blogname."?. Please <a href='###LINK###'>click here</a> to unsubscribe";
41
- $default['ig_es_unsubtext'] = "Thank You, You have been successfully unsubscribed. You will no longer hear from us.";
42
- $default['ig_es_successmsg'] = "Thank You, You have been successfully subscribed.";
43
- $default['ig_es_suberror'] = "Oops.. This subscription cant be completed, sorry. The email address is blocked or already subscribed. Thank you.";
44
- $default['ig_es_unsuberror'] = "Oops.. We are getting some technical error. Please try again or contact admin.";
45
-
46
- foreach ( $default as $option_name => $option_value ) {
47
- update_option( $option_name, $option_value );
48
  }
49
 
50
  return true;
10
 
11
  global $wpdb;
12
 
13
+ //Needs work-temp fixed in v3.3.3
14
+ $result = es_cls_dbquery::es_view_subscriber_count(0);
15
+ if ($result == 0) {
16
 
17
+ $admin_email = get_option('admin_email');
18
+ $blogname = get_option('blogname');
19
+
20
+ if($admin_email == "") {
21
+ $admin_email = "admin@gmail.com";
22
+ }
23
+
24
+ $home_url = home_url('/');
25
+ $optinlink = $home_url . "?es=optin&db=###DBID###&email=###EMAIL###&guid=###GUID###";
26
+ $unsublink = $home_url . "?es=unsubscribe&db=###DBID###&email=###EMAIL###&guid=###GUID###";
27
+
28
+ $default = array();
29
+ $default['ig_es_fromname'] = "Admin";
30
+ $default['ig_es_fromemail'] = $admin_email;
31
+ $default['ig_es_emailtype'] = "WP HTML MAIL";
32
+ $default['ig_es_notifyadmin'] = "YES";
33
+ $default['ig_es_adminemail'] = $admin_email;
34
+ $default['ig_es_admin_new_sub_subject'] = $blogname . " New email subscription";
35
+ $default['ig_es_admin_new_sub_content'] = "Hi Admin, \r\n\r\nWe have received a request to subscribe new email address to receive emails from our website. \r\n\r\nName : ###NAME###\r\nEmail: ###EMAIL###\r\nGroup: ###GROUP### \r\n\r\nThank You\r\n".$blogname;
36
+ $default['ig_es_welcomeemail'] = "YES";
37
+ $default['ig_es_welcomesubject'] = $blogname . " Welcome to our newsletter";
38
+ $default['ig_es_welcomecontent'] = "Hi ###NAME###, \r\n\r\nWe have received a request to subscribe this email address to receive newsletter from our website in group ###GROUP###. \r\n\r\nThank You\r\n".$blogname." \r\n\r\n No longer interested in emails from ".$blogname."?. Please <a href='###LINK###'>click here</a> to unsubscribe";
39
+ $default['ig_es_optintype'] = "Double Opt In";
40
+ $default['ig_es_confirmsubject'] = $blogname . " confirm subscription";
41
+ $default['ig_es_confirmcontent'] = "Hi ###NAME###, \r\n\r\nA subscription request for this email address was received. Please confirm it by <a href='###LINK###'>clicking here</a>.\r\n\r\nIf you still cannot subscribe, please click this link : \r\n ###LINK### \r\n\r\nThank You\r\n".$blogname;
42
+ $default['ig_es_optinlink'] = $optinlink;
43
+ $default['ig_es_unsublink'] = $unsublink;
44
+ $default['ig_es_unsubcontent'] = "No longer interested in emails from ".$blogname."?. Please <a href='###LINK###'>click here</a> to unsubscribe";
45
+ $default['ig_es_unsubtext'] = "Thank You, You have been successfully unsubscribed. You will no longer hear from us.";
46
+ $default['ig_es_successmsg'] = "Thank You, You have been successfully subscribed.";
47
+ $default['ig_es_suberror'] = "Oops.. This subscription cant be completed, sorry. The email address is blocked or already subscribed. Thank you.";
48
+ $default['ig_es_unsuberror'] = "Oops.. We are getting some technical error. Please try again or contact admin.";
49
+
50
+ foreach ( $default as $option_name => $option_value ) {
51
+ update_option( $option_name, $option_value );
52
+ }
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  }
55
 
56
  return true;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Author URI: http://www.icegram.com/
5
  Tags: email marketing, email newsletter form, email signup, email widget, newsletter, newsletter signup, subscribe, subscription form, bulk emails, signup form, list builder, lead generation
6
  Requires at least: 3.4
7
  Tested up to: 4.8
8
- Stable tag: 3.3.2
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.htmlss
11
 
@@ -309,6 +309,10 @@ Use our free plugin [Email Subscribers - Group Selector](https://wordpress.org/p
309
 
310
  == Changelog ==
311
 
 
 
 
 
312
  = 3.3.2 (10.07.2017) =
313
 
314
  * New: Improvements in default Post Notification & Newsletter templates created on first install of plugin
@@ -584,6 +588,10 @@ For the changelog of earlier versions, please refer to the separate [changelog.t
584
 
585
  == Upgrade Notice ==
586
 
 
 
 
 
587
  = 3.3.2 (10.07.2017) =
588
 
589
  * New: Improvements in default Post Notification & Newsletter templates created on first install of plugin
5
  Tags: email marketing, email newsletter form, email signup, email widget, newsletter, newsletter signup, subscribe, subscription form, bulk emails, signup form, list builder, lead generation
6
  Requires at least: 3.4
7
  Tested up to: 4.8
8
+ Stable tag: 3.3.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.htmlss
11
 
309
 
310
  == Changelog ==
311
 
312
+ = 3.3.3 (11.07.2017) =
313
+
314
+ * Fix: Settings used to get reset to default values when upgraded to a version higher than version 3.3
315
+
316
  = 3.3.2 (10.07.2017) =
317
 
318
  * New: Improvements in default Post Notification & Newsletter templates created on first install of plugin
588
 
589
  == Upgrade Notice ==
590
 
591
+ = 3.3.3 (11.07.2017) =
592
+
593
+ * Fix: Settings used to get resetted to default values when upgraded to a version higher than version 3.3
594
+
595
  = 3.3.2 (10.07.2017) =
596
 
597
  * New: Improvements in default Post Notification & Newsletter templates created on first install of plugin