WP Live Chat Support - Version 4.1.10

Version Description

2014-10-29 - Low priority = * Code Improvements: (Checks for DONOTCACHE) * New Pro Feature: You can now include or exclude the live chat window on certain pages

Download this release

Release Info

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

Code changes from version 4.1.9 to 4.1.10

includes/settings_page.php CHANGED
@@ -27,7 +27,7 @@
27
  <h3><?php _e("Main Settings",'wplivechat')?></h3>
28
  <table class='form-table' width='700'>
29
  <tr>
30
- <td width='200' valign='top'><?php _e("Chat enabled","wplivechat")?>:</td>
31
  <td>
32
  <select id='wplc_settings_enabled' name='wplc_settings_enabled'>
33
  <option value="1" <?php if (isset($wplc_settings_enabled[1])) { echo $wplc_settings_enabled[1]; } ?>><?php _e("Yes","wplivechat"); ?></option>
@@ -38,7 +38,7 @@
38
  <tr>
39
  <td width='200' valign='top'>
40
  <?php _e("Hide Chat","wplivechat")?>:
41
- <p class="description"><?php _e("Hides chat for 24hrs when user clicks X", "wplivechat") ?></p>
42
  </td>
43
  <td valign='top'>
44
  <input type="checkbox" value="true" readonly disabled/>
@@ -46,7 +46,8 @@
46
  <i>
47
  <?php _e("available in the","wplivechat")?>
48
  <a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=name" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
49
- <?php _e("only","wplivechat")?>
 
50
  </i>
51
  </small>
52
  </td>
@@ -87,6 +88,39 @@
87
  <input type="checkbox" value="1" name="wplc_enabled_on_mobile" <?php if(isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] == 1 ) { echo "checked"; } ?> />
88
  </td>
89
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  </table>
91
 
92
  </div>
@@ -285,7 +319,7 @@
285
  </div>
286
  <div id="tabs-5">
287
  <h3><?php _e("Multiple Agents", "wplivechat") ?></h3>
288
- <p><?php _e("Get","wplivechat") ?> <a href="http://wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=multipleAgents"><?php _e("Multiple agent support", "wplivechat") ?></a></p>
289
  </div>
290
  </div>
291
  <p class='submit'><input type='submit' name='wplc_save_settings' class='button-primary' value='<?php _e("Save Settings","wplivechat")?>' /></p>
27
  <h3><?php _e("Main Settings",'wplivechat')?></h3>
28
  <table class='form-table' width='700'>
29
  <tr>
30
+ <td width='400' valign='top'><?php _e("Chat enabled","wplivechat")?>:</td>
31
  <td>
32
  <select id='wplc_settings_enabled' name='wplc_settings_enabled'>
33
  <option value="1" <?php if (isset($wplc_settings_enabled[1])) { echo $wplc_settings_enabled[1]; } ?>><?php _e("Yes","wplivechat"); ?></option>
38
  <tr>
39
  <td width='200' valign='top'>
40
  <?php _e("Hide Chat","wplivechat")?>:
41
+ <p class="description"><?php _e("Hides chat for 24hrs when user clicks X", "wplivechat") ?> </p>
42
  </td>
43
  <td valign='top'>
44
  <input type="checkbox" value="true" readonly disabled/>
46
  <i>
47
  <?php _e("available in the","wplivechat")?>
48
  <a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=name" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
49
+ <?php _e("only","wplivechat")?>.
50
+ $19.95 <?php _e(" once off. Updates included forever.","wplivechat"); ?>
51
  </i>
52
  </small>
53
  </td>
88
  <input type="checkbox" value="1" name="wplc_enabled_on_mobile" <?php if(isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] == 1 ) { echo "checked"; } ?> />
89
  </td>
90
  </tr>
