WP Live Chat Support - Version 4.0.2

Version Description

  • Table creation bug fix
  • Small bug fix (warning message)
Download this release

Release Info

Developer WP-LiveChat
Plugin Icon 128x128 WP Live Chat Support
Version 4.0.2
Comparing to
See all releases

Code changes from version 4.0.1 to 4.0.2

Files changed (2) hide show
  1. readme.txt +4 -0
  2. wp-live-chat-support.php +13 -4
readme.txt CHANGED
@@ -84,6 +84,10 @@ Overhauled Ajax calls to be less resource intensive in version 4. It's recommend
84
 
85
  == Changelog ==
86
 
 
 
 
 
87
  = 4.0.1 =
88
  * Fixed a bug (missing function)
89
 
84
 
85
  == Changelog ==
86
 
87
+ = 4.0.2 =
88
+ * Table creation bug fix
89
+ * Small bug fix (warning message)
90
+
91
  = 4.0.1 =
92
  * Fixed a bug (missing function)
93
 
wp-live-chat-support.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Live Chat Support
4
  Plugin URI: http://www.wp-livechat.com
5
  Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP Live Chat Support. No third party connection required!
6
- Version: 4.0.1
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
@@ -17,7 +17,7 @@ global $wplc_tblname_chats;
17
  global $wplc_tblname_msgs;
18
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
19
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
20
- $wplc_version = "4.0.1";
21
 
22
 
23
 
@@ -198,6 +198,14 @@ function wplc_output_box() {
198
  function wplc_display_box() {
199
  $wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
200
  if ($wplc_is_admin_logged_in != 1) { echo "<!-- wplc a-n-c -->"; }
 
 
 
 
 
 
 
 
201
  if (function_exists("wplc_register_pro_version")) { wplc_pro_draw_user_box(); } else { wplc_draw_user_box(); }
202
  }
203
 
@@ -394,7 +402,7 @@ function wplc_admin_javascript() {
394
  function wplc_admin_menu_layout() {
395
  if (function_exists("wplc_register_pro_version")) {
396
  global $wplc_pro_version;
397
- if (floatval($wplc_pro_version) < 4.0) {
398
  ?>
399
  <div class='error below-h1'>
400
 
@@ -802,7 +810,7 @@ function wplc_handle_db() {
802
  CREATE TABLE ".$wplc_tblname_msgs." (
803
  id int(11) NOT NULL AUTO_INCREMENT,
804
  chat_sess_id int(11) NOT NULL,
805
- from varchar(150) CHARACTER SET utf8 NOT NULL,
806
  msg varchar(700) CHARACTER SET utf8 NOT NULL,
807
  timestamp datetime NOT NULL,
808
  status INT(3) NOT NULL,
@@ -813,6 +821,7 @@ function wplc_handle_db() {
813
 
814
  require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
815
  dbDelta($sql);
 
816
  add_option("wplc_db_version", $wplc_version);
817
  update_option("wplc_db_version",$wplc_version);
818
  }
3
  Plugin Name: WP Live Chat Support
4
  Plugin URI: http://www.wp-livechat.com
5
  Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP Live Chat Support. No third party connection required!
6
+ Version: 4.0.2
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
17
  global $wplc_tblname_msgs;
18
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
19
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
20
+ $wplc_version = "4.0.2";
21
 
22
 
23
 
198
  function wplc_display_box() {
199
  $wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
200
  if ($wplc_is_admin_logged_in != 1) { echo "<!-- wplc a-n-c -->"; }
201
+
202
+ /* do not show if pro is outdated */
203
+ global $wplc_pro_version;
204
+ if (isset($wplc_pro_version)) {
205
+ $float_version = floatval($wplc_pro_version);
206
+ if ($float_version < 4) { return; }
207
+ }
208
+
209
  if (function_exists("wplc_register_pro_version")) { wplc_pro_draw_user_box(); } else { wplc_draw_user_box(); }
210
  }
211
 
402
  function wplc_admin_menu_layout() {
403
  if (function_exists("wplc_register_pro_version")) {
404
  global $wplc_pro_version;
405
+ if (floatval($wplc_pro_version) < 4) {
406
  ?>
407
  <div class='error below-h1'>
408
 
810
  CREATE TABLE ".$wplc_tblname_msgs." (
811
  id int(11) NOT NULL AUTO_INCREMENT,
812
  chat_sess_id int(11) NOT NULL,
813
+ `from` varchar(150) CHARACTER SET utf8 NOT NULL,
814
  msg varchar(700) CHARACTER SET utf8 NOT NULL,
815
  timestamp datetime NOT NULL,
816
  status INT(3) NOT NULL,
821
 
822
  require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
823
  dbDelta($sql);
824
+
825
  add_option("wplc_db_version", $wplc_version);
826
  update_option("wplc_db_version",$wplc_version);
827
  }