Version Description
Improved UI to give error message in dashboard when no project id has been set
Download this release
Release Info
Developer | StatCounter |
Plugin | StatCounter – Free Real Time Visitor Stats |
Version | 1.6.4 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.6.4
- StatCounter-Wordpress-Plugin.php +7 -5
- readme.txt +10 -2
StatCounter-Wordpress-Plugin.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Official StatCounter Plugin
|
4 |
-
* Version: 1.6.
|
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
|
@@ -48,12 +48,14 @@ function statcounter_reports_head() {
|
|
48 |
}
|
49 |
|
50 |
function statcounter_reports_page() {
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
55 |
<p>Your browser does not support iframes.</p>
|
56 |
</iframe>';
|
|
|
57 |
|
58 |
}
|
59 |
|
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
|
48 |
}
|
49 |
|
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 |
|
readme.txt
CHANGED
@@ -3,8 +3,10 @@ Contributors: Aodhan Cullen
|
|
3 |
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.
|
7 |
-
Stable tag: 1.6.
|
|
|
|
|
8 |
|
9 |
StatCounter.com powered real-time detailed stats about the visitors to your blog.
|
10 |
|
@@ -98,8 +100,14 @@ To activate the StatCounter service for your WordPress site:
|
|
98 |
|
99 |
== Upgrade Notice ==
|
100 |
|
|
|
|
|
|
|
101 |
= 1.6.3 =
|
102 |
Bug fix to prevent user entry of whitespace characters for Project ID and Security Code
|
103 |
|
104 |
= 1.6.2 =
|
105 |
Upgrade to allow for fully functioning PayPal upgrade options.
|
|
|
|
|
|
3 |
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 |
|
11 |
StatCounter.com powered real-time detailed stats about the visitors to your blog.
|
12 |
|
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 |
+
|
106 |
= 1.6.3 =
|
107 |
Bug fix to prevent user entry of whitespace characters for Project ID and Security Code
|
108 |
|
109 |
= 1.6.2 =
|
110 |
Upgrade to allow for fully functioning PayPal upgrade options.
|
111 |
+
|
112 |
+
|
113 |
+
|