91
+ <tr>
92
+ <td width='200' valign='top'>
93
+ <?php _e("Include chat window on the following pages:","wplivechat"); ?>
94
+ <p class="description"><?php _e("Show the chat window on the following pages. Leave blank to show on all. (Use comma-separated Page ID's)", "wplivechat") ?></p>
95
+ </td>
96
+ <td valign='top'>
97
+ <input type="text" readonly="readonly" />
98
+ <small>
99
+ <i>
100
+ <?php _e("available in the","wplivechat")?>
101
+ <a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=include_pages" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
102
+ <?php _e("only","wplivechat")?>
103
+ </i>
104
+ </small>
105
+ </td>
106
+ </tr>
107
+ <tr>
108
+ <td width='200' valign='top'>
109
+ <?php _e("Exclude chat window on the following pages:","wplivechat"); ?>
110
+ <p class="description"><?php _e("Do not show the chat window on the following pages. Leave blank to show on all. (Use comma-separated Page ID's)", "wplivechat") ?></p>
111
+ </td>
112
+ <td valign='top'>
113
+ <input type="text" readonly="readonly"/>
114
+ <small>
115
+ <i>
116
+ <?php _e("available in the","wplivechat")?>
117
+ <a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=exclude_pages" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
118
+ <?php _e("only","wplivechat")?>
119
+ </i>
120
+ </small>
121
+ </td>
122
+ </tr>
123
+
124
  </table>
125
 
126
  </div>
319
  </div>
320
  <div id="tabs-5">
321
  <h3><?php _e("Multiple Agents", "wplivechat") ?></h3>
322
+ <p><?php _e("Get","wplivechat") ?> <a href="http://wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=multipleAgents" target="_BLANK"><?php _e("Multiple agent support", "wplivechat") ?></a></p>
323
  </div>
324
  </div>
325
  <p class='submit'><input type='submit' name='wplc_save_settings' class='button-primary' value='<?php _e("Save Settings","wplivechat")?>' /></p>
readme.txt CHANGED
@@ -37,14 +37,15 @@ The most cost effective Live Chat plugin. Chat with your visitors for free! WP L
37
  * Add your company logo to the live chat window
38
  * Add your photo to the live chat window
39
  * Edit all text fields shown on the live chat box
 
40
  * World-class support
41
  * Fully customizable live chat experience
42
 
