Visitors Traffic Real Time Statistics - Version 3.13

Version Description

  1. Bug fixes - PHP warning message
Download this release

Release Info

Developer osamaesh
Plugin Icon 128x128 Visitors Traffic Real Time Statistics
Version 3.13
Comparing to
See all releases

Code changes from version 3.12 to 3.13

Visitors-Traffic-Real-Time-Statistics.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Visitor Traffic Real Time Statistics
4
  Description: Hits counter that shows analytical numbers of your WordPress site visitors and hits.
5
  Author: wp-buy
6
  Author URI: https://www.wp-buy.com/
7
- Version: 3.12
8
  Text Domain: visitors-traffic-real-time-statistics
9
  Domain Path: /languages
10
  */
4
  Description: Hits counter that shows analytical numbers of your WordPress site visitors and hits.
5
  Author: wp-buy
6
  Author URI: https://www.wp-buy.com/
7
+ Version: 3.13
8
  Text Domain: visitors-traffic-real-time-statistics
9
  Domain Path: /languages
10
  */
functions.php CHANGED
@@ -3442,27 +3442,30 @@ class ahcfree_vtrts_widget extends WP_Widget {
3442
 
3443
  $ahc_sum_stats = ahcfree_get_summary_statistics();
3444
 
 
 
 
 
 
 
 
 
 
 
 
3445
 
3446
- // This is where you run the code and display the output
3447
- echo '<ul style="list-style:none; ' . $instance['fontTypeCombo'] . '; font-size:' . $instance['fontSizeCombo'] . 'px">';
3448
-
3449
- if ($instance['display_visitorstoday'] == 1 or $instance['display_visitorstoday'] == '1') {
3450
- echo '<li><b style="color:#' . $instance['display_titlecolor'] . '">Visitors today : </b><span style="color:#' . $instance['display_valuescolor'] . '">' . ahcfree_NumFormat($ahc_sum_stats['today']['visitors']) . '</span></li>';
3451
- }
3452
- if ($instance['display_pageviewtoday'] == 1 or $instance['display_pageviewtoday'] == '1') {
3453
- echo '<li><b style="color:#' . $instance['display_titlecolor'] . '">Page views today : </b><span style="color:#' . $instance['display_valuescolor'] . '">' . ahcfree_NumFormat($ahc_sum_stats['today']['visits']) . '</span></li>';
3454
- }
3455
-
3456
- if ($instance['display_totalvisitors'] == 1 or $instance['display_totalvisitors'] == '1') {
3457
- echo '<li><b style="color:#' . $instance['display_titlecolor'] . '">Total visitors : </b><span style="color:#' . $instance['display_valuescolor'] . '">' . ahcfree_NumFormat($ahc_sum_stats['total']['visitors']) . '</span></li>';
3458
- }
3459
 
3460
- if ($instance['display_totalpageview'] == 1 or $instance['display_totalpageview'] == '1') {
3461
- echo '<li><b style="color:#' . $instance['display_titlecolor'] . '">Total page view: </b><span style="color:#' . $instance['display_valuescolor'] . '">' . ahcfree_NumFormat($ahc_sum_stats['total']['visits']) . '</span></li>';
3462
- }
3463
 
3464
 
3465
- echo '</ul>';
 
 
3466
  echo $args['after_widget'];
3467
  }
3468
 
3442
 
3443
  $ahc_sum_stats = ahcfree_get_summary_statistics();
3444
 
3445
+ if(is_array($instance))
3446
+ {
3447
+ // This is where you run the code and display the output
3448
+ echo '<ul style="list-style:none; ' . $instance['fontTypeCombo'] . '; font-size:' . $instance['fontSizeCombo'] . 'px">';
3449
+
3450
+ if ($instance['display_visitorstoday'] == 1 or $instance['display_visitorstoday'] == '1') {
3451
+ echo '<li><b style="color:#' . $instance['display_titlecolor'] . '">Visitors today : </b><span style="color:#' . $instance['display_valuescolor'] . '">' . ahcfree_NumFormat($ahc_sum_stats['today']['visitors']) . '</span></li>';
3452
+ }
3453
+ if ($instance['display_pageviewtoday'] == 1 or $instance['display_pageviewtoday'] == '1') {
3454
+ echo '<li><b style="color:#' . $instance['display_titlecolor'] . '">Page views today : </b><span style="color:#' . $instance['display_valuescolor'] . '">' . ahcfree_NumFormat($ahc_sum_stats['today']['visits']) . '</span></li>';
3455
+ }
3456
 
3457
+ if ($instance['display_totalvisitors'] == 1 or $instance['display_totalvisitors'] == '1') {
3458
+ echo '<li><b style="color:#' . $instance['display_titlecolor'] . '">Total visitors : </b><span style="color:#' . $instance['display_valuescolor'] . '">' . ahcfree_NumFormat($ahc_sum_stats['total']['visitors']) . '</span></li>';
3459
+ }
 
 
 
 
 
 
 
 
 
 
3460
 
3461
+ if ($instance['display_totalpageview'] == 1 or $instance['display_totalpageview'] == '1') {
3462
+ echo '<li><b style="color:#' . $instance['display_titlecolor'] . '">Total page view: </b><span style="color:#' . $instance['display_valuescolor'] . '">' . ahcfree_NumFormat($ahc_sum_stats['total']['visits']) . '</span></li>';
3463
+ }
3464
 
3465
 
3466
+ echo '</ul>';
3467
+
3468
+ }
3469
  echo $args['after_widget'];
3470
  }
3471
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wp-buy, osamaesh
3
  Tags: visitor, traffic, statistics, analytics, stats, online, Visit, WordPress analytics ,visitors online, count visitor, google analytics, analytics, GeoIP, Geo locations, analytics dashboard, visits, chart, browser, blog, today, yesterday, week, month, wp Statistics, year, post, page, sidebar, summary, feedburner, hits, pagerank, google, histats, alexa, live visit, counter, diagram, graph
4
  Requires at least: 3.0.1
5
  Tested up to: 5.8
6
- Stable tag: 3.12
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -150,6 +150,16 @@ This plugin supports IPv6; however, PHP must be compiled with IPv6 support enabl
150
 
151
  == Changelog ==
152
 
 
 
 
 
 
 
 
 
 
 
153
  = 3.11 =
154
  1. Query improvements reported by @purityboy83 (Thanks purityboy83 for reporting this type of issues)
155
 
3
  Tags: visitor, traffic, statistics, analytics, stats, online, Visit, WordPress analytics ,visitors online, count visitor, google analytics, analytics, GeoIP, Geo locations, analytics dashboard, visits, chart, browser, blog, today, yesterday, week, month, wp Statistics, year, post, page, sidebar, summary, feedburner, hits, pagerank, google, histats, alexa, live visit, counter, diagram, graph
4
  Requires at least: 3.0.1
5
  Tested up to: 5.8
6
+ Stable tag: 3.13
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
150
 
151
  == Changelog ==
152
 
153
+
154
+ = 3.13 =
155
+ 1. Bug fixes - PHP warning message
156
+
157
+
158
+ = 3.12 =
159
+ 1. Bug fixes - NOTICE message
160
+
161
+
162
+
163
  = 3.11 =
164
  1. Query improvements reported by @purityboy83 (Thanks purityboy83 for reporting this type of issues)
165