REVE Chat – WP Live Chat Support plugin - Version 4.0

Version Description

Download this release

Release Info

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

Code changes from version 3.0 to 4.0

includes/remove-form.php CHANGED
@@ -7,17 +7,4 @@
7
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
8
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
9
</div>
10
- </div>
11
-
12
-
13
-
14
- <!--
15
- <div>
16
- <div class="messages revechat_success">REVE Chat
17
- is already installed.</div>
18
-
19
- <div id="edit-actions" class="form-actions form-wrapper">
20
- <input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
21
- <input type="submit" class="form-submit button-primary" value="Remove" name="revechat_remove" id="edit-submit">
22
- </div>
23
- </div> -->
7
<input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
8
<p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
9
</div>
10
+ </div>
js/revechat-admin.js CHANGED
@@ -15,7 +15,6 @@ jQuery.noConflict();
15
{
16
$('#revechat_already_have').hide();
17
$('#revechat_new_account').show();
18
- $('#edit-name').focus();
19
}
20
else if ($('#has_revechat_account').is(':checked'))
21
{
@@ -51,25 +50,21 @@ jQuery.noConflict();
51
52
alreadyHaveAccountForm: function()
53
{
54
55
- if(this.validEmail())
56
{
57
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
58
{
59
- var login = $.trim($('#edit-revechat-account-email').val());
60
- if(!login.length)
61
- {
62
- $('#edit-revechat-account-email').focus();
63
- return false;
64
- }
65
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait&hellip;');
66
67
- ReveChat.signIn($('#edit-revechat-account-email').val());
68
return false;
69
}
70
}
71
else
72
{
73
$('#edit-revechat-account-email').focus();
74
return false;
75
}
@@ -143,21 +138,6 @@ jQuery.noConflict();
143
}
144
});
145
},
146
- validEmail: function()
147
- {
148
- if($('#edit-submit').val() != 'Disconnect')
149
- {
150
- if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}#x2F;i.test($('#edit-revechat-account-email').val()) == false)
151
- {
152
- alert ('Please enter a valid email address.');
153
- $('.ajax_message').removeClass('wait');
154
- $('#edit-email').focus();
155
- return false;
156
- }
157
- }
158
- return true;
159
- },
160
-
161
validateNewLicenseForm: function()
162
{
163
15
{
16
$('#revechat_already_have').hide();
17
$('#revechat_new_account').show();
18
}
19
else if ($('#has_revechat_account').is(':checked'))
20
{
50
51
alreadyHaveAccountForm: function()
52
{
53
+ var email = $.trim($('#edit-revechat-account-email').val());
54
55
+ if(ReveChat.isValidEmailAddress(email))
56
{
57
if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
58
{
59
$('.ajax_message').removeClass('message').addClass('wait').html('Please wait&hellip;');
60
61
+ ReveChat.signIn(email);
62
return false;
63
}
64
}
65
else
66
{
67
+ alert('Please provide a valid email address');
68
$('#edit-revechat-account-email').focus();
69
return false;
70
}
138
}
139
});
140
},
141
validateNewLicenseForm: function()
142
{
143
readme.txt CHANGED
@@ -2,8 +2,7 @@
2
Contributors: revechat
3
Tags: free chat, live chat, live chat software, live support, chat plugin, chat, video chat, voice chat, tawk.to
4
Requires at least: 2.7
5
- Tested up to: 4.9.1
6
- Stable tag: 3.0
7
8
REVE Chat is powerful and intuitive real-time customer engagement software.
9
@@ -94,9 +93,6 @@ REVE chat is a complete online sales and support tool to engage your website vis
94
95
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
96
97
- = I managed to install the plugin but cannot link up to REVE Chat. Why? =
98
-
99
- Please insert required parameter Account ID and Tracking ID into plugin's configuration page.
100
101
= How much is price of REVE Chat? =
102
@@ -207,8 +203,7 @@ Admin can monitor which agents are chatting and the detailed chat conversations
207
= Step-by-step Guide =
208
* Search Plugin from Wordpress Directory
209
* Install REVE Chat plugin
210
- * Copy Account ID and Tracking ID from integration page
211
- * Paste it REVE Chat Plugins setting page
212
- * Customize the chat widget to your preference.
213
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
214
2
Contributors: revechat
3
Tags: free chat, live chat, live chat software, live support, chat plugin, chat, video chat, voice chat, tawk.to
4
Requires at least: 2.7
5
+ Tested up to: 4.9.4
6
7
REVE Chat is powerful and intuitive real-time customer engagement software.
8
93
94
Though it is designed to work on almost all the browsers, REVE Chat works best in the following environment: IE 7+ or later (PC), Firefox 2 or later (Mac, PC, or Linux), Safari 2 or later (Mac), Google Chrome (PC, Mac).
95
96
97
= How much is price of REVE Chat? =
98
203
= Step-by-step Guide =
204
* Search Plugin from Wordpress Directory
205
* Install REVE Chat plugin
206
+ * Go to REVE Chat plugin settings page.
207
+ * Type your email address in the input field and submit.
208
* Finally, make full use of our intuitive Dashboard to manage your chat widget.
209
revechat.php CHANGED
@@ -2,7 +2,7 @@
2
/*
3
Plugin Name: REVE Chat - WP live chat plugin for WordPress
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: 3.0
6
Author: REVE Chat
7
Author URI: www.revechat.com
8
License: GPL2
@@ -19,12 +19,10 @@ if(!class_exists('WP_Plugin_Revechat'))
19
// Plugin Details
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.4';
24
25
// Hooks
26
add_action('admin_init', array(&$this, 'registerSettings'));
27
- //add_action('admin_menu', array(&$this, 'adminPanels'));
28
29
add_action('wp_head', array(&$this, 'frontendHeader'));
30
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
@@ -34,6 +32,7 @@ if(!class_exists('WP_Plugin_Revechat'))
34
35
//enqueue scripts
36
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
37
} // END public function __construct
38
39
/**
@@ -57,24 +56,18 @@ if(!class_exists('WP_Plugin_Revechat'))
57
58
}
59
60
- } // END public static function activate
61
/*
62
- * show parameter section
63
*/
64
public function registerSettings(){
65
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
66
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
67
}
68
/*
69
- * admin panel
70
- */
71
- public function adminPanels(){
72
- //add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
73
- // Add a new submenu under Settings:
74
- add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
75
- }
76
- /*
77
- * revechat options
78
*/
79
public function reveChatOptions(){
80
if ( !current_user_can( 'manage_options' ) ) {
@@ -92,7 +85,7 @@ if(!class_exists('WP_Plugin_Revechat'))
92
$val_accountId = $_POST[ $accountId ];
93
update_option( $accountId , $val_accountId );
94
?>
95
- <div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
96
<?php
97
}
98
?>
@@ -108,6 +101,7 @@ if(!class_exists('WP_Plugin_Revechat'))
108
<?php
109
if(isset($val_accountId) && $val_accountId != 0){
110
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
111
return;
112
}
113
@@ -121,8 +115,6 @@ if(!class_exists('WP_Plugin_Revechat'))
121
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
122
?>
123
124
-
125
-
126
</form>
127
</div>
128
</div>
@@ -130,23 +122,33 @@ if(!class_exists('WP_Plugin_Revechat'))
130
<?php
131
}
132
133
public function admin_menu()
134
{
135
- // add_menu_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = '', string $icon_url = '', int $position = null )
136
- add_menu_page(__('ReveChat Dashboard','revechat-settings'), __('REVE Chat','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
137
-
138
}
139
140
/**
141
* Deactivate the plugin
142
*/
143
public static function deactivate()
144
{
145
delete_option('revechat_accountid');
146
- } // END public static function deactivate
147
148
public function admin_scripts(){
149
- wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js' );
150
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
151
}
152
@@ -156,7 +158,9 @@ if(!class_exists('WP_Plugin_Revechat'))
156
);
157
return array_merge( $links, $menu_link );
158
}
159
- } // END class WP_Plugin_Revechat
160
} // END if(!class_exists('WP_Plugin_Revechat'))
161
- $revechat = new WP_Plugin_Revechat ;
162
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
2
/*
3
Plugin Name: REVE Chat - WP live chat plugin for WordPress
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: 4.0
6
Author: REVE Chat
7
Author URI: www.revechat.com
8
License: GPL2
19
// Plugin Details
20
$this->plugin = new stdClass;
21
$this->plugin->name = 'revechat'; // Plugin Folder
22
+ $this->plugin->displayName = 'REVE Chat'; // Plugin Name
23
24
// Hooks
25
add_action('admin_init', array(&$this, 'registerSettings'));
26
27
add_action('wp_head', array(&$this, 'frontendHeader'));
28
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
32
33
//enqueue scripts
34
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
35
+
36
} // END public function __construct
37
38
/**
56
57
}
58
59
+ }
60
+
61
/*
62
+ * Register the settings
63
*/
64
public function registerSettings(){
65
register_setting($this->plugin->name, 'revechat_accountid', 'trim');
66
register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
67
}
68
+
69
/*
70
+ * Settings Form
71
*/
72
public function reveChatOptions(){
73
if ( !current_user_can( 'manage_options' ) ) {
85
$val_accountId = $_POST[ $accountId ];
86
update_option( $accountId , $val_accountId );
87
?>
88
+ <div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
89
<?php
90
}
91
?>
101
<?php
102
if(isset($val_accountId) && $val_accountId != 0){
103
require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
104
+ echo '</div>';
105
return;
106
}
107
115
require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
116
?>
117
118
</form>
119
</div>
120
</div>
122
<?php
123
}
124
125
+ /**
126
+ * Add page in admin menu
127
+ */
128
public function admin_menu()
129
{
130
+ add_menu_page(__($this->plugin->displayName.' Dashboard','revechat-settings'), __($this->plugin->displayName,'menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
131
}
132
133
/**
134
* Deactivate the plugin
135
*/
136
+
137
public static function deactivate()
138
{
139
delete_option('revechat_accountid');
140
+ }
141
+
142
143
+ /**
144
+ * Enque JavaScript and Css in admin panel
145
+ */
146
public function admin_scripts(){
147
+
148
+ wp_enqueue_script( 'jquery');
149
+
150
+ wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js',array('jquery') );
151
+
152
wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
153
}
154
158
);
159
return array_merge( $links, $menu_link );
160
}
161
+ }
162
} // END if(!class_exists('WP_Plugin_Revechat'))
163
+
164
+ $revechat = new WP_Plugin_Revechat();
165
+
166
register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
screenshot-1.jpg CHANGED
Binary file
screenshot-2.jpg CHANGED
Binary file
screenshot-3.jpg CHANGED
Binary file
screenshot-4.jpg CHANGED
Binary file
screenshot-5.jpg ADDED
Binary file
screenshot-6.jpg ADDED
Binary file
screenshot-7.jpg ADDED
Binary file
screenshot-8.jpg ADDED
Binary file
screenshot-9.jpg ADDED
Binary file