StatCounter – Free Real Time Visitor Stats - Version 1.6.5

Version Description

Modified url used for dashboard to not include project id when it has not been set.

Download this release

Release Info

Developer StatCounter
Plugin Icon StatCounter – Free Real Time Visitor Stats
Version 1.6.5
Comparing to
See all releases

Code changes from version 1.6.4 to 1.6.5

Files changed (2) hide show
  1. StatCounter-Wordpress-Plugin.php +6 -4
  2. readme.txt +5 -1
StatCounter-Wordpress-Plugin.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Official StatCounter Plugin
4
- * Version: 1.6.4
5
  * Plugin URI: http://statcounter.com/
6
  * Description: Adds the StatCounter tracking code to your blog. <br>To get setup: 1) Activate this plugin 2) Enter your StatCounter Project ID and Security Code in the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php"><strong>options page</strong></a>.
7
  * Author: Aodhan Cullen
@@ -50,12 +50,14 @@ function statcounter_reports_head() {
50
  function statcounter_reports_page() {
51
  $sc_project = get_option(key_sc_project);
52
  if($sc_project==0) {
53
- echo "<p>To view the StatCounter dashboard you must first configure your StatCounter project id. Select 'Plugins' and then 'StatCounter Admin' from the left menu.</p>";
54
  } else {
55
- echo '<iframe id="statcounter_frame" src="http://statcounter.com/p'.$sc_project.'/?source=wordpress" width="100%" height="2000">
 
 
 
56
  <p>Your browser does not support iframes.</p>
57
  </iframe>';
58
- }
59
 
60
  }
61
 
1
  <?php
2
  /*
3
  * Plugin Name: Official StatCounter Plugin
4
+ * Version: 1.6.5
5
  * Plugin URI: http://statcounter.com/
6
  * Description: Adds the StatCounter tracking code to your blog. <br>To get setup: 1) Activate this plugin 2) Enter your StatCounter Project ID and Security Code in the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php"><strong>options page</strong></a>.
7
  * Author: Aodhan Cullen
50
  function statcounter_reports_page() {
51
  $sc_project = get_option(key_sc_project);
52
  if($sc_project==0) {
53
+ $sc_link = 'http://statcounter.com/';
54
  } else {
55
+ $sc_link = 'http://statcounter.com/p'.$sc_project.'/?source=wordpress';
56
+ }
57
+
58
+ echo '<iframe id="statcounter_frame" src="'.$sc_link.'" width="100%" height="2000">
59
  <p>Your browser does not support iframes.</p>
60
  </iframe>';
 
61
 
62
  }
63
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://statcounter.com/
4
  Tags: web, statistics, stats, hit, counter, visitor, ip, tracker, analytics
5
  Requires at least: 2.0.2
6
  Tested up to: 3.6
7
- Stable tag: 1.6.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -100,6 +100,9 @@ To activate the StatCounter service for your WordPress site:
100
 
101
  == Upgrade Notice ==
102
 
 
 
 
103
  = 1.6.4 =
104
  Improved UI to give error message in dashboard when no project id has been set
105
 
@@ -111,3 +114,4 @@ Upgrade to allow for fully functioning PayPal upgrade options.
111
 
112
 
113
 
 
4
  Tags: web, statistics, stats, hit, counter, visitor, ip, tracker, analytics
5
  Requires at least: 2.0.2
6
  Tested up to: 3.6
7
+ Stable tag: 1.6.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
100
 
101
  == Upgrade Notice ==
102
 
103
+ = 1.6.5 =
104
+ Modified url used for dashboard to not include project id when it has not been set.
105
+
106
  = 1.6.4 =
107
  Improved UI to give error message in dashboard when no project id has been set
108
 
114
 
115
 
116
 
117
+