WP Live Chat Support - Version 5.0.5

Version Description

  • 2015-09-09 - Low Priority =
  • Fixed a bug that displayed an error message to update the live chat plugin while using the latest version (Pro)
  • Fixed a bug where the mobile detect class would only work if the Pro was enabled
  • Fixed a bug where the live chat window would move to the bottom left of the page when being minimized
  • You can now see the visitors IP address on the Live Chat dashboard
  • Alert message removed when a user was made a live chat agent on the settings page (Pro)
  • Fixed a bug that would prevent the user from typing if they had a previous live chat session (Pro)
Download this release

Release Info

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

Code changes from version 5.0.4 to 5.0.5

Files changed (3) hide show
  1. js/wplc_u.js +5 -6
  2. readme.txt +9 -1
  3. wp-live-chat-support.php +26 -16
js/wplc_u.js CHANGED
@@ -278,10 +278,10 @@ jQuery(document).ready(function() {
278
  jQuery("#wp-live-chat").css("left", "");
279
  jQuery("#wp-live-chat").css("bottom", "0");
280
  jQuery("#wp-live-chat").css("right", "100px");
281
- } else if(jQuery("#wp-live-chat").attr("original_pos") === "bottom_right"){
282
- jQuery("#wp-live-chat").css("left", "");
283
  jQuery("#wp-live-chat").css("bottom", "0");
284
- jQuery("#wp-live-chat").css("right", "100px");
285
  } else if(jQuery("#wp-live-chat").attr("original_pos") === "left"){
286
  jQuery("#wp-live-chat").css("left", "0");
287
  jQuery("#wp-live-chat").css("bottom", "100px");
@@ -289,6 +289,7 @@ jQuery(document).ready(function() {
289
  jQuery("#wp-live-chat").css("left", "");
290
  jQuery("#wp-live-chat").css("right", "0");
291
  jQuery("#wp-live-chat").css("bottom", "100px");
 
292
  }
293
  jQuery('#wp-live-chat').addClass("wplc_close");
294
  jQuery('#wp-live-chat').removeClass("wplc_open");
@@ -522,6 +523,4 @@ jQuery(document).ready(function() {
522
 
523
  });
524
 
525
- });
526
-
527
-
278
  jQuery("#wp-live-chat").css("left", "");
279
  jQuery("#wp-live-chat").css("bottom", "0");
280
  jQuery("#wp-live-chat").css("right", "100px");
281
+ } else if(jQuery("#wp-live-chat").attr("original_pos") === "bottom_left"){
282
+ jQuery("#wp-live-chat").css("left", "100px");
283
  jQuery("#wp-live-chat").css("bottom", "0");
284
+ jQuery("#wp-live-chat").css("right", "");
285
  } else if(jQuery("#wp-live-chat").attr("original_pos") === "left"){
286
  jQuery("#wp-live-chat").css("left", "0");
287
  jQuery("#wp-live-chat").css("bottom", "100px");
289
  jQuery("#wp-live-chat").css("left", "");
290
  jQuery("#wp-live-chat").css("right", "0");
291
  jQuery("#wp-live-chat").css("bottom", "100px");
292
+ jQuery("#wp-live-chat").css("width", "");
293
  }
294
  jQuery('#wp-live-chat').addClass("wplc_close");
295
  jQuery('#wp-live-chat').removeClass("wplc_open");
523
 
524
  });
525
 
526
+ });
 
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: WP-LiveChat
3
  Donate link: http://www.wp-livechat.com
4
  Tags: live chat, live support, chat plugin, live help, wordpress chat, customer support, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, support, chat software, chat online, visitor chat, chat, free chat, free live chat, customer support, online support, live help, chat widget
5
  Requires at least: 3.8
6
- Tested up to: 4.2.3
7
  Stable tag: trunk
8
  License: GPLv2
9
 
@@ -193,6 +193,14 @@ It is highly recommended that you upgrade to WP Live Chat Support version 4.1.4
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
 
 
 
196
  = 5.0.4 - 2015-08-06 - Medium Priority =
197
  * WP Live Chat Support is now compatible with all caching plugins
198
  * Fixed a bug that set the wrong permissions for the default chat agent
3
  Donate link: http://www.wp-livechat.com
4
  Tags: live chat, live support, chat plugin, live help, wordpress chat, customer support, chat, live chat plugin, live support plugin, live chat support plugin, chat plugin, support plugin, support, chat software, chat online, visitor chat, chat, free chat, free live chat, customer support, online support, live help, chat widget
5
  Requires at least: 3.8
6
+ Tested up to: 4.3
7
  Stable tag: trunk
8
  License: GPLv2
9
 
193
 
194
  == Changelog ==
195
 
