Version Description
- Added "Company", "Phone" and "Website" fields in license registration form
- Fixed license registration bug
- Updated Control Panel URL
Download this release
Release Info
Developer | livechat |
Plugin | LiveChat – WP live chat plugin for WordPress |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.2
- livechat.php +3 -3
- plugin_files/css/styles.css +1 -0
- plugin_files/js/signup.js +6 -3
- plugin_files/settings.php +17 -5
- readme.txt +5 -0
livechat.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Live Chat Software for Wordpress
|
|
4 |
Plugin URI: http://www.livechatinc.com
|
5 |
Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install the live chat button and monitoring code on any WordPress website.
|
6 |
Author: LIVECHAT Software
|
7 |
-
Version: 2.1.
|
8 |
Author URI: http://www.livechatinc.com
|
9 |
*/
|
10 |
|
@@ -137,8 +137,8 @@ function livechat_settings()
|
|
137 |
|
138 |
function livechat_control_panel()
|
139 |
{
|
140 |
-
echo '<iframe id="control_panel" src="https://panel.livechatinc.
|
141 |
-
echo '<p>Optionally, open the Control Panel in <a href="https://panel.livechatinc.
|
142 |
}
|
143 |
|
144 |
|
4 |
Plugin URI: http://www.livechatinc.com
|
5 |
Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install the live chat button and monitoring code on any WordPress website.
|
6 |
Author: LIVECHAT Software
|
7 |
+
Version: 2.1.2
|
8 |
Author URI: http://www.livechatinc.com
|
9 |
*/
|
10 |
|
137 |
|
138 |
function livechat_control_panel()
|
139 |
{
|
140 |
+
echo '<iframe id="control_panel" src="https://panel.livechatinc.com/" frameborder="0"></iframe>';
|
141 |
+
echo '<p>Optionally, open the Control Panel in <a href="https://panel.livechatinc.com/" target="_blank">external window</a>.</p>';
|
142 |
}
|
143 |
|
144 |
|
plugin_files/css/styles.css
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
.postbox_content { padding: 0 10px; }
|
4 |
.postbox_content ul { margin-top: 5px; }
|
5 |
.postbox label { line-height: 1.5em; }
|
|
|
6 |
.explanation { display: block; margin-top: 3px; padding-left: 5px; }
|
7 |
a.help,
|
8 |
span.help a { color: #bbb; }
|
3 |
.postbox_content { padding: 0 10px; }
|
4 |
.postbox_content ul { margin-top: 5px; }
|
5 |
.postbox label { line-height: 1.5em; }
|
6 |
+
.postbox .asterisk { color: red; }
|
7 |
.explanation { display: block; margin-top: 3px; padding-left: 5px; }
|
8 |
a.help,
|
9 |
span.help a { color: #bbb; }
|
plugin_files/js/signup.js
CHANGED
@@ -34,9 +34,12 @@ $(document).ready(function()
|
|
34 |
$('#ajax_message').removeClass('message').addClass('wait').html('Creating new licence…');
|
35 |
|
36 |
var url = 'http://www.livechatinc.com/en/signup/';
|
37 |
-
url += '?account_first_name='
|
38 |
-
url += '&account_last_name='
|
39 |
-
url += '&account_email='
|
|
|
|
|
|
|
40 |
url += '&action=wordpress_signup';
|
41 |
url += '&recaptcha_ip='+$('input[name=recaptcha_ip]').val();
|
42 |
url += '&recaptcha_challenge_field='+$('input[name=recaptcha_challenge_field]').val();
|
34 |
$('#ajax_message').removeClass('message').addClass('wait').html('Creating new licence…');
|
35 |
|
36 |
var url = 'http://www.livechatinc.com/en/signup/';
|
37 |
+
url += '?account_first_name='+encodeURIComponent($('#livechat_account_first_name').val());
|
38 |
+
url += '&account_last_name='+encodeURIComponent($('#livechat_account_last_name').val());
|
39 |
+
url += '&account_email='+encodeURIComponent($('#livechat_account_email').val());
|
40 |
+
url += '&account_company='+encodeURIComponent($('#livechat_account_company').val());
|
41 |
+
url += '&account_phone='+encodeURIComponent($('#livechat_account_phone').val());
|
42 |
+
url += '&account_website='+encodeURIComponent($('#livechat_account_website').val());
|
43 |
url += '&action=wordpress_signup';
|
44 |
url += '&recaptcha_ip='+$('input[name=recaptcha_ip]').val();
|
45 |
url += '&recaptcha_challenge_field='+$('input[name=recaptcha_challenge_field]').val();
|
plugin_files/settings.php
CHANGED
@@ -151,22 +151,34 @@ else
|
|
151 |
<div class="postbox_content">
|
152 |
|
153 |
<?php settings_fields('livechat_license_created'); ?>
|
|
|
154 |
<table class="form-table">
|
155 |
<tr>
|
156 |
-
<th scope="row"><label for="livechat_account_first_name">First name:</label></th>
|
157 |
<td><input type="text" name="livechat_account_first_name" id="livechat_account_first_name" maxlength="30" /></td>
|
158 |
</tr>
|
159 |
<tr>
|
160 |
-
<th scope="row"><label for="livechat_account_last_name">Last name:</label></th>
|
161 |
<td><input type="text" name="livechat_account_last_name" id="livechat_account_last_name" maxlength="30" /></td>
|
162 |
</tr>
|
163 |
<tr>
|
164 |
-
<th scope="row"><label for="livechat_account_email">E-mail:</label></th>
|
165 |
<td><input type="text" name="livechat_account_email" id="livechat_account_email" maxlength="70" /></td>
|
166 |
</tr>
|
167 |
-
|
168 |
<tr>
|
169 |
-
<th scope="row"><label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
<td>
|
171 |
<!-- ReCaptcha -->
|
172 |
<input type="hidden" name="recaptcha_ip" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>">
|
151 |
<div class="postbox_content">
|
152 |
|
153 |
<?php settings_fields('livechat_license_created'); ?>
|
154 |
+
<p>Fields marked with <span class="asterisk">*</span> are required.</p>
|
155 |
<table class="form-table">
|
156 |
<tr>
|
157 |
+
<th scope="row"><label for="livechat_account_first_name"><span class="asterisk">*</span>First name:</label></th>
|
158 |
<td><input type="text" name="livechat_account_first_name" id="livechat_account_first_name" maxlength="30" /></td>
|
159 |
</tr>
|
160 |
<tr>
|
161 |
+
<th scope="row"><label for="livechat_account_last_name"><span class="asterisk">*</span>Last name:</label></th>
|
162 |
<td><input type="text" name="livechat_account_last_name" id="livechat_account_last_name" maxlength="30" /></td>
|
163 |
</tr>
|
164 |
<tr>
|
165 |
+
<th scope="row"><label for="livechat_account_email"><span class="asterisk">*</span>E-mail:</label></th>
|
166 |
<td><input type="text" name="livechat_account_email" id="livechat_account_email" maxlength="70" /></td>
|
167 |
</tr>
|
|
|
168 |
<tr>
|
169 |
+
<th scope="row"><label for="livechat_account_company">Company name:</label></th>
|
170 |
+
<td><input type="text" name="livechat_account_company" id="livechat_account_company" maxlength="70" /></td>
|
171 |
+
</tr>
|
172 |
+
<tr>
|
173 |
+
<th scope="row"><label for="livechat_account_phone">Phone number:</label></th>
|
174 |
+
<td><input type="text" name="livechat_account_phone" id="livechat_account_phone" maxlength="70" /></td>
|
175 |
+
</tr>
|
176 |
+
<tr>
|
177 |
+
<th scope="row"><label for="livechat_account_website">Website:</label></th>
|
178 |
+
<td><input type="text" name="livechat_account_website" id="livechat_account_website" maxlength="70" value="<?php echo bloginfo('url'); ?>" /></td>
|
179 |
+
</tr>
|
180 |
+
<tr>
|
181 |
+
<th scope="row"><label><span class="asterisk">*</span>Confirmation code:</label></th>
|
182 |
<td>
|
183 |
<!-- ReCaptcha -->
|
184 |
<input type="hidden" name="recaptcha_ip" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>">
|
readme.txt
CHANGED
@@ -216,6 +216,11 @@ This add-on allows agents to use Skype account to call back the customers in the
|
|
216 |
|
217 |
== Changelog ==
|
218 |
|
|
|
|
|
|
|
|
|
|
|
219 |
= 2.1.1 =
|
220 |
* Fixed monitoring and chat button code installation
|
221 |
|
216 |
|
217 |
== Changelog ==
|
218 |
|
219 |
+
= 2.1.2 =
|
220 |
+
* Added "Company", "Phone" and "Website" fields in license registration form
|
221 |
+
* Fixed license registration bug
|
222 |
+
* Updated Control Panel URL
|
223 |
+
|
224 |
= 2.1.1 =
|
225 |
* Fixed monitoring and chat button code installation
|
226 |
|