REVE Chat – WP Live Chat Support plugin - Version 2.0.1

Version Description

  • Updated chat script

=

Download this release

Release Info

Developer revechat
Plugin Icon 128x128 REVE Chat – WP Live Chat Support plugin
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0 to 2.0.1

Files changed (2) hide show
  1. readme.txt +5 -5
  2. revechat.php +17 -19
readme.txt CHANGED
@@ -1,11 +1,8 @@
1
  === Reve Chat ===
2
  Contributors: revechat_official
3
  Tags: chat, chat online, contact plugin, customer support, free chat, chat software, IM chat, live chat, live chat inc, live chat services, live chat software, live chatting, live help, live support, live web chat, livechat, live help, live support, olark, online chat, online support, php live chat, snapengage, support software, website chat, wordpress chat, wordpress live chat, wordpress live chat plugin, ReveChat, REVE Chat, zendesk, Zopim live chat, clickdesk, olark, click desk, visitor analytics, web analytics, lead generation, online leads
4
- Requires at least: 3.0
5
- Tested up to: 4.6.1
6
- Stable tag: 2.0
7
- License: GPLv2 or later
8
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
 
11
  REVE Chat is powerful and intuitive real-time customer engagement software.
@@ -59,6 +56,9 @@ Should you need any assistance, feel free to chat with our customer advocates on
59
  * New for integration
60
  * Added link of settings page to display on the plugins page (beside the activate/deactivate links).
61
 
 
 
 
62
  == Screenshots ==
63
 
64
  1. Chat window on your website - active chat
1
  === Reve Chat ===
2
  Contributors: revechat_official
3
  Tags: chat, chat online, contact plugin, customer support, free chat, chat software, IM chat, live chat, live chat inc, live chat services, live chat software, live chatting, live help, live support, live web chat, livechat, live help, live support, olark, online chat, online support, php live chat, snapengage, support software, website chat, wordpress chat, wordpress live chat, wordpress live chat plugin, ReveChat, REVE Chat, zendesk, Zopim live chat, clickdesk, olark, click desk, visitor analytics, web analytics, lead generation, online leads
4
+
5
+ Stable tag: 2.0.1
 
 
 
6
 
7
 
8
  REVE Chat is powerful and intuitive real-time customer engagement software.
56
  * New for integration
57
  * Added link of settings page to display on the plugins page (beside the activate/deactivate links).
58
 
59
+ = 2.0.1 =
60
+ * Updated chat script
61
+
62
  == Screenshots ==
63
 
64
  1. Chat window on your website - active chat
revechat.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Reve Chat
4
  Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
5
- Version: 2.0
6
  Author: ReveChat
7
  Author URI: www.revechat.com
8
  License: GPL2
@@ -20,7 +20,7 @@ if(!class_exists('WP_Plugin_Revechat'))
20
  $this->plugin = new stdClass;
21
  $this->plugin->name = 'revechat'; // Plugin Folder
22
  $this->plugin->displayName = 'ReveChat'; // Plugin Name
23
- $this->plugin->version = '1.2.4';
24
 
25
  // Hooks
26
  add_action('admin_init', array(&$this, 'registerSettings'));
@@ -42,23 +42,21 @@ if(!class_exists('WP_Plugin_Revechat'))
42
  public static function frontendHeader()
43
  {
44
  $accountId = get_option('revechat_accountid' , '');
45
- if( (isset($accountId) && !empty($accountId)) ) {
46
-
47
- $script = "<script type='text/javascript'>";
48
-
49
- $script .= "window.__revechat_account = window.__revechat_account || {};
50
- window.__revechat_account = '".$accountId."';
51
- (function() {
52
- var rc = document.createElement('script'); rc.type = 'text/javascript'; rc.async = true;
53
- rc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.revechat.com/widget/scripts/new-livechat.js';
54
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rc, s);
55
- })();";
56
- $script .='</script>';
57
-
58
- echo $script ;
59
-
60
- }
61
-
62
  } // END public static function activate
63
  /*
64
  * show parameter section
2
  /*
3
  Plugin Name: Reve Chat
4
  Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
5
+ Version: 2.0.1
6
  Author: ReveChat
7
  Author URI: www.revechat.com
8
  License: GPL2
20
  $this->plugin = new stdClass;
21
  $this->plugin->name = 'revechat'; // Plugin Folder
22
  $this->plugin->displayName = 'ReveChat'; // Plugin Name
23
+ $this->plugin->version = '2.0.1';
24
 
25
  // Hooks
26
  add_action('admin_init', array(&$this, 'registerSettings'));
42
  public static function frontendHeader()
43
  {
44
  $accountId = get_option('revechat_accountid' , '');
45
+ if( (isset($accountId) && !empty($accountId)) ) {
46
+
47
+ $script = "<script type='text/javascript'>";
48
+ $script .= 'window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account=\''.$accountId.'\';w.__revechat_version=2;
49
+ r._= []; var rc = d.createElement(\'script\'); rc.type = \'text/javascript\'; rc.async = true; rc.setAttribute(\'charset\', \'utf-8\');
50
+ rc.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'static.revechat.com/widget/scripts/new-livechat.js?\'+new Date().getTime();
51
+ var s = d.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(rc, s);
52
+ })(document, window);';
53
+
54
+ $script .='</script>';
55
+
56
+ echo $script ;
57
+
58
+ }
59
+
 
 
60
  } // END public static function activate
61
  /*
62
  * show parameter section