Changeset 2350827
- Timestamp:
- 08/02/2020 07:53:39 AM (6 years ago)
- Location:
- oometrics/trunk
- Files:
-
- 6 edited
-
assets/js/admin.js (modified) (1 diff)
-
assets/js/chats.js (modified) (2 diffs)
-
assets/js/oometrics.js (modified) (2 diffs)
-
inc/ajax-class.php (modified) (1 diff)
-
oometrics.php (modified) (4 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
oometrics/trunk/assets/js/admin.js
r2350054 r2350827 79 79 if(typeof data.id !== 'undefined' && (data.id != 0 || data.id != '')){ 80 80 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); 82 82 session_update(); 83 83 } -
oometrics/trunk/assets/js/chats.js
r2350054 r2350827 170 170 } 171 171 img.attr('src',src); 172 session.last_updated = 0; 172 173 chat_update(); 173 session.last_updated = 0;174 175 174 $('#oo-message-text').focus(); 176 175 }); … … 276 275 success:function(data){ 277 276 t.removeClass('loading'); 278 //session.last_updated = data.last_updated;277 session.last_updated = data.last_updated; 279 278 $('.oo-chat-list').html(data.chats); 280 279 $('.oo-chat-conversations').scrollTop(jQuery('.oo-chat-list').height()); -
oometrics/trunk/assets/js/oometrics.js
r2350054 r2350827 84 84 session.rel_id = data.rel_id; 85 85 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); 87 87 chat_update(); 88 88 } … … 138 138 if(typeof data.id !== 'undefined' && (data.id != 0 || data.id != '')){ 139 139 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); 141 141 oometrics_init(); 142 142 } -
oometrics/trunk/inc/ajax-class.php
r2350054 r2350827 868 868 foreach ($sessions as $key => $session) { 869 869 $session_data = $ses->get($session->ses_id); 870 $session_html .= $session_data->render( );870 $session_html .= $session_data->render($session,true); 871 871 } 872 872 $total_sessions = $report->get_total_sessions(); -
oometrics/trunk/oometrics.php
r2350054 r2350827 3 3 * Plugin Name: OOMetrics 4 4 * 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. 25 * Version: 1.1.3 6 6 * Author: OOMetrics 7 7 * Author URI: https://oometrics.com … … 21 21 22 22 if(!defined('OOMETRICS_PLUGIN_VERSION')) 23 define('OOMETRICS_PLUGIN_VERSION', '1.1. 2');23 define('OOMETRICS_PLUGIN_VERSION', '1.1.3'); 24 24 if(!defined('OOMETRICS_URL')) 25 25 define('OOMETRICS_URL', plugin_dir_url( __FILE__ )); … … 177 177 $wpdb->insert($session_table_name,$admin_session_data); 178 178 } 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); 179 189 } 180 190 … … 294 304 ); 295 305 update_option('oometrics_options',$settings); 296 } else {297 $settings['session_interval'] = 4000;298 $settings['chat_interval'] = 5000;299 update_option('oometrics_options',$settings);300 306 } 301 307 add_action('init',array(new OOMetrics(),'init'),100); -
oometrics/trunk/readme.txt
r2350054 r2350827 5 5 Requires at least: 4.0 6 6 Tested up to: 5.4.2 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 85 85 86 86 PLEASE make sure to configure OOMetrics first (Navigation: WP Dashboard / OOMetrics / Settings) 87 If your admin chat or push is not working, you need to clean your session cookie. 88 87 89 == Frequently Asked Questions == 88 90 … … 93 95 = How accurate is the data = 94 96 95 We will clean the data and block most bots and crawlers and remove unnec cessary visits97 We will clean the data and block most bots and crawlers and remove unnecessary visits 96 98 There is an option in settings. 97 99 … … 178 180 * Fix - Interval order, abort and start 179 181 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 180 188 == Upgrade Notice == 181 189 182 190 = before 1.0.9 = 183 Please upgrade in order to fix issues and get more accurate results and tools .191 Please 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.