Plugin Directory

Changeset 3288341


Ignore:
Timestamp:
05/06/2025 10:00:36 AM (11 months ago)
Author:
chatandbot
Message:

Tested up to: 6.8.1
specifing the desired user language by js

Location:
chatandbot/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chatandbot/trunk/chatandbot.php

    r2955459 r3288341  
    66 * Plugin URI:  https://chatandbot.com
    77 * Author:      ChatAndBot
    8  * Version:     1.2
     8 * Version:     1.3
    99 *
    1010 * Text Domain: chatandbot
     
    9494 if(isset($plugin_id_arr[1]) ){
    9595 
    96     echo "<script async='true' type='text/javascript'>(function () { var _id = ". esc_attr($plugin_id_arr[0])."; var _aid = '".esc_attr($plugin_id_arr[1])."'; var d = document;var cab_user_param ='';var w = window;var title = encodeURIComponent(d.title); var url = w.location.origin+w.location.pathname;   var _date = Date.now();var width=document.documentElement.clientWidth;  var height=document.documentElement.clientHeight; function l(){ var s = document.createElement('script');s.type = 'text/javascript'; s.async = true;s.src = 'https://chatandbot.com/erl/web333?width='+width+'&height='+height+cab_user_param+'&get_fr=1&title='+title+'&sid='+_id+'&aid='+_aid+'&date='+_date+'&url='+url;var ss = document.getElementsByTagName('script')[0];ss.parentNode.insertBefore(s, ss);}if (d.readyState == 'complete') {l();} else {if (w.attachEvent) {w.attachEvent('onload', l);} else { w.addEventListener('load', l, false);}}})()</script>";
     96    echo "<script async='true' type='text/javascript'>(function () { var _id = ". esc_attr($plugin_id_arr[0])."; var _aid = '".esc_attr($plugin_id_arr[1])."'; var d = document;var cab_user_param =''; if (typeof chatandbot_add_params !== 'undefined'){cab_user_param+=chatandbot_add_params;}; var w = window;var title = encodeURIComponent(d.title); var url = w.location.origin+w.location.pathname;   var _date = Date.now();var width=document.documentElement.clientWidth;  var height=document.documentElement.clientHeight; function l(){ var s = document.createElement('script');s.type = 'text/javascript'; s.async = true;s.src = 'https://chatandbot.com/erl/web333?width='+width+'&height='+height+cab_user_param+'&get_fr=1&title='+title+'&sid='+_id+'&aid='+_aid+'&date='+_date+'&url='+url;var ss = document.getElementsByTagName('script')[0];ss.parentNode.insertBefore(s, ss);}if (d.readyState == 'complete') {l();} else {if (w.attachEvent) {w.attachEvent('onload', l);} else { w.addEventListener('load', l, false);}}})()</script>";
    9797
    9898 }
  • chatandbot/trunk/readme.txt

    r3147624 r3288341  
    44Tags: live chat, chatbot, live support, livechat, chat software
    55Requires at least: 3.0.1
    6 Tested up to: 6.6.1
     6Tested up to: 6.8.1
    77Requires PHP: 5.6
    88Stable tag: 1.2
     
    9595= 1.2 =
    9696* Now, when loading a chat, you can specify the desired user language.
     97= 1.3 =
     98* Now, when loading a chat, you can specify the desired user language by js.
    9799
    98100
Note: See TracChangeset for help on using the changeset viewer.