LiveChat – WP live chat plugin for WordPress - Version 3.2.7

Version Description

  • Plugin compatible with the newest LiveChat version
Download this release

Release Info

Developer livechat
Plugin Icon 128x128 LiveChat – WP live chat plugin for WordPress
Version 3.2.7
Comparing to
See all releases

Code changes from version 3.2.6 to 3.2.7

livechat.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.livechatinc.com/addons/wordpress/
5
  Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
6
  Author: LiveChat
7
  Author URI: http://www.livechatinc.com
8
- Version: 3.2.5
9
  */
10
 
11
  if (is_admin())
5
  Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
6
  Author: LiveChat
7
  Author URI: http://www.livechatinc.com
8
+ Version: 3.2.7
9
  */
10
 
11
  if (is_admin())
plugin_files/LiveChatAdmin.class.php CHANGED
@@ -24,9 +24,7 @@ final class LiveChatAdmin extends LiveChat
24
  {
25
  parent::__construct();
26
 
27
- wp_enqueue_script('livechat', $this->get_plugin_url().'/js/livechat.js', 'jquery', $this->get_plugin_version(), true);
28
- wp_enqueue_style('livechat', $this->get_plugin_url().'/css/livechat.css', false, $this->get_plugin_version());
29
-
30
  add_action('admin_menu', array($this, 'admin_menu'));
31
 
32
  // tricky error reporting
@@ -85,6 +83,12 @@ final class LiveChatAdmin extends LiveChat
85
  return $this->plugin_version;
86
  }
87
 
 
 
 
 
 
 
88
  public function admin_menu()
