Tidio Live Chat - Version 4.5.1

Version Description

  • Add missing "tidioApiUrl" value in options.js file
Download this release

Release Info

Developer kkopaczyktidio
Plugin Icon 128x128 Tidio Live Chat
Version 4.5.1
Comparing to
See all releases

Code changes from version 4.5.0 to 4.5.1

Files changed (4) hide show
  1. media/js/options.js +7 -6
  2. options.php +0 -5
  3. readme.txt +12 -12
  4. tidio-elements.php +11 -6
media/js/options.js CHANGED
@@ -3,8 +3,9 @@ jQuery(function ($) {
3
  const { __ } = wp.i18n;
4
 
5
  var TidioChatWP = {
6
- apiUrl: tidioApiUrl,
7
- chatUrl: tidioPanelUrl,
 
8
  token: null,
9
  email: '',
10
  translate: message => __(message, 'tidio-live-chat'),
@@ -131,7 +132,7 @@ jQuery(function ($) {
131
 
132
  $.post(ajaxurl, {
133
  'action': 'get_private_key',
134
- '_wpnonce': nonce,
135
  },
136
  function (response) {
137
  if (response === 'error') {
@@ -197,7 +198,7 @@ jQuery(function ($) {
197
  $.extend(details, {
198
  'action': 'set_project_keys',
199
  'api_token': TidioChatWP.token,
200
- '_wpnonce': nonce,
201
  });
202
 
203
  $.post(ajaxurl, details, (function (response) {
@@ -318,7 +319,7 @@ jQuery(function ($) {
318
  alert(this.translate('Error occured while creating, please try again!'));
319
  return false;
320
  }
321
- _func(TidioChatWP.chatUrl + '/access?privateKey=' +
322
  r.value.private_key +
323
  '&app=chat&utm_source=platform&utm_medium=wordpress');
324
 
@@ -327,7 +328,7 @@ jQuery(function ($) {
327
  'action': 'tidio_chat_save_keys',
328
  'public_key': r.value.public_key,
329
  'private_key': r.value.private_key,
330
- '_wpnonce': nonce,
331
  });
332
  }).fail(function () {
333
  alert(this.translate('Error occured while creating, please try again!'));
3
  const { __ } = wp.i18n;
4
 
5
  var TidioChatWP = {
6
+ nonce: tidioConfig.nonce,
7
+ apiUrl: tidioConfig.apiUrl,
8
+ panelUrl: tidioConfig.panelUrl,
9
  token: null,
10
  email: '',
11
  translate: message => __(message, 'tidio-live-chat'),
132
 
133
  $.post(ajaxurl, {
134
  'action': 'get_private_key',
135
+ '_wpnonce': TidioChatWP.nonce,
136
  },
137
  function (response) {
138
  if (response === 'error') {
198
  $.extend(details, {
199
  'action': 'set_project_keys',
200
  'api_token': TidioChatWP.token,
201
+ '_wpnonce': TidioChatWP.nonce,
202
  });
203
 
204
  $.post(ajaxurl, details, (function (response) {
319
  alert(this.translate('Error occured while creating, please try again!'));
320
  return false;
321
  }
322
+ _func(TidioChatWP.panelUrl + '/access?privateKey=' +
323
  r.value.private_key +
324
  '&app=chat&utm_source=platform&utm_medium=wordpress');
325
 
328
  'action': 'tidio_chat_save_keys',
329
  'public_key': r.value.public_key,
330
  'private_key': r.value.private_key,
331
+ '_wpnonce': TidioChatWP.nonce,
332
  });
333
  }).fail(function () {
334
  alert(this.translate('Error occured while creating, please try again!'));
options.php CHANGED
@@ -1,8 +1,3 @@
1
- <script>
2
- var nonce = '<?php echo wp_create_nonce(TidioLiveChat::TIDIO_XHR_NONCE_NAME); ?>';
3
- var tidioApiUrl = '<?php echo TidioLiveChatConfig::getApiUrl(); ?>';
4
- var tidioPanelUrl = '<?php echo TidioLiveChatConfig::getPanelUrl(); ?>';
5
- </script>
6
  <div id="tidio-wrapper">
7
  <div class="tidio-box-wrapper">
8
  <div class="tidio-box tidio-box-actions">
 
 
 
 
 
1
  <div id="tidio-wrapper">
2
  <div class="tidio-box-wrapper">
3
  <div class="tidio-box tidio-box-actions">
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === Tidio – Live Chat, Chatbots & Email Marketing ===
2
  Contributors: tytus-tytus, lucastidio, marcingwizdala, kkopaczyktidio
3
  Tags: free live chat, live chat, chat, chatbot, livechat, tidio, widget, zendesk, mailchimp, messenger
4
  Requires at least: 3.0
5
  Tested up to: 5.8
6
- Stable tag: 4.5.0
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -18,7 +18,7 @@ It’s a multifunctional customer service platform that enables you to offer wor
18
  But don't take our word for it—experience it yourself! Our plugin is completely free, and the installation takes under 5 minutes.
19
 
20
  ## Pricing plans? 100% transparent.
21
- Most of our powerful features are available in the **free forever plan.**
22
  If you want to test all of them, sign up for a 7-days free trial.
23
 
24
  ## So, what do you exactly get when you install Tidio?
@@ -30,7 +30,7 @@ If you want to test all of them, sign up for a 7-days free trial.
30
  - **Customize** the live chat widget, so it fits your website look
31
  - The widget is 100% mobile-friendly, so your customers can write to you on a mobile, tablet or desktop: **it will always work seamlessly on any device**
32
  - Manage all your **live chat, e-mail and Messenger** messages from **one panel**
33
- - Stay in touch with your visitors on mobile and tablet thanks to Tidio’s **free iOS and Android apps**
34
 
35
  ## 2. Chatbots that will increase sales in your online store by acting as a virtual assistant 24/7
36
 
@@ -45,8 +45,8 @@ See how live chat can boost your sales
45
  ## 3. Chatbots that will generate leads much more effectively by engaging your visitors exactly when they need it
46
 
47
  - Use chatbots that **engage your potential customers** exactly when they are most likely to share their contact info
48
- - Present your services **much more effectively** with automated conversations
49
- - **Collect emails** proactively
50
  - Provide **the best content and information tailored** to your visitors' profiles and interests
51
  - Provide answers to the most common questions **instantly, at any time, 24/7**
52
  - Add **tags** and other properties to your visitors and **send valuable information to your CRM**
@@ -61,7 +61,7 @@ Never used chatbots before? Check our video guide
61
  - Free mobile app (iOS & Android) to communicate with your customers from anywhere and anytime with live chat
62
  - Incoming visitor notifications to engage them as soon as they come to your website
63
  - Viewed pages list to see where your visitors are and offer them specific assistance
64
- - Live typing preview to stay on top of conversations and prepare your answers
65
  - Quick responses to speed you answering most common questions via live chat.
66
  - Ready to use built-in chatbots and a visual editor to build them from scratch without coding
67
  - Fantastic 24/5 support;
@@ -141,8 +141,7 @@ Tidio is free and we don’t need your card details. Later on, you can unlock ad
141
  = I’ve installed the WordPress chat plugin—what happens next? =
142
  Click on the new Tidio live chat icon that appeared on your WP-admin menu on the left. You'll be able to create your Tidio account connected to the plugin. Finish the initial configuration and you can start using the best live chat plugin for WordPress.
143
  = Do I need a Tidio account to use this WordPress live chat plugin? =
144
- Yes. Install the plugin, activate it, and create your free Tidio account from your WP admin panel. Alternatively, you can sign up first, install the plugin, click the Tidio icon in your WP panel, and then use your Tidio login credentials. Find out [more about the installation process](https://wordpress.org/plugins/tidio-live-chat/#installation)
145
- .
146
  = Does Tidio offer a free trial? =
147
  Yes! Tidio has a free plan but you can also test all the premium features for 7 days.
148
  = Will I have to upgrade my account at some point? =
@@ -168,8 +167,6 @@ Yes, but you need to switch off the pre-chat survey. By default, Tidio shows a s
168
  Yes. All messages and live chat conversations are grouped and available in your panel. Tidio does not delete conversations. You can remove them permanently and clear the live chat history manually if you need.
169
  = Can I add this live chat to my Facebook page? =
170
  Yes. You can easily integrate Tidio live chat with FB Messenger. To find out more, read [Facebook live chat integration](https://www.tidio.com/blog/facebook-live-chat-integration/).
171
- = Can I send email marketing campaigns to all my contacts? =
172
- Yes. Tidio lets you create sales and marketing cycles. Your chatbots and pre-chat survey can collect email addresses and opt-in agreements. Then, you can use contacts from your customer base for email marketing campaigns. You can also import custom email lists and contacts.
173
  = Can I integrate Tidio with 3rd party apps? =
174
  Yes. You can connect Tidio to popular eCommerce platforms, Google Analytics, marketing apps, or CRM systems. Check the [full list of available integrations](https://www.tidio.com/integrations/). You can also connect Tidio with 3,000+ external apps for free using Zapier.
175
  = Can I use Tidio in languages other than English? =
@@ -185,10 +182,13 @@ Currently, Tidio is available in English and French. Other languages are in deve
185
  6. WordPress Chatbot - Automate your work and let the bot do repetitive tasks.
186
  7. Chatbot Templates - Set up your chatbots in no time with ready-made scripts.
187
  8. Visual Chatbot Editor - Build your bots from scratch by dragging and dropping elements.
188
- 9. Email Marketing Tools - Send beautiful newsletters and stay in touch with your customers.
189
 
190
  == Changelog ==
191
 
 
 
 
 
192
  = 4.5.0 =
193
 
194
  - Add russian translations
1
+ === Tidio – Live Chat, Chatbots & Email Integration ===
2
  Contributors: tytus-tytus, lucastidio, marcingwizdala, kkopaczyktidio
3
  Tags: free live chat, live chat, chat, chatbot, livechat, tidio, widget, zendesk, mailchimp, messenger
4
  Requires at least: 3.0
5
  Tested up to: 5.8
6
+ Stable tag: 4.5.1
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
18
  But don't take our word for it—experience it yourself! Our plugin is completely free, and the installation takes under 5 minutes.
19
 
20
  ## Pricing plans? 100% transparent.
21
+ Most of our powerful features are available in the **free forever plan.**
22
  If you want to test all of them, sign up for a 7-days free trial.
23
 
24
  ## So, what do you exactly get when you install Tidio?
30
  - **Customize** the live chat widget, so it fits your website look
31
  - The widget is 100% mobile-friendly, so your customers can write to you on a mobile, tablet or desktop: **it will always work seamlessly on any device**
32
  - Manage all your **live chat, e-mail and Messenger** messages from **one panel**
33
+ - Stay in touch with your visitors on mobile and tablet thanks to Tidio’s **free iOS and Android apps**
34
 
35
  ## 2. Chatbots that will increase sales in your online store by acting as a virtual assistant 24/7
36
 
45
  ## 3. Chatbots that will generate leads much more effectively by engaging your visitors exactly when they need it
46
 
47
  - Use chatbots that **engage your potential customers** exactly when they are most likely to share their contact info
48
+ - Present your services **much more effectively** with automated conversations
49
+ - **Collect emails** proactively
50
  - Provide **the best content and information tailored** to your visitors' profiles and interests
51
  - Provide answers to the most common questions **instantly, at any time, 24/7**
52
  - Add **tags** and other properties to your visitors and **send valuable information to your CRM**
61
  - Free mobile app (iOS & Android) to communicate with your customers from anywhere and anytime with live chat
62
  - Incoming visitor notifications to engage them as soon as they come to your website
63
  - Viewed pages list to see where your visitors are and offer them specific assistance
64
+ - Live typing preview to stay on top of conversations and prepare your answers
65
  - Quick responses to speed you answering most common questions via live chat.
66
  - Ready to use built-in chatbots and a visual editor to build them from scratch without coding
67
  - Fantastic 24/5 support;
141
  = I’ve installed the WordPress chat plugin—what happens next? =
142
  Click on the new Tidio live chat icon that appeared on your WP-admin menu on the left. You'll be able to create your Tidio account connected to the plugin. Finish the initial configuration and you can start using the best live chat plugin for WordPress.
143
  = Do I need a Tidio account to use this WordPress live chat plugin? =
144
+ Yes. Install the plugin, activate it, and create your free Tidio account from your WP admin panel. Alternatively, you can sign up first, install the plugin, click the Tidio icon in your WP panel, and then use your Tidio login credentials. Find out [more about the installation process](https://wordpress.org/plugins/tidio-live-chat/#installation).
 
145
  = Does Tidio offer a free trial? =
146
  Yes! Tidio has a free plan but you can also test all the premium features for 7 days.
147
  = Will I have to upgrade my account at some point? =
167
  Yes. All messages and live chat conversations are grouped and available in your panel. Tidio does not delete conversations. You can remove them permanently and clear the live chat history manually if you need.
168
  = Can I add this live chat to my Facebook page? =
169
  Yes. You can easily integrate Tidio live chat with FB Messenger. To find out more, read [Facebook live chat integration](https://www.tidio.com/blog/facebook-live-chat-integration/).
 
 
170
  = Can I integrate Tidio with 3rd party apps? =
171
  Yes. You can connect Tidio to popular eCommerce platforms, Google Analytics, marketing apps, or CRM systems. Check the [full list of available integrations](https://www.tidio.com/integrations/). You can also connect Tidio with 3,000+ external apps for free using Zapier.
172
  = Can I use Tidio in languages other than English? =
182
  6. WordPress Chatbot - Automate your work and let the bot do repetitive tasks.
183
  7. Chatbot Templates - Set up your chatbots in no time with ready-made scripts.
184
  8. Visual Chatbot Editor - Build your bots from scratch by dragging and dropping elements.
 
185
 
186
  == Changelog ==
187
 
188
+ = 4.5.1 =
189
+
190
+ - Add missing "tidioApiUrl" value in options.js file
191
+
192
  = 4.5.0 =
193
 
194
  - Add russian translations
tidio-elements.php CHANGED
@@ -4,14 +4,14 @@
4
  * Plugin Name: Tidio Chat
5
  * Plugin URI: http://www.tidio.com
6
  * Description: Tidio Live Chat - live chat boosted with chatbots for your online business. Integrates with your website in less than 20 seconds.
7
- * Version: 4.5.0
8
  * Author: Tidio Ltd.
9
  * Author URI: http://www.tidio.com
10
  * Text Domain: tidio-live-chat
11
  * Domain Path: /languages/
12
  * License: GPL2
13
  */
14
- define('TIDIOCHAT_VERSION', '4.5.0');
15
  define('AFFILIATE_CONFIG_FILE_PATH', get_template_directory().'/tidio_affiliate_ref_id.txt');
16
 
17
  class TidioLiveChat
@@ -350,10 +350,15 @@ SRC;
350
 
351
  public function enqueueAdminScripts()
352
  {
353
- wp_enqueue_script('tidio-chat-admin', plugins_url('media/js/options.js', __FILE__), ['wp-i18n'], TIDIOCHAT_VERSION,
354
- true);
355
- wp_enqueue_style('tidio-chat-admin-style', plugins_url('media/css/options.css', __FILE__), array(),
356
- TIDIOCHAT_VERSION);
 
 
 
 
 
357
  }
358
 
359
  public function adminJS()
4
  * Plugin Name: Tidio Chat
5
  * Plugin URI: http://www.tidio.com
6
  * Description: Tidio Live Chat - live chat boosted with chatbots for your online business. Integrates with your website in less than 20 seconds.
7
+ * Version: 4.5.1
8
  * Author: Tidio Ltd.
9
  * Author URI: http://www.tidio.com
10
  * Text Domain: tidio-live-chat
11
  * Domain Path: /languages/
12
  * License: GPL2
13
  */
14
+ define('TIDIOCHAT_VERSION', '4.5.1');
15
  define('AFFILIATE_CONFIG_FILE_PATH', get_template_directory().'/tidio_affiliate_ref_id.txt');
16
 
17
  class TidioLiveChat
350
 
351
  public function enqueueAdminScripts()
352
  {
353
+ $tidioConfig = [
354
+ 'nonce' => wp_create_nonce(self::TIDIO_XHR_NONCE_NAME),
355
+ 'apiUrl' => TidioLiveChatConfig::getApiUrl(),
356
+ 'panelUrl' => TidioLiveChatConfig::getPanelUrl()
357
+ ];
358
+
359
+ wp_enqueue_script('tidio-chat-admin', plugins_url('media/js/options.js', __FILE__), ['wp-i18n'], TIDIOCHAT_VERSION, true);
360
+ wp_add_inline_script('tidio-chat-admin', sprintf('const tidioConfig = %s', json_encode($tidioConfig)), 'before');
361
+ wp_enqueue_style('tidio-chat-admin-style', plugins_url('media/css/options.css', __FILE__), array(), TIDIOCHAT_VERSION);
362
  }
363
 
364
  public function adminJS()