Plugin Directory

Changeset 2350827


Ignore:
Timestamp:
08/02/2020 07:53:39 AM (6 years ago)
Author:
oometrics
Message:

v1.1.3

  • Fixed - Reports pagination
  • Fixed - Duplicate chat bubble on front-end
  • Fixed - Chat message focus after send
  • Fixed - Cookie lifetime changed from 7 days to 1 day (conversation lifetime);
Location:
oometrics/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • oometrics/trunk/assets/js/admin.js

    r2350054 r2350827  
    7979      if(typeof data.id !== 'undefined' && (data.id != 0 || data.id != '')){
    8080        session = data;
    81         oo_set_cookie(oo_domain+'_oometrics_admin_session',JSON.stringify(data),7);
     81        oo_set_cookie(oo_domain+'_oometrics_admin_session',JSON.stringify(data),1);
    8282        session_update();
    8383      }
  • oometrics/trunk/assets/js/chats.js

    r2350054 r2350827  
    170170    }
    171171    img.attr('src',src);
     172    session.last_updated = 0;
    172173    chat_update();
    173     session.last_updated = 0;
    174 
    175174    $('#oo-message-text').focus();
    176175  });
     
    276275      success:function(data){
    277276        t.removeClass('loading');
    278         // session.last_updated = data.last_updated;
     277        session.last_updated = data.last_updated;
    279278        $('.oo-chat-list').html(data.chats);
    280279        $('.oo-chat-conversations').scrollTop(jQuery('.oo-chat-list').height());
  • oometrics/trunk/assets/js/oometrics.js

    r2350054 r2350827  
    8484      session.rel_id = data.rel_id;
    8585      oo_rel_id = data.rel_id;
    86       oo_set_cookie(oo_domain+'_oometrics_session',JSON.stringify(session),7);
     86      oo_set_cookie(oo_domain+'_oometrics_session',JSON.stringify(session),1);
    8787      chat_update();
    8888    }
     
    138138      if(typeof data.id !== 'undefined' && (data.id != 0 || data.id != '')){
    139139        session = data;
    140         oo_set_cookie(oo_domain+'_oometrics_session',JSON.stringify(data),7);
     140        oo_set_cookie(oo_domain+'_oometrics_session',JSON.stringify(data),1);
    141141        oometrics_init();
    142142      }
  • oometrics/trunk/inc/ajax-class.php

    r2350054 r2350827  
    868868            foreach ($sessions as $key => $session) {
    869869              $session_data = $ses->get($session->ses_id);
    870                     $session_html .= $session_data->render();
     870                    $session_html .= $session_data->render($session,true);
    871871            }
    872872                $total_sessions = $report->get_total_sessions();
  • oometrics/trunk/oometrics.php

    r2350054 r2350827  
    33 * Plugin Name:      OOMetrics
    44 * Description:       WooCommerce Smart Metrics and Live Customer Channel; Set discounts, coupons and pop ups remotely for each customer individually while you are watching statistics!
    5  * Version:            1.1.2
     5 * Version:            1.1.3
    66 * Author:             OOMetrics
    77 * Author URI:       https://oometrics.com
     
    2121
    2222if(!defined('OOMETRICS_PLUGIN_VERSION'))
    23     define('OOMETRICS_PLUGIN_VERSION', '1.1.2');
     23    define('OOMETRICS_PLUGIN_VERSION', '1.1.3');
    2424if(!defined('OOMETRICS_URL'))
    2525    define('OOMETRICS_URL', plugin_dir_url( __FILE__ ));
     
    177177            $wpdb->insert($session_table_name,$admin_session_data);
    178178        }
     179
     180        $settings = get_option('oometrics_options');
     181        if(!empty($settings)){
     182            $settings['session_interval'] = 3000;
     183            $settings['chat_interval'] = 4000;
     184            update_option('oometrics_options',$settings);
     185        }
     186        $domain = str_replace(".","_",$_SERVER['SERVER_NAME']);
     187        setcookie($domain.'_oometrics_session', "", time() - 86400);
     188        setcookie($domain.'_oometrics_admin_session', "", time() - 86400);
    179189    }
    180190
     
    294304                );
    295305                update_option('oometrics_options',$settings);
    296             } else {
    297                 $settings['session_interval'] = 4000;
    298                 $settings['chat_interval'] = 5000;
    299                 update_option('oometrics_options',$settings);
    300306            }
    301307            add_action('init',array(new OOMetrics(),'init'),100);
  • oometrics/trunk/readme.txt

    r2350054 r2350827  
    55Requires at least: 4.0
    66Tested up to: 5.4.2
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    8585
    8686PLEASE make sure to configure OOMetrics first (Navigation: WP Dashboard / OOMetrics / Settings)
     87If your admin chat or push is not working, you need to clean your session cookie.
     88
    8789== Frequently Asked Questions ==
    8890
     
    9395= How accurate is the data =
    9496
    95 We will clean the data and block most bots and crawlers and remove unneccessary visits
     97We will clean the data and block most bots and crawlers and remove unnecessary visits
    9698There is an option in settings.
    9799
     
    178180* Fix - Interval order, abort and start
    179181
     182= v1.1.3
     183* Fixed - Reports pagination
     184* Fixed - Duplicate chat bubble on front-end
     185* Fixed - Chat message focus after send
     186* Fixed - Cookie lifetime changed from 7 days to 1 day (conversation lifetime);
     187
    180188== Upgrade Notice ==
    181189
    182190= before 1.0.9 =
    183 Please upgrade in order to fix issues and get more accurate results and tools.
     191Please upgrade in order to fix issues and get more accurate results and tools specially if you are using version before 1.1.3
Note: See TracChangeset for help on using the changeset viewer.