WP Live Chat Support - Version 5.0.9

Version Description

  • 2015-10-09 - Low priority =
  • New hook: wplc_hook_admin_menu_layout - Target the area above the normal menu layout
  • Style bug fix with the "DATA" section of the live chat dashboard
Download this release

Release Info

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

Code changes from version 5.0.8 to 5.0.9

Files changed (4) hide show
  1. css/chat-style.css +9 -1
  2. functions.php +14 -3
  3. readme.txt +4 -0
  4. wp-live-chat-support.php +8 -3
css/chat-style.css CHANGED
@@ -13,6 +13,14 @@
13
 
14
 
15
 
 
 
 
 
 
 
 
 
16
  }
17
  .admin_chat_box {
18
  -webkit-border-radius: 5px;
@@ -530,7 +538,7 @@
530
  .wplc-sub-item-header { color:#C7C3C3; font-style: italic; }
531
 
532
  @media (min-width:320px) { #wplc_admin_chat_holder { width:100%; } #wplc_admin_chat_area_new { width:90%; float:none; display:block; margin: 0 auto; } #wplc_admin_chat_info_new { width:240px; float:none; display:block; margin: 20px auto; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:none; } .wplc_chat_ul_header { display:none; } .wplc_p_cul { border-bottom:1px solid #ccc; } #wplc_admin_chat_area_new li { float:none; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:5px auto; text-align:center; } .wplc_chat_vis_count_box { min-width:180px; } }
533
- @media (min-width:481px) { #wplc_admin_chat_holder { width:100%; } #wplc_admin_chat_area_new { width:90%; float:none; display:block; margin: 0 auto; } #wplc_admin_chat_info_new { width:240px; float:none; display:block; margin: 20px auto; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:none; } .wplc_chat_ul_header { display:none; } .wplc_p_cul { border-bottom:1px solid #ccc; } #wplc_admin_chat_area_new li { float:none; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:5px auto; text-align:center; } .wplc_chat_vis_count_box { min-width:180px; } }
534
  @media (min-width:641px) { #wplc_admin_chat_holder { width:650px; } #wplc_admin_chat_area_new { width:640px; float:none; display:block; margin: 0 auto; } #wplc_admin_chat_info_new { width:240px; float:none; display:block; margin: 20px auto; } .wplc_headerspan_t { display:block; } .wplc_headerspan_nr { display:none; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:180px; } }
535
  @media (min-width:961px) { #wplc_admin_chat_holder { width:850px; } #wplc_admin_chat_area_new { width:700px; float:none; display:block; margin: 0 auto; } #wplc_admin_chat_info_new { width:240px; float:none; display:block; margin: 20px auto; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:block; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:110px; } }
536
  @media (min-width:1025px) { #wplc_admin_chat_holder { width:990px; } #wplc_admin_chat_area_new { width:700px; float:left; display:block; margin: 0; } #wplc_admin_chat_info_new { width:140px; float:left; display:block; margin: 0; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:block; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:110px; } }
13
 
14
 
15
 
16
+ }
17
+ .wplc-sub-item-email-string {
18
+ white-space: nowrap;
19
+ display:inline-block;
20
+ width: 120px; /* IE6 needs any width */
21
+ overflow: hidden; /* "overflow" value must be different from visible"*/
22
+ -o-text-overflow: ellipsis; /* Opera < 11*/
23
+ text-overflow: ellipsis; /* IE, Safari (WebKit), Opera >= 11, FF > 6 */
24
  }
25
  .admin_chat_box {
26
  -webkit-border-radius: 5px;
538
  .wplc-sub-item-header { color:#C7C3C3; font-style: italic; }
539
 
540
  @media (min-width:320px) { #wplc_admin_chat_holder { width:100%; } #wplc_admin_chat_area_new { width:90%; float:none; display:block; margin: 0 auto; } #wplc_admin_chat_info_new { width:240px; float:none; display:block; margin: 20px auto; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:none; } .wplc_chat_ul_header { display:none; } .wplc_p_cul { border-bottom:1px solid #ccc; } #wplc_admin_chat_area_new li { float:none; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:5px auto; text-align:center; } .wplc_chat_vis_count_box { min-width:180px; } }
541
+ @media (min-width:481px) { #wplc_admin_chat_holder { width:100%; } #wplc_admin_chat_area_new { width:90%; float:none; display:block; margin: 0 auto; } #wplc_admin_chat_info_new { width:240px; float:none; display:block; margin: 20px auto; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:none; } .wplc_chat_ul_header { display:none; } .wplc_p_cul { border-bottom:1px solid #ccc; } #wplc_admin_chat_area_new li { float:none; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:5px auto; text-align:center; } .wplc_chat_vis_count_box { min-width:180px; } .wplc-sub-item-email-string { white-space: nowrap; display:inline-block; width: 100%; /* IE6 needs any width */ overflow: hidden; /* "overflow" value must be different from visible"*/ -o-text-overflow: ellipsis; /* Opera < 11*/ text-overflow: ellipsis; /* IE, Safari (WebKit), Opera >= 11, FF > 6 */ } }
542
  @media (min-width:641px) { #wplc_admin_chat_holder { width:650px; } #wplc_admin_chat_area_new { width:640px; float:none; display:block; margin: 0 auto; } #wplc_admin_chat_info_new { width:240px; float:none; display:block; margin: 20px auto; } .wplc_headerspan_t { display:block; } .wplc_headerspan_nr { display:none; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:180px; } }
543
  @media (min-width:961px) { #wplc_admin_chat_holder { width:850px; } #wplc_admin_chat_area_new { width:700px; float:none; display:block; margin: 0 auto; } #wplc_admin_chat_info_new { width:240px; float:none; display:block; margin: 20px auto; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:block; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:110px; } }
544
  @media (min-width:1025px) { #wplc_admin_chat_holder { width:990px; } #wplc_admin_chat_area_new { width:700px; float:left; display:block; margin: 0; } #wplc_admin_chat_info_new { width:140px; float:left; display:block; margin: 0; } .wplc_headerspan_t { display:none; } .wplc_headerspan_nr { display:block; } .wplc_chat_ul_header { display:block; } .wplc_p_cul { border-bottom:none; } #wplc_admin_chat_area_new li { float:left; } .wplc_headerspan_a,.wplc_headerspan_d,.wplc_headerspan_v,.wplc_headerspan_s { margin:0; text-align:left; } .wplc_chat_vis_count_box { min-width:110px; } }
functions.php CHANGED
@@ -608,7 +608,7 @@ function wplc_change_chat_status($id,$status) {
608
  }
609
 
610
  //come back here
611
- function wplc_return_chat_messages($cid,$transcript = false) {
612
  global $wpdb;
613
  global $wplc_tblname_msgs;
614
 
@@ -669,9 +669,18 @@ function wplc_return_chat_messages($cid,$transcript = false) {
669
  }
670
 
671
  if($display_name){
672
- $msg_hist .= "<span class='chat_time'>$timeshow</span> <span class='$class'>$image <strong>$from</strong>: $msg</span><br /><div class='wplc-clear-float-message'></div>";
 
 
 
 
673
  } else {
674
- $msg_hist .= "<span class='chat_time'>$timeshow</span> <span class='$class'>$msg</span><br /><div class='wplc-clear-float-message'></div>";
 
 
 
 
 
675
  }
676
 
677
  }
@@ -895,6 +904,8 @@ function wplc_return_status($status) {
895
  function wplc_user_initiate_chat($name,$email,$cid = null,$session) {
896
  global $wpdb;
897
  global $wplc_tblname_chats;
 
 
898
 
899
  if (function_exists("wplc_list_chats_pro")) { /* check if functions-pro is around */
900
  wplc_pro_notify_via_email();
608
  }
609
 
610
  //come back here
611
+ function wplc_return_chat_messages($cid,$transcript = false,$html = true) {
612
  global $wpdb;
613
  global $wplc_tblname_msgs;
614
 
669
  }
670
 
671
  if($display_name){
672
+ if ($html) {
673
+ $msg_hist .= "<span class='chat_time'>$timeshow</span> <span class='$class'>$image <strong>$from</strong>: $msg</span><br /><div class='wplc-clear-float-message'></div>";
674
+ } else {
675
+ $msg_hist .= "($timeshow) $from: $msg\r\n";
676
+ }
677
  } else {
678
+ if ($html) {
679
+ $msg_hist .= "<span class='chat_time'>$timeshow</span> <span class='$class'>$msg</span><br /><div class='wplc-clear-float-message'></div>";
680
+ } else {
681
+ $msg_hist .= "($timeshow) $from: $msg\r\n";
682
+ }
683
+
684
  }
685
 
686
  }
904
  function wplc_user_initiate_chat($name,$email,$cid = null,$session) {
905
  global $wpdb;
906
  global $wplc_tblname_chats;
907
+
908
+ do_action("wplc_hook_initiate_chat");
909
 
910
  if (function_exists("wplc_list_chats_pro")) { /* check if functions-pro is around */
911
  wplc_pro_notify_via_email();
readme.txt CHANGED
@@ -199,6 +199,10 @@ It is highly recommended that you upgrade to WP Live Chat Support version 4.1.4
199
 
200
  == Changelog ==
201
 
 
 
 
 
202
  = 5.0.8 - 2015-10-07 - Low priority =
203
  * Introduced new custom WP Live Chat Support hooks:
204
  * wplc_hook_admin_visitor_info_display_before - Allows you to add HTML at the beginning of the vistior details DIV in the live chat window
199
 
200
  == Changelog ==
201
 
202
+ = 5.0.9 - 2015-10-09 - Low priority =
203
+ * New hook: wplc_hook_admin_menu_layout - Target the area above the normal menu layout
204
+ * Style bug fix with the "DATA" section of the live chat dashboard
205
+
206
  = 5.0.8 - 2015-10-07 - Low priority =
207
  * Introduced new custom WP Live Chat Support hooks:
208
  * wplc_hook_admin_visitor_info_display_before - Allows you to add HTML at the beginning of the vistior details DIV in the live chat window
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: 5.0.8
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  Text Domain: wplivechat
@@ -12,6 +12,10 @@
12
 
13
 
14
  /*
 
 
 
 
15
  * 5.0.8
16
  * Introduced new hooks:
17
  * wplc_hook_admin_visitor_info_display_before - Allows you to add HTML at the beginning of the vistior details DIV in the live chat window
@@ -277,7 +281,7 @@ global $wplc_tblname_chats;
277
  global $wplc_tblname_msgs;
278
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
279
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
280
- $wplc_version = "5.0.8";
281
 
282
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
283
  define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
@@ -1533,7 +1537,7 @@ function wplc_admin_javascript() {
1533
  var v_vis_html = "<span class='wplc_headerspan_v'>"+v_name+"</span>";
1534
  var v_nr_html = "<span class='wplc_headerspan_nr'><span class='browser-tag'>"+v_browser+"</span> "+wplc_get_type_box(v_type)+"</span>";
1535
  var v_time_html = "<span class='wplc_headerspan_t'><span class='wplc_status_box wplc_status_1'>"+v_time+"</span></span>";
1536
- 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>";
1537
  var v_nr_status_html = "<span class='wplc_headerspan_s'>"+v_status_string+"</span>";
1538
  var v_nr_action_html = "<span class='wplc_headerspan_a'>"+v_action+"</span>";
1539
 
@@ -1680,6 +1684,7 @@ function wplc_admin_javascript() {
1680
  }
1681
 
1682
  function wplc_admin_menu_layout() {
 
1683
  if (function_exists("wplc_register_pro_version")) {
1684
  global $wplc_pro_version;
1685
  if (floatval($wplc_pro_version) < 4 || $wplc_pro_version == "4.1.0" || $wplc_pro_version == "4.1.1") {
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.9
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  Text Domain: wplivechat
12
 
13
 
14
  /*
15
+ * 5.0.9
16
+ * New hook: wplc_hook_admin_menu_layout - Target the area above the normal menu layout
17
+ * Style bug fix with the "DATA" section of the live chat dashboard
18
+ *
19
  * 5.0.8
20
  * Introduced new hooks:
21
  * wplc_hook_admin_visitor_info_display_before - Allows you to add HTML at the beginning of the vistior details DIV in the live chat window
281
  global $wplc_tblname_msgs;
282
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
283
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
284
+ $wplc_version = "5.0.9";
285
 
286
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
287
  define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
1537
  var v_vis_html = "<span class='wplc_headerspan_v'>"+v_name+"</span>";
1538
  var v_nr_html = "<span class='wplc_headerspan_nr'><span class='browser-tag'>"+v_browser+"</span> "+wplc_get_type_box(v_type)+"</span>";
1539
  var v_time_html = "<span class='wplc_headerspan_t'><span class='wplc_status_box wplc_status_1'>"+v_time+"</span></span>";
1540
+ 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' class='wplc-sub-item-email-string'>"+v_email+"</a><br/><span class='wplc-sub-item-header'>IP: </span>"+v_ip_address+"</span>";
1541
  var v_nr_status_html = "<span class='wplc_headerspan_s'>"+v_status_string+"</span>";
1542
  var v_nr_action_html = "<span class='wplc_headerspan_a'>"+v_action+"</span>";
1543
 
1684
  }
1685
 
1686
  function wplc_admin_menu_layout() {
1687
+ do_action("wplc_hook_admin_menu_layout");
1688
  if (function_exists("wplc_register_pro_version")) {
1689
  global $wplc_pro_version;
1690
  if (floatval($wplc_pro_version) < 4 || $wplc_pro_version == "4.1.0" || $wplc_pro_version == "4.1.1") {