WP Live Chat Support - Version 2.2

Version Description

  • Fixed a small bug
Download this release

Release Info

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

Code changes from version 2.1 to 2.2

Files changed (2) hide show
  1. readme.txt +3 -0
  2. wp-live-chat-support.php +6 -11
readme.txt CHANGED
@@ -60,6 +60,9 @@ Once installed and activated, a link should appear in your left navigation panel
60
 
61
  == Changelog ==
62
 
 
 
 
63
  = 2.1 =
64
  * More precise functionality to handle if you are online or offline
65
  * Fixed a bug that recorded visitors when offline
60
 
61
  == Changelog ==
62
 
63
+ = 2.2 =
64
+ * Fixed a small bug
65
+
66
  = 2.1 =
67
  * More precise functionality to handle if you are online or offline
68
  * Fixed a bug that recorded visitors when offline
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: 2.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 = "2.0";
21
 
22
 
23
  add_action('wp_footer', 'wplc_display_box');
@@ -84,15 +84,10 @@ function wplc_output_box() {
84
 
85
  if ($wplc_settings["wplc_settings_align"] == 1) { $wplc_box_align = "left:100px;"; } else { $wplc_box_align = "right:100px;"; }
86
 
87
- $wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
88
- if ($wplc_is_admin_logged_in == 1) {
89
-
90
- } else {
91
  return "";
92
- }
93
-
94
-
95
-
96
 
97
  ?>
98
  <div id="wp-live-chat" style="<?php echo $wplc_box_align; ?>;">
@@ -501,7 +496,7 @@ function wplc_update_chat_statuses() {
501
  wplc_change_chat_status($id,7); // 7 - timedout
502
  }
503
  }
504
- echo time()." ".$timestamp;
505
  }
506
  }
507
 
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: 2.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 = "2.2";
21
 
22
 
23
  add_action('wp_footer', 'wplc_display_box');
84
 
85
  if ($wplc_settings["wplc_settings_align"] == 1) { $wplc_box_align = "left:100px;"; } else { $wplc_box_align = "right:100px;"; }
86
 
87
+ $wplc_is_admin_logged_in = get_transient("wplc_is_admin_logged_in");
88
+ if (!function_exists("wplc_register_pro_version") && $wplc_is_admin_logged_in != 1) {
 
 
89
  return "";
90
+ }
 
 
 
91
 
92
  ?>
93
  <div id="wp-live-chat" style="<?php echo $wplc_box_align; ?>;">
496
  wplc_change_chat_status($id,7); // 7 - timedout
497
  }
498
  }
499
+ //echo time()." ".$timestamp;
500
  }
501
  }
502