WP Live Chat Support - Version 2.3

Version Description

*Fixed another small bug

Download this release

Release Info

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

Code changes from version 2.2 to 2.3

js/wplc_u.js CHANGED
@@ -13,6 +13,7 @@ jQuery(document).ready(function() {
13
 
14
 
15
  function wplc_relay_user_stage(stage,cid) {
 
16
  if (cid.length) {
17
  var data = {
18
  action: 'wplc_relay_stage',
@@ -109,7 +110,7 @@ jQuery(document).ready(function() {
109
  };
110
  jQuery.post(ajaxurl, data, function(response) {
111
  //console.log("wplc_user_awaiting_chat");
112
- //alert("chat status"+response);
113
  if (response == "3") {
114
  clearInterval(wplc_user_waiting);
115
  var wplc_name = jQuery("#wplc_name").val();
13
 
14
 
15
  function wplc_relay_user_stage(stage,cid) {
16
+
17
  if (cid.length) {
18
  var data = {
19
  action: 'wplc_relay_stage',
110
  };
111
  jQuery.post(ajaxurl, data, function(response) {
112
  //console.log("wplc_user_awaiting_chat");
113
+
114
  if (response == "3") {
115
  clearInterval(wplc_user_waiting);
116
  var wplc_name = jQuery("#wplc_name").val();
readme.txt CHANGED
@@ -50,8 +50,9 @@ Once installed and activated, a link should appear in your left navigation panel
50
 
51
  == Screenshots ==
52
 
53
- 1. Front-end Live Chat Window
54
- 2. Back-end Live Chat Window
 
55
 
56
 
57
  == Upgrade Notice ==
@@ -60,6 +61,9 @@ Once installed and activated, a link should appear in your left navigation panel
60
 
61
  == Changelog ==
62
 
 
 
 
63
  = 2.2 =
64
  * Fixed a small bug
65
 
50
 
51
  == Screenshots ==
52
 
53
+ 1. Front-end
54
+ 2. Back-end
55
+ 3. Settings page
56
 
57
 
58
  == Upgrade Notice ==
61
 
62
  == Changelog ==
63
 
64
+ = 2.3 =
65
+ *Fixed another small bug
66
+
67
  = 2.2 =
68
  * Fixed a small bug
69
 
screenshot-1.JPG CHANGED
Binary file
screenshot-2.JPG CHANGED
Binary file
screenshot-3.JPG CHANGED
Binary file
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.2
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.2";
21
 
22
 
23
  add_action('wp_footer', 'wplc_display_box');
@@ -171,6 +171,7 @@ function wplc_action_callback() {
171
  }
172
  }
173
  if ($_POST['action'] == "wplc_relay_stage") {
 
174
  if ($_POST['stage'] == "1") { // chat window is displayed to user
175
  echo wplc_log_user_on_page("user".time(),"no email set");
176
  }
@@ -469,6 +470,7 @@ function wplc_admin_accept_chat($cid) {
469
  }
470
  add_action('admin_head','wplc_update_chat_statuses');
471
  function wplc_update_chat_statuses() {
 
472
  global $wpdb;
473
  global $wplc_tblname_chats;
474
  $results = $wpdb->get_results(
@@ -496,7 +498,6 @@ function wplc_update_chat_statuses() {
496
  wplc_change_chat_status($id,7); // 7 - timedout
497
  }
498
  }
499
- //echo time()." ".$timestamp;
500
  }
501
  }
502
 
@@ -846,7 +847,7 @@ function wplc_admin_menu_layout_display() {
846
  <?php wplc_list_chats(); ?>
847
  </div>
848
  <h1>Online Visitors</h1>
849
- <p><?php _e("With the Pro add-on of WP Live Chat Support, you can","wplivechat"); ?> <a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=initiate1" title="<?php _e("see who's online and initiate chats","wplivechat"); ?>" target=\"_BLANK\"><?php _e("see who's online and initiate chats","wplivechat"); ?></a> <?php _e("with your online visitors with the click of a button.","wplivechat"); ?> <a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=initiate2" title="<?php _e("Buy the Pro add-on now for only $9.95 once off","wplivechat"); ?>" target=\"_BLANK\"><?php _e("Buy the Pro add-on now for only $9.95 once off","wplivechat"); ?></a></p>
850
  <?php
851
  }
852
  else {
@@ -985,7 +986,6 @@ function wplc_return_admin_chat_javascript($cid) {
985
  };
986
  jQuery.post(ajaxurl, data, function(response) {
987
  //console.log("wplc_update_admin_chat_boxes");
988
- //alert(response);
989
  //jQuery("#admin_chat_box_area_"+cid).html(response);
990
  jQuery("#admin_chat_box_area_"+cid).append(response);
991
  var height = jQuery('#admin_chat_box_area_'+cid)[0].scrollHeight;
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.3
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.3";
21
 
22
 
23
  add_action('wp_footer', 'wplc_display_box');
171
  }
172
  }
173
  if ($_POST['action'] == "wplc_relay_stage") {
174
+
175
  if ($_POST['stage'] == "1") { // chat window is displayed to user
176
  echo wplc_log_user_on_page("user".time(),"no email set");
177
  }
470
  }
471
  add_action('admin_head','wplc_update_chat_statuses');
472
  function wplc_update_chat_statuses() {
473
+
474
  global $wpdb;
475
  global $wplc_tblname_chats;
476
  $results = $wpdb->get_results(
498
  wplc_change_chat_status($id,7); // 7 - timedout
499
  }
500
  }
 
501
  }
502
  }
503
 
847
  <?php wplc_list_chats(); ?>
848
  </div>
849
  <h1>Online Visitors</h1>
850
+ <p><?php _e("With the Pro add-on of WP Live Chat Support, you can","wplivechat"); ?> <a href="http://www.wp-livechat.com/purchase-pro-2/?utm_source=plugin&utm_medium=link&utm_campaign=initiate1" title="<?php _e("see who's online and initiate chats","wplivechat"); ?>" target=\"_BLANK\"><?php _e("see who's online and initiate chats","wplivechat"); ?></a> <?php _e("with your online visitors with the click of a button.","wplivechat"); ?> <a href="http://www.wp-livechat.com/purchase-pro-2/?utm_source=plugin&utm_medium=link&utm_campaign=initiate2" title="<?php _e("Buy the Pro add-on now for only $9.95 once off","wplivechat"); ?>" target=\"_BLANK\"><?php _e("Buy the Pro add-on now for only $9.95 once off","wplivechat"); ?></a></p>
851
  <?php
852
  }
853
  else {
986
  };
987
  jQuery.post(ajaxurl, data, function(response) {
988
  //console.log("wplc_update_admin_chat_boxes");
 
989
  //jQuery("#admin_chat_box_area_"+cid).html(response);
990
  jQuery("#admin_chat_box_area_"+cid).append(response);
991
  var height = jQuery('#admin_chat_box_area_'+cid)[0].scrollHeight;