Plugin Directory

Changeset 2087821


Ignore:
Timestamp:
05/14/2019 06:26:29 PM (7 years ago)
Author:
darklrd
Message:

Fix chat theme conflict

Location:
iflychat/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • iflychat/trunk/iflychat.php

    r2085546 r2087821  
    22/**
    33 * @package iflychat
    4  * @version 4.6.2
     4 * @version 4.6.3
    55 */
    66/*
     
    99Description: One on one chat, Multiple chatrooms, Embedded chatrooms
    1010Author: iFlyChat Team
    11 Version: 4.6.2
     11Version: 4.6.3
    1212Author URI: https://iflychat.com/
    1313*/
     
    6060}
    6161
    62 define('IFLYCHAT_PLUGIN_VERSION', 'WP-4.6.2');
     62define('IFLYCHAT_PLUGIN_VERSION', 'WP-4.6.3');
    6363if (!defined('IFLYCHAT_DEBUG')) {
    6464  define('IFLYCHAT_DEBUG',          false);
  • iflychat/trunk/js/iflychat.js

    r2085546 r2087821  
    77else if(iflychat_chatcamp_check === "1") {
    88  iflychat_bundle.src = "//"+iflychat_external_cdn_host+"/2.x/js/chatcamp-ui.min.js";
    9   iflychat_bundle.async="async";
    10   document.body.appendChild(iflychat_bundle);
    11   jQuery(document).ready(function($) {
    12     var data = {
    13       'action': 'iflychat-get'
    14     };
    15     if(typeof iflychat_auth_url!=="undefined") {
    16       jQuery.post(iflychat_auth_url, data, function(response) {
    17         console.log("RE", response);
    18         iflychat_load_cc_init({
    19           id: response.user.id,
    20           accessToken: response.user.access_token // optional
    21         })
    22       });
    23     }
    24     else {
    25       jQuery.getScript(iflychat_bundle.src, function(response) {
    26         iflychat_load_cc_init({});
    27       });
    28     }
     9  // iflychat_bundle.async="async";
     10  // document.body.appendChild(iflychat_bundle);
     11  var iflyLazyLoad=function(k){function p(b,a){var g=k.createElement(b),c;for(c in a)a.hasOwnProperty(c)&&g.setAttribute(c,a[c]);return g}function l(b){var a=m[b],c,f;if(a)c=a.callback,f=a.urls,f.shift(),h=0,f.length||(c&&c.call(a.context,a.obj),m[b]=null,n[b].length&&j(b))}function w(){var b=navigator.userAgent;c={async:k.createElement("script").async===!0};(c.webkit=/AppleWebKit\//.test(b))||(c.ie=/MSIE/.test(b))||(c.opera=/Opera/.test(b))||(c.gecko=/Gecko\//.test(b))||(c.unknown=!0)}function j(b,a,g,f,h){var j=function(){l(b)},o=b==="css",q=[],d,i,e,r;c||w();if(a)if(a=typeof a==="string"?[a]:a.concat(),o||c.async||c.gecko||c.opera)n[b].push({urls:a,callback:g,obj:f,context:h});else{d=0;for(i=a.length;d<i;++d)n[b].push({urls:[a[d]],callback:d===i-1?g:null,obj:f,context:h})}if(!m[b]&&(r=m[b]=n[b].shift())){s||(s=k.head||k.getElementsByTagName("head")[0]);a=r.urls;d=0;for(i=a.length;d<i;++d)g=a[d],o?e=c.gecko?p("style"):p("link",{href:g,rel:"stylesheet"}):(e=p("script",{src:g}),e.async=!1),e.className="lazyload",e.setAttribute("charset","utf-8"),c.ie&&!o?e.onreadystatechange=function(){if(/loaded|complete/.test(e.readyState))e.onreadystatechange=null,j()}:o&&(c.gecko||c.webkit)?c.webkit?(r.urls[d]=e.href,t()):(e.innerHTML='@import "'+g+'";',u(e)):e.onload=e.onerror=j,q.push(e);d=0;for(i=q.length;d<i;++d)s.appendChild(q[d])}}function u(b){var a;try{a=!!b.sheet.cssRules}catch(c){h+=1;h<200?setTimeout(function(){u(b)},50):a&&l("css");return}l("css")}function t(){var b=m.css,a;if(b){for(a=v.length;--a>=0;)if(v[a].href===b.urls[0]){l("css");break}h+=1;b&&(h<200?setTimeout(t,50):l("css"))}}var c,s,m={},h=0,n={css:[],js:[]},v=k.styleSheets;return{css:function(b,a,c,f){j("css",b,a,c,f)},js:function(b,a,c,f){j("js",b,a,c,f)}}}(this.document);
     12  iflyLazyLoad.js([iflychat_bundle.src], function() {
     13    jQuery(document).ready(function($) {
     14      var data = {
     15        'action': 'iflychat-get'
     16      };
     17      if(typeof iflychat_auth_url!=="undefined") {
     18        jQuery.post(iflychat_auth_url, data, function(response) {
     19          iflychat_load_cc_init({
     20            id: response.user.id,
     21            accessToken: response.user.access_token // optional
     22          })
     23        });
     24      }
     25      else {
     26        jQuery.getScript(iflychat_bundle.src, function(response) {
     27          iflychat_load_cc_init({});
     28        });
     29      }
     30    });
    2931  });
    3032}
  • iflychat/trunk/readme.txt

    r2085546 r2087821  
    44Requires at least: 3.0
    55Tested up to: 5.3
    6 Stable tag: 4.6.2
     6Stable tag: 4.6.3
    77Tags: buddypress, chat, chat room, community, embed chat, friends, group chat, html5 chat, one to one chat, live chat, popup chat, mobile chat, multisite, wordpress chat, wp chat, ultimate member
    88License: GPLv2 or later
     
    138138== Changelog ==
    139139
     140= 4.6.3 =
     141
     14214/05/2019: Fix theme conflict.
     143
    140144= 4.6.2 =
    141145
     
    441445== Upgrade Notice ==
    442446
     447= 4.6.3 =
     448After updating, go to iFlyChat Settings page and click on Update button.
     449
    443450= 4.6.2 =
    444451After updating, go to iFlyChat Settings page and click on Update button.
     
    465472After updating, go to iFlyChat Settings page and click on Update button.
    466473
    467 = 4.2.5 =
    468 After updating, go to iFlyChat Settings page and click on Update button.
    469 
    470 
     474
Note: See TracChangeset for help on using the changeset viewer.