196
+ = 5.0.5 - 2015-09-09 - Low Priority =
197
+ * Fixed a bug that displayed an error message to update the live chat plugin while using the latest version (Pro)
198
+ * Fixed a bug where the mobile detect class would only work if the Pro was enabled
199
+ * Fixed a bug where the live chat window would move to the bottom left of the page when being minimized
200
+ * You can now see the visitors IP address on the Live Chat dashboard
201
+ * Alert message removed when a user was made a live chat agent on the settings page (Pro)
202
+ * Fixed a bug that would prevent the user from typing if they had a previous live chat session (Pro)
203
+
204
  = 5.0.4 - 2015-08-06 - Medium Priority =
205
  * WP Live Chat Support is now compatible with all caching plugins
206
  * Fixed a bug that set the wrong permissions for the default chat agent
wp-live-chat-support.php CHANGED
@@ -3,13 +3,20 @@
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: 5.0.4
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
10
 
11
 
12
- /*
 
 
 
 
 
 
 
13
  * 5.0.4 - 2015-08-06 - Medium priority
14
  * WP Live Chat Support is now compatible with all caching plugins
15
  * Fixed a bug that set the wrong permissions for the default agent
@@ -251,7 +258,7 @@ global $wplc_tblname_chats;
251
  global $wplc_tblname_msgs;
252
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
253
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
254
- $wplc_version = "5.0.4";
255
 
256
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
257
  define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
@@ -396,16 +403,17 @@ function wplc_load_user_js () {
396
  }
397
  }
398
 
399
- if (function_exists("wplc_register_pro_version")) {
400
- $wplc_settings = get_option("WPLC_SETTINGS");
401
- if (!class_exists('Mobile_Detect')) {
402
- require_once (plugin_dir_path(__FILE__) . 'includes/Mobile_Detect.php');
403
- }
404
- $wplc_detect_device = new Mobile_Detect;
405
- $wplc_is_mobile = $wplc_detect_device->isMobile();
406
- if ($wplc_is_mobile && !isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] != 1) {
407
- return;
408
- }
 
409
  if (function_exists('wplc_hide_chat_when_offline')) {
410
  $wplc_hide_chat = wplc_hide_chat_when_offline();
411
  if (!$wplc_hide_chat) {
@@ -721,7 +729,7 @@ function wplc_output_box_ajax() {
721
  if ($wplc_ask_user_details == 1) {
722
  //Ask the user to enter name and email
723
 
724
- $ret_msg .= "<input type=\"text\" name=\"wplc_name\" id=\"wplc_name\" value=\"".$wplc_loggedin_user_name."\" placeholder=\"".__("Name", "wplivechat")."\" />";
725
  $ret_msg .= "<input type=\"text\" name=\"wplc_email\" id=\"wplc_email\" wplc_hide=\"0\" value=\"".$wplc_loggedin_user_email."\" placeholder=\"".__("Email", "wplivechat")."\" />";
726
  } else {
727
  //Dont ask the user
@@ -1424,6 +1432,7 @@ function wplc_admin_javascript() {
1424
  }
1425
 
1426
  function wplc_create_chat_ul_element_after_eating_vindaloo(obj,key) {
 
1427
  var v_img = obj[key]['image'];
1428
  var v_name = obj[key]['name'];
1429
  var v_email = obj[key]['email'];
@@ -1435,11 +1444,12 @@ function wplc_admin_javascript() {
1435
  var v_type = obj[key]['type'];
1436
  var v_action = obj[key]['action'];
1437
  var v_status_string = wplc_get_status_name(parseInt(v_status));
 
1438
 
1439
  var v_vis_html = "<span class='wplc_headerspan_v'>"+v_name+"</span>";
1440
  var v_nr_html = "<span class='wplc_headerspan_nr'><span class='browser-tag'>"+v_browser+"</span> "+wplc_get_type_box(v_type)+"</span>";
1441
  var v_time_html = "<span class='wplc_headerspan_t'><span class='wplc_status_box wplc_status_1'>"+v_time+"</span></span>";
1442
- var v_nr_data = "<span class='wplc_headerspan_d'><span class='wplc-sub-item-header'>Page:</span> <a href='"+v_browsing_url+"' target='_BLANK'>"+v_browsing+"</a><br /><span class='wplc-sub-item-header'>Email:</span> <a href='mailto:"+v_email+"' target='_BLANK'>"+v_email+"</a></span>";
1443
  var v_nr_status_html = "<span class='wplc_headerspan_s'>"+v_status_string+"</span>";
1444
  var v_nr_action_html = "<span class='wplc_headerspan_a'>"+v_action+"</span>";
1445
 
@@ -1603,7 +1613,7 @@ function wplc_admin_menu_layout() {
1603
  }
1604
  $wplc_ver = str_replace('.', '', $wplc_pro_version);
1605
  $wplc_ver = intval($wplc_ver);
1606
- if ($wplc_ver != 501) {
1607
  ?>
1608
  <div class='error below-h1'>
1609
 
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: 5.0.5
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
10
 
11
 
12
+ /* 5.0.5 - 2015-09-09 - Low Priority
13
+ * Fixed a bug that displayed an error message to update the live chat plugin while using the latest version (Pro)
14
+ * Fixed a bug where the mobile detect class would only work if the Pro was enabled
15
+ * Fixed a bug where the live chat window would move to the bottom left of the page when being minimized
16
+ * You can now see the visitors IP address on the Live Chat dashboard
17
+ * Alert message removed when a user was made a live chat agent on the settings page (Pro)
18
+ * Fixed a bug that would prevent the user from typing if they had a previous live chat session (Pro)
19
+ *
20
  * 5.0.4 - 2015-08-06 - Medium priority
21
  * WP Live Chat Support is now compatible with all caching plugins
22
  * Fixed a bug that set the wrong permissions for the default agent
258
  global $wplc_tblname_msgs;
259
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
260
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
261
+ $wplc_version = "5.0.5";
262
 
263
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
264
  define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
403
  }
404
  }
405
 
406
+ $wplc_settings = get_option("WPLC_SETTINGS");
407
+ if (!class_exists('Mobile_Detect')) {
408
+ require_once (plugin_dir_path(__FILE__) . 'includes/Mobile_Detect.php');
409
+ }
410
+ $wplc_detect_device = new Mobile_Detect;
411
+ $wplc_is_mobile = $wplc_detect_device->isMobile();
412
+ if ($wplc_is_mobile && !isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] != 1) {
413
+ return;
414
+ }
415
+
416
+ if (function_exists("wplc_register_pro_version")) {
417
  if (function_exists('wplc_hide_chat_when_offline')) {
418
  $wplc_hide_chat = wplc_hide_chat_when_offline();
419
  if (!$wplc_hide_chat) {
729
  if ($wplc_ask_user_details == 1) {
730
  //Ask the user to enter name and email
731
 
732
+ $ret_msg .= "<input type=\"text\" name=\"wplc_name\" id=\"wplc_name\" value='".$wplc_loggedin_user_name."' placeholder=\"".__("Name", "wplivechat")."\" />";
733
  $ret_msg .= "<input type=\"text\" name=\"wplc_email\" id=\"wplc_email\" wplc_hide=\"0\" value=\"".$wplc_loggedin_user_email."\" placeholder=\"".__("Email", "wplivechat")."\" />";
734
  } else {
735
  //Dont ask the user
1432
  }
1433
 
1434
  function wplc_create_chat_ul_element_after_eating_vindaloo(obj,key) {
1435
+
1436
  var v_img = obj[key]['image'];
1437
  var v_name = obj[key]['name'];
1438
  var v_email = obj[key]['email'];
1444
  var v_type = obj[key]['type'];
1445
  var v_action = obj[key]['action'];
1446
  var v_status_string = wplc_get_status_name(parseInt(v_status));
1447
+ var v_ip_address = obj[key]['data']['ip'];
1448
 
1449
  var v_vis_html = "<span class='wplc_headerspan_v'>"+v_name+"</span>";
1450
  var v_nr_html = "<span class='wplc_headerspan_nr'><span class='browser-tag'>"+v_browser+"</span> "+wplc_get_type_box(v_type)+"</span>";
1451
  var v_time_html = "<span class='wplc_headerspan_t'><span class='wplc_status_box wplc_status_1'>"+v_time+"</span></span>";
1452
+ var v_nr_data = "<span class='wplc_headerspan_d'><span class='wplc-sub-item-header'>Page:</span> <a href='"+v_browsing_url+"' target='_BLANK'>"+v_browsing+"</a><br /><span class='wplc-sub-item-header'>Email:</span> <a href='mailto:"+v_email+"' target='_BLANK'>"+v_email+"</a><br/><span class='wplc-sub-item-header'>IP: </span>"+v_ip_address+"</span>";
1453
  var v_nr_status_html = "<span class='wplc_headerspan_s'>"+v_status_string+"</span>";
1454
  var v_nr_action_html = "<span class='wplc_headerspan_a'>"+v_action+"</span>";
1455
 
1613
  }
1614
  $wplc_ver = str_replace('.', '', $wplc_pro_version);
1615
  $wplc_ver = intval($wplc_ver);
1616
+ if ($wplc_ver < 501) {
1617
  ?>
1618
  <div class='error below-h1'>
1619