43
  Get the [WP Live Chat Support Pro Add-on](http://wp-livechat.com/purchase-pro/?utm_source=readme&utm_medium=wordpress&utm_campaign=buy) for only $29.95 once off!
44
 
45
  = Coming soon =
46
- * (Oct 2014) (Free & Pro) Design update - New transitions (chat box slides up, fades, jumps, etc after x seconds)
47
- * (Cct 2014) (Free & Pro) Improvements - Better link and image handling within the live chat text area
48
  * (Nov 2014) (Pro) New feature - Triggers - Build custom live chat triggers. For example, if a user has been idle for more than 2 minutes, initiate a live chat and send a response.
49
  * (Nov 2014) (Free & Pro) New feature - XMP notifications - Get notified about new live chats in Gtalk, ICQ, Yahoo! messenger, etc.
50
  * (Jan 2015) (Pro+) New feature - Full XMP support (chat through Skype, Gtalk, ICQ, Yahoo! messenger, etc)
@@ -118,11 +119,15 @@ If the live chat box still does not appear on your website, please go through th
118
 
119
  == Upgrade Notice ==
120
 
121
- = 4.1.1 =
122
  It is highly recommended that you upgrade to WP Live Chat Support version 4.1.4
123
 
124
  == Changelog ==
125
 
 
 
 
 
126
  = 4.1.9 2014-10-10 - Low priority =
127
  * Bug fix: Mobile Detect class caused an error if it existed in another plugin or theme. A check has been put in place.
128
 
@@ -182,4 +187,4 @@ It is highly recommended that you upgrade to WP Live Chat Support version 4.1.4
182
  * Added Welcome Page
183
  * Fixed Visitor pending forever - Now Shown a message that admin is away
184
  * Fixed many small bugs
185
- * Added Multiple Live Chat Agents support (Add On)
37
  * Add your company logo to the live chat window
38
  * Add your photo to the live chat window
39
  * Edit all text fields shown on the live chat box
40
+ * Include/exclude the live chat from appearing on certain pages
41
  * World-class support
42
  * Fully customizable live chat experience
43
 
44
  Get the [WP Live Chat Support Pro Add-on](http://wp-livechat.com/purchase-pro/?utm_source=readme&utm_medium=wordpress&utm_campaign=buy) for only $29.95 once off!
45
 
46
  = Coming soon =
47
+ * (Nov 2014) (Free & Pro) Design update - New transitions (chat box slides up, fades, jumps, etc after x seconds)
48
+ * (Nov 2014) (Free & Pro) Improvements - Better link and image handling within the live chat text area
49
  * (Nov 2014) (Pro) New feature - Triggers - Build custom live chat triggers. For example, if a user has been idle for more than 2 minutes, initiate a live chat and send a response.
50
  * (Nov 2014) (Free & Pro) New feature - XMP notifications - Get notified about new live chats in Gtalk, ICQ, Yahoo! messenger, etc.
51
  * (Jan 2015) (Pro+) New feature - Full XMP support (chat through Skype, Gtalk, ICQ, Yahoo! messenger, etc)
119
 
120
  == Upgrade Notice ==
121
 
122
+ = 4.1.4 =
123
  It is highly recommended that you upgrade to WP Live Chat Support version 4.1.4
124
 
125
  == Changelog ==
126
 
127
+ = 4.1.10 2014-10-29 - Low priority =
128
+ * Code Improvements: (Checks for DONOTCACHE)
129
+ * New Pro Feature: You can now include or exclude the live chat window on certain pages
130
+
131
  = 4.1.9 2014-10-10 - Low priority =
132
  * Bug fix: Mobile Detect class caused an error if it existed in another plugin or theme. A check has been put in place.
133
 
187
  * Added Welcome Page
188
  * Fixed Visitor pending forever - Now Shown a message that admin is away
189
  * Fixed many small bugs
190
+ * Added Multiple Live Chat Agents support (Add On)
wp-live-chat-support.php CHANGED
@@ -3,21 +3,25 @@
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.1.9
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
10
 
11
 
12
- /* 4.1.9
 
 
 
 
13
  * Bug fix: Mobile Detect class caused an error if it existed in another plugin or theme. A check has been put in place.
14
  *
15
- * 4.1.8
16
  * New feature: There is now an option if you do not require the user to input their name and email address before sending a chat request
17
  * New feature: Logged in users do not have to enter their details prior to sending the chat request.
18
  * New feature: Turn the chat on/off on a mobile device (smart phone and tablets)
19
  *
20
- * 4.1.7
21
  * Bug fix: sound was not played when user received a message from the admin
22
  * Internationalization update
23
  * New WP Live Chat Support Translation added:
@@ -72,7 +76,7 @@ global $wplc_tblname_chats;
72
  global $wplc_tblname_msgs;
73
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
74
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
75
- $wplc_version = "4.1.9";
76
 
77
  define('WPLC_BASIC_PLUGIN_DIR',dirname(__FILE__));
78
  define('WPLC_BASIC_PLUGIN_URL',plugins_url()."/wp-live-chat-support/");
@@ -168,8 +172,8 @@ function wplc_admin_menu() {
168
  add_action('wp_head','wplc_user_top_js');
169
  function wplc_user_top_js() {
170
  echo "<!-- DEFINING DO NOT CACHE -->";
171
- define('DONOTCACHEPAGE', true);
172
- define('DONOTCACHEDB', true);
173
  $ajax_nonce = wp_create_nonce("wplc");
174
  wp_register_script( 'wplc-user-jquery-cookie', plugins_url('/js/jquery-cookie.js', __FILE__) , array('jquery-ui-draggable'));
175
  wp_enqueue_script( 'wplc-user-jquery-cookie');
@@ -192,6 +196,9 @@ function wplc_user_top_js() {
192
  function wplc_draw_user_box() {
193
  global $wplc_is_mobile;
194
  $wplc_settings = get_option("WPLC_SETTINGS");
 
 
 
195
  if($wplc_is_mobile && !isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] != 1) { return; }
196
  if($wplc_settings["wplc_settings_enabled"] == 2) { return; }
197
 
@@ -209,7 +216,7 @@ function wplc_output_box() {
209
  global $wplc_is_mobile;
210
  $wplc_class = "";
211
  $wplc_settings = get_option("WPLC_SETTINGS");
212
-
213
  if($wplc_is_mobile && !isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] != 1) { return; }
214
 
215
  if ($wplc_settings["wplc_settings_enabled"] == 2) { return; }
@@ -280,6 +287,9 @@ function wplc_output_box() {
280
  $wplc_use_loggedin_user_details = 0;
281
  }
282
 
 
 
 
283
  if($wplc_use_loggedin_user_details == 1){
284
  global $current_user;
285
 
@@ -624,7 +634,7 @@ function wplc_admin_menu_layout_display() {
624
  </div>
625
 
626
  <h1><?php _e("Visitors on site","wplivechat") ?></h1>
627
- <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 $29.95 once off. Free Updates FOREVER.","wplivechat"); ?>" target=\"_BLANK\"><strong><?php _e("Buy the Pro add-on now for only $29.95 once off. Free Updates Forever.","wplivechat"); ?></strong></a></p>
628
  <?php
629
  }
630
  else {
@@ -1063,7 +1073,7 @@ function wplc_admin_history_layout() {
1063
  wplc_pro_admin_display_history();
1064
  }
1065
  else {
1066
- echo "<br /><br >This option is only available in the <a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=history1\" title=\"".__("Pro Add-on","wplivechat")."\" target=\"_BLANK\">Pro Add-on</a> of WP Live Chat. <a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=history2\" title=\"".__("Pro Add-on","wplivechat")."\" target=\"_BLANK\">Get it now for only $29.95 once off!</a>";
1067
  }
1068
  }
1069
 
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.1.10
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  */
10
 
11
 
12
+ /* 4.1.10 2014-10-29 - Low priority
13
+ * Code Improvements: (Checks for DONOTCACHE)
14
+ * New Pro Feature: You can now include or exclude the chat window on certain pages
15
+ *
16
+ * 4.1.9 2014-10-10 - Low priority
17
  * Bug fix: Mobile Detect class caused an error if it existed in another plugin or theme. A check has been put in place.
18
  *
19
+ * 4.1.8 2014-10-08 - Low priority
20
  * New feature: There is now an option if you do not require the user to input their name and email address before sending a chat request
21
  * New feature: Logged in users do not have to enter their details prior to sending the chat request.
22
  * New feature: Turn the chat on/off on a mobile device (smart phone and tablets)
23
  *
24
+ * 4.1.7 2014-10-06 - Low priority
25
  * Bug fix: sound was not played when user received a message from the admin
26
  * Internationalization update
27
  * New WP Live Chat Support Translation added:
76
  global $wplc_tblname_msgs;
77
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
78
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
79
+ $wplc_version = "4.1.10";
80
 
81
  define('WPLC_BASIC_PLUGIN_DIR',dirname(__FILE__));
82
  define('WPLC_BASIC_PLUGIN_URL',plugins_url()."/wp-live-chat-support/");
172
  add_action('wp_head','wplc_user_top_js');
173
  function wplc_user_top_js() {
174
  echo "<!-- DEFINING DO NOT CACHE -->";
175
+ if(!defined('DONOTCACHEPAGE')) { define('DONOTCACHEPAGE', true); }
176
+ if(!defined('DONOTCACHEDB')) { define('DONOTCACHEDB', true); }
177
  $ajax_nonce = wp_create_nonce("wplc");
178
  wp_register_script( 'wplc-user-jquery-cookie', plugins_url('/js/jquery-cookie.js', __FILE__) , array('jquery-ui-draggable'));
179
  wp_enqueue_script( 'wplc-user-jquery-cookie');
196
  function wplc_draw_user_box() {
197
  global $wplc_is_mobile;
198
  $wplc_settings = get_option("WPLC_SETTINGS");
199
+
200
+
201
+
202
  if($wplc_is_mobile && !isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] != 1) { return; }
203
  if($wplc_settings["wplc_settings_enabled"] == 2) { return; }
204
 
216
  global $wplc_is_mobile;
217
  $wplc_class = "";
218
  $wplc_settings = get_option("WPLC_SETTINGS");
219
+
220
  if($wplc_is_mobile && !isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] != 1) { return; }
221
 
222
  if ($wplc_settings["wplc_settings_enabled"] == 2) { return; }
287
  $wplc_use_loggedin_user_details = 0;
288
  }
289
 
290
+ $wplc_loggedin_user_name = "";
291
+ $wplc_loggedin_user_email = "";
292
+
293
  if($wplc_use_loggedin_user_details == 1){
294
  global $current_user;
295
 
634
  </div>
635
 
636
  <h1><?php _e("Visitors on site","wplivechat") ?></h1>
637
+ <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 $19.95 once off. Free Updates FOREVER.","wplivechat"); ?>" target=\"_BLANK\"><strong><?php _e("Buy the Pro add-on now for only $19.95 once off. Free Updates Forever.","wplivechat"); ?></strong></a></p>
638
  <?php
639
  }
640
  else {
1073
  wplc_pro_admin_display_history();
1074
  }
1075
  else {
1076
+ echo "<br /><br >This option is only available in the <a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=history1\" title=\"".__("Pro Add-on","wplivechat")."\" target=\"_BLANK\">Pro Add-on</a> of WP Live Chat. <a href=\"http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=history2\" title=\"".__("Pro Add-on","wplivechat")."\" target=\"_BLANK\">Get it now for only $19.95 once off!</a>";
1077
  }
1078
  }
1079