LiveChat – WP live chat plugin for WordPress - Version 3.1.0

Version Description

  • Major update in the Tracking Code
Download this release

Release Info

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

Code changes from version 3.0.0 to 3.1.0

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 the live chat button and tracking code on any WordPress website.
6
  Author: LiveChat
7
  Author URI: http://www.livechatinc.com
8
- Version: 3.0
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 the live chat button and tracking code on any WordPress website.
6
  Author: LiveChat
7
  Author URI: http://www.livechatinc.com
8
+ Version: 3.1
9
  */
10
 
11
  if (is_admin())
plugin_files/helpers/TrackingCodeHelper.class.php CHANGED
@@ -13,21 +13,26 @@ class TrackingCodeHelper extends LiveChatHelper
13
  $license_number = LiveChat::get_instance()->get_license_number();
14
 
15
  return <<<HTML
16
- <script type="text/javascript">
 
 
 
 
 
17
 
18
- (function() {
19
- var lc_params = '';
20
- var lc_lang = '{$lang}';
21
- var lc_skill = '{$skill}';
22
-
23
- var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
24
- var lc_src = ('https:' == document.location.protocol ? 'https://' : 'http://');
25
- lc_src += 'chat.livechatinc.net/licence/{$license_number}/script.cgi?lang='+lc_lang+unescape('%26')+'groups='+lc_skill;
26
- lc_src += ((lc_params == '') ? '' : unescape('%26')+'params='+encodeURIComponent(encodeURIComponent(lc_params))); lc.src = lc_src;
27
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
28
- })();
29
-
30
- </script>
31
  HTML;
32
  }
33
 
13
  $license_number = LiveChat::get_instance()->get_license_number();
14
 
15
  return <<<HTML
16
+ <script type="text/javascript">
17
+ (function() {
18
+ var license = '{$license_number}',
19
+ params = '',
20
+ lang = '{$lang}',
21
+ skill = '{$skill}';
22
 
23
+ __lc_load = function (p) { if (typeof __lc_loaded != 'function')
24
+ if (p) { var d = document, l = d.createElement('script'), s =
25
+ d.getElementsByTagName('script')[0], a = unescape('%26'),
26
+ h = ('https:' == d.location.protocol ? 'https://' : 'http://'); l.type = 'text/javascript'; l.async = true;
27
+ l.src = h + 'gis' + p +'.livechatinc.com/gis.cgi?serverType=control'+a+'licenseID='+license+a+'jsonp=__lc_load';
28
+ if (typeof p['server'] == 'string' && typeof __lc_serv != 'string') {
29
+ l.src = h + (__lc_serv = p['server']) + '/licence/'+license+'/script.cgi?lang='+lang+a+'groups='+skill;
30
+ l.src += (params == '') ? '' : a+'params='+encodeURIComponent(encodeURIComponent(params)); s.parentNode.insertBefore(l, s);
31
+ } else setTimeout(__lc_load, 1000); typeof __lc_serv != 'string' && s.parentNode.insertBefore(l, s);
32
+ } else __lc_load(Math.ceil(Math.random()*5)); }
33
+ __lc_load();
34
+ })();
35
+ </script>
36
  HTML;
37
  }
38
 
readme.txt CHANGED
@@ -1,17 +1,17 @@
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.0.0
5
  Requires at least: 2.8
6
  Tested up to: 3.1.3
7
 
8
- This plugin integrates your Wordpress 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 14 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
 
@@ -28,6 +28,9 @@ Take a tour to see why you need LiveChat on your website: http://www.livechatinc
28
 
29
  == Changelog ==
30
 
 
 
 
31
  = 3.0.0 =
32
  * Rewritten whole plugin code
33
  * Fixed creating licenses
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.1.0
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
 
28
 
29
  == Changelog ==
30
 
31
+ = 3.1.0 =
32
+ * Major update in the Tracking Code
33
+
34
  = 3.0.0 =
35
  * Rewritten whole plugin code
36
  * Fixed creating licenses