89
  {
90
  add_menu_page(
@@ -105,15 +109,6 @@ final class LiveChatAdmin extends LiveChat
105
  array($this, 'livechat_settings_page')
106
  );
107
 
108
- add_submenu_page(
109
- 'livechat',
110
- 'Control panel',
111
- 'Control panel',
112
- 'administrator',
113
- 'livechat_control_panel',
114
- array($this, 'control_panel_page')
115
- );
116
-
117
  // remove the submenu that is automatically added
118
  if (function_exists('remove_submenu_page'))
119
  {
@@ -132,14 +127,6 @@ final class LiveChatAdmin extends LiveChat
132
  $this->get_helper('Settings');
133
  }
134
 
135
- /**
136
- * Displays control panel page
137
- */
138
- public function control_panel_page()
139
- {
140
- $this->get_helper('ControlPanel');
141
- }
142
-
143
  public function changes_saved()
144
  {
145
  return $this->changes_saved;
24
  {
25
  parent::__construct();
26
 
27
+ add_action('init', array($this, 'load_scripts'));
 
 
28
  add_action('admin_menu', array($this, 'admin_menu'));
29
 
30
  // tricky error reporting
83
  return $this->plugin_version;
84
  }
85
 
86
+ public function load_scripts()
87
+ {
88
+ wp_enqueue_script('livechat', $this->get_plugin_url().'/js/livechat.js', 'jquery', $this->get_plugin_version(), true);
89
+ wp_enqueue_style('livechat', $this->get_plugin_url().'/css/livechat.css', false, $this->get_plugin_version());
90
+ }
91
+
92
  public function admin_menu()
93
  {
94
  add_menu_page(
109
  array($this, 'livechat_settings_page')
110
  );
111
 
 
 
 
 
 
 
 
 
 
112
  // remove the submenu that is automatically added
113
  if (function_exists('remove_submenu_page'))
114
  {
127
  $this->get_helper('Settings');
128
  }
129
 
 
 
 
 
 
 
 
 
130
  public function changes_saved()
131
  {
132
  return $this->changes_saved;
plugin_files/helpers/ControlPanelHelper.class.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
-
3
- require_once('LiveChatHelper.class.php');
4
-
5
- class ControlPanelHelper extends LiveChatHelper
6
- {
7
- public function render()
8
- {
9
- return <<<HTML
10
- <iframe id="control_panel" src="https://panel.livechatinc.com/" frameborder="0"></iframe>
11
- <p>Optionally, open the Control panel in an <a href="https://panel.livechatinc.com/" target="_blank">external window</a>.</p>
12
- HTML;
13
- }
14
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin_files/helpers/SettingsHelper.class.php CHANGED
@@ -40,10 +40,10 @@ LiveChat::get_instance()->get_helper('TrackingCodeInfo');
40
 
41
  <?php if (LiveChat::get_instance()->is_installed()): ?>
42
  <div class="postbox">
43
- <h3><?php echo _e('Download application'); ?></h3>
44
  <div class="postbox_content">
45
- <p><?php echo _e('Download LiveChat for your desktop/mobile and start chatting with your customers!'); ?></p>
46
- <p class="btn"><a href="http://www.livechatinc.com/product/" target="_blank"><?php _e('Download application'); ?></a></p>
47
  </div>
48
  </div>
49
  <?php endif; ?>
@@ -55,8 +55,8 @@ LiveChat::get_instance()->get_helper('TrackingCodeInfo');
55
  <div class="postbox_content">
56
  <table class="form-table">
57
  <tr>
58
- <th scope="row"><label for="login">My LiveChat login is:</label></th>
59
- <td><input type="text" name="login" id="login" value="<?php echo LiveChat::get_instance()->get_login(); ?>" size="40" /></td>
60
  </tr>
61
  </table>
62
 
@@ -78,8 +78,8 @@ LiveChat::get_instance()->get_helper('TrackingCodeInfo');
78
  <div class="postbox_content">
79
  <table class="form-table">
80
  <tr>
81
- <th scope="row"><label for="skill">Skill:</label></th>
82
- <td><input type="text" name="skill" id="skill" value="<?php echo LiveChat::get_instance()->get_skill(); ?>" /> <span class="explanation">Used for skill-based routing. <strong>0</strong> for default skill (recommended).</span></td>
83
  </tr>
84
  </table>
85
  <p class="submit">
40
 
41
  <?php if (LiveChat::get_instance()->is_installed()): ?>
42
  <div class="postbox">
43
+ <h3><?php echo _e('Sign in to LiveChat'); ?></h3>
44
  <div class="postbox_content">
45
+ <p><?php echo _e('Sign in to LiveChat and start chatting with your customers!'); ?></p>
46
+ <p><span class="btn"><a href="https://my.livechatinc.com/" target="_blank"><?php _e('Sign in to web application'); ?></a></span> &nbsp; or <a href="http://www.livechatinc.com/product/" target="_blank"><?php _e('download desktop app'); ?></a></p>
47
  </div>
48
  </div>
49
  <?php endif; ?>
55
  <div class="postbox_content">
56
  <table class="form-table">
57
  <tr>
58
+ <th scope="row"><label for="livechat_login">My LiveChat login is:</label></th>
59
+ <td><input type="text" name="login" id="livechat_login" value="<?php echo LiveChat::get_instance()->get_login(); ?>" size="40" /></td>
60
  </tr>
61
  </table>
62
 
78
  <div class="postbox_content">
79
  <table class="form-table">
80
  <tr>
81
+ <th scope="row"><label for="skill">Group:</label></th>
82
+ <td><input type="text" name="skill" id="skill" value="<?php echo LiveChat::get_instance()->get_skill(); ?>" /> <span class="explanation">Used for dividing chat agents into groups (<a href="http://www.livechatinc.com/kb/dividing-live-chat-by-group/" target="_blank">read more</a>). Enter <strong>0</strong> for default group (recommended).</span></td>
83
  </tr>
84
  </table>
85
  <p class="submit">
plugin_files/helpers/TrackingCodeHelper.class.php CHANGED
@@ -15,7 +15,7 @@ class TrackingCodeHelper extends LiveChatHelper
15
  <script type="text/javascript">
16
  var __lc = {};
17
  __lc.license = {$license_number};
18
- __lc.skill = {$skill};
19
 
20
  (function() {
21
  var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
15
  <script type="text/javascript">
16
  var __lc = {};
17
  __lc.license = {$license_number};
18
+ __lc.group = {$skill};
19
 
20
  (function() {
21
  var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
plugin_files/js/livechat.js CHANGED
@@ -36,7 +36,7 @@ var LiveChat =
36
  {
37
  $('#livechat_new_account').hide();
38
  $('#livechat_already_have').show();
39
- $('#login').focus();
40
  }
41
  else if ($('#choice_account_0').is(':checked'))
42
  {
@@ -64,10 +64,10 @@ var LiveChat =
64
  {
65
  if (parseInt($('#license_number').val()) == 0)
66
  {
67
- var login = $.trim($('#login').val());
68
  if (!login.length)
69
  {
70
- $('#login').focus();
71
  return false;
72
  }
73
 
@@ -78,7 +78,7 @@ var LiveChat =
78
  if (response.error)
79
  {
80
  $('#livechat_already_have .ajax_message').removeClass('wait').addClass('message').html('Incorrect LiveChat login.');
81
- $('#login').focus();
82
  return false;
83
  }
84
  else
36
  {
37
  $('#livechat_new_account').hide();
38
  $('#livechat_already_have').show();
39
+ $('#livechat_login').focus();
40
  }
41
  else if ($('#choice_account_0').is(':checked'))
42
  {
64
  {
65
  if (parseInt($('#license_number').val()) == 0)
66
  {
67
+ var login = $.trim($('#livechat_login').val());
68
  if (!login.length)
69
  {
70
+ $('#livechat_login').focus();
71
  return false;
72
  }
73
 
78
  if (response.error)
79
  {
80
  $('#livechat_already_have .ajax_message').removeClass('wait').addClass('message').html('Incorrect LiveChat login.');
81
+ $('#livechat_login').focus();
82
  return false;
83
  }
84
  else
readme.txt CHANGED
@@ -1,19 +1,19 @@
1
  === LiveChat ===
2
  Contributors: LiveChat
3
  Tags: live support, live chat, live chat software, online support, ecommerce, increase sales, customer help, customer support, livechat, live support, customer service, plugin, chat
4
- Stable tag: 3.2.6
5
  Requires at least: 2.8
6
- Tested up to: 3.1.3
7
 
8
  Live chat software for Wordpress plugin that integrate with LiveChat - an application for online customer service and support.
9
 
10
  == Description ==
11
 
12
- LiveChat is a fast and intuitive live chat software to enable your sales representatives contact customers on the website. Help online visitors find what they need before they leave your site.
13
 
14
  Try LiveChat free for 30 days! Sign up here: https://www.livechatinc.com/signup/
15
 
16
- Take a tour to see why you need LiveChat on your website: http://www.livechatinc.com/tour/
17
 
18
  == Installation ==
19
 
@@ -25,15 +25,13 @@ Take a tour to see why you need LiveChat on your website: http://www.livechatinc
25
  == Screenshots ==
26
 
27
  1. Chat window: A chat with a LiveChat operator.
28
- 2. Online Visitors: see who's shopping in the web based interface
29
- 3. Online Visitors: see who's shopping in the PC interface
30
- 4. Online Visitors: see who's shopping in the Mac interface
31
- 5. Even LiveChat's website is based on Wordpress!
32
 
33
 
34
  == Changelog ==
35
 
36
-
 
37
 
38
  = 3.2.5 =
39
  * Updated trunk
1
  === LiveChat ===
2
  Contributors: LiveChat
3
  Tags: live support, live chat, live chat software, online support, ecommerce, increase sales, customer help, customer support, livechat, live support, customer service, plugin, chat
4
+ Stable tag: 3.2.7
5
  Requires at least: 2.8
6
+ Tested up to: 3.6.1
7
 
8
  Live chat software for Wordpress plugin that integrate with LiveChat - an application for online customer service and support.
9
 
10
  == Description ==
11
 
12
+ LiveChat is a fast and intuitive live chat software to let your website visitors contact you in real-time. Help online visitors find what they need before they leave your site.
13
 
14
  Try LiveChat free for 30 days! Sign up here: https://www.livechatinc.com/signup/
15
 
16
+ Take a tour to see why you need LiveChat on your website: http://www.livechatinc.com/why-livechat/
17
 
18
  == Installation ==
19
 
25
  == Screenshots ==
26
 
27
  1. Chat window: A chat with a LiveChat operator.
28
+ 2. Online Visitors: see who's browsing your website in real-time.
 
 
 
29
 
30
 
31
  == Changelog ==
32
 
33
+ = 3.2.7 =
34
+ * Plugin compatible with the newest LiveChat version
35
 
36
  = 3.2.5 =
37
  * Updated trunk
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png DELETED
Binary file
screenshot-4.png DELETED
Binary file
screenshot-5.png DELETED
Binary file