StatCounter – Free Real Time Visitor Stats - Version 1.5

Version Description

  • Removed option to set partition - no longer required.
Download this release

Release Info

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

Code changes from version 1.4 to 1.5

Files changed (2) hide show
  1. StatCounter-Wordpress-Plugin.php +3 -29
  2. readme.txt +8 -6
StatCounter-Wordpress-Plugin.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Official StatCounter Plugin
4
- * Version: 1.4
5
  * Plugin URI: http://www.statcounter.com/
6
  * Description: Adds the StatCounter tracking code to your blog. After uploading this plugin click 'Activate' (to the right) and then afterwards you must visit the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php">options page</a> and enter your StatCounter Project Info to enable logging.
7
  * Author: Aodhan Cullen
@@ -14,7 +14,6 @@ define("sc_disabled" , "disabled", true);
14
 
15
  // Defaults, etc.
16
  define("key_sc_project", "sc_project", true);
17
- define("key_sc_part", "sc_part", true);
18
  define("key_sc_status", "sc_status", true);
19
  define("key_sc_position", "sc_position", true);
20
  // legacy problem with sc_security naming
@@ -23,7 +22,6 @@ define("key_sc_security", "key_sc_security", true);
23
 
24
 
25
  define("sc_project_default", "0" , true);
26
- define("sc_part_default", "0" , true);
27
  define("sc_security_default", "" , true);
28
  define("sc_status_default", sc_disabled , true);
29
  define("sc_position_default", "footer", true);
@@ -32,7 +30,6 @@ define("sc_admin_default", sc_enabled , true);
32
  // Create the default key and status
33
  add_option(key_sc_status, sc_status_default, 'If StatCounter logging in turned on or off.');
34
  add_option(key_sc_project, sc_project_default, 'Your StatCounter Project ID.');
35
- add_option(key_sc_part, sc_part_default, 'Your StatCounter Partition ID.');
36
  add_option(key_sc_security, sc_security_default, 'Your StatCounter Security String.');
37
  add_option("sc_invisible", "0", 'Force invisibility.');
38
 
@@ -93,12 +90,6 @@ function sc_options_page() {
93
  $sc_project = sc_project_default;
94
  update_option(key_sc_project, $sc_project);
95
 
96
- // Update the part ID
97
- $sc_part = $_POST[key_sc_part];
98
- if ($sc_part == '')
99
- $sc_part = sc_part_default;
100
- update_option(key_sc_part, $sc_part);
101
-
102
  // Update the Security ID
103
  $sc_security = $_POST[key_sc_security];
104
  if ($sc_security =='')
@@ -150,9 +141,8 @@ function sc_options_page() {
150
  <li>Select and configure the type of counter your would like</li>
151
  <li>Select "<strong>Wordpress.org (I pay for the hosting)</strong>" from the drop down list, then click "Next"</li>
152
  <li>From the generated StatCounter Code, copy the bolded sections:<br />
153
- '<em>var sc_project=</em><strong>1234567</strong>' - Your Project ID<br />
154
- '<em>var sc_partition=</em><strong>12</strong>' - Your Partition Number<br />
155
- '<em>var sc_security="</em><strong>a1b2c3d4</strong><em>"</em>' - Your Security Code (Don't grab the inverted commas)</li>
156
  <li>Enter those details into the relevant fields below</li>
157
  <li>Click "Update Options"</li>
158
  </ol></blockquote>
@@ -195,20 +185,6 @@ function sc_options_page() {
195
  ?>
196
  </td>
197
  </tr>
198
- <tr>
199
- <td>
200
- Partition Number:
201
- </td>
202
- <td>
203
- <?php
204
- echo "<input type='text' size='3' ";
205
- echo "name='".key_sc_part."' ";
206
- echo "id='".key_sc_part."' ";
207
- echo "value='".get_option(key_sc_part)."' />\n";
208
- ?>
209
-
210
- </td>
211
- </tr>
212
  <tr>
213
  <td>
214
  Security Code:
@@ -290,7 +266,6 @@ if ($sc_position=="header") {
290
  function add_statcounter() {
291
  global $user_level;
292
  $sc_project = get_option(key_sc_project);
293
- $sc_part = get_option(key_sc_part);
294
  $sc_security = get_option(key_sc_security);
295
  $sc_invisible = 0;
296
  $sc_invisible = get_option('sc_invisible');
@@ -302,7 +277,6 @@ function add_statcounter() {
302
  <script type="text/javascript">
303
  <!--
304
  var sc_project=<?php echo $sc_project; ?>;
305
- var sc_partition=<?php echo $sc_part; ?>;
306
  var sc_security="<?php echo $sc_security; ?>";
307
  <?php
308
  if($sc_invisible==1) {
1
  <?php
2
  /*
3
  * Plugin Name: Official StatCounter Plugin
4
+ * Version: 1.5
5
  * Plugin URI: http://www.statcounter.com/
6
  * Description: Adds the StatCounter tracking code to your blog. After uploading this plugin click 'Activate' (to the right) and then afterwards you must visit the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php">options page</a> and enter your StatCounter Project Info to enable logging.
7
  * Author: Aodhan Cullen
14
 
15
  // Defaults, etc.
16
  define("key_sc_project", "sc_project", true);
 
17
  define("key_sc_status", "sc_status", true);
18
  define("key_sc_position", "sc_position", true);
19
  // legacy problem with sc_security naming
22
 
23
 
24
  define("sc_project_default", "0" , true);
 
25
  define("sc_security_default", "" , true);
26
  define("sc_status_default", sc_disabled , true);
27
  define("sc_position_default", "footer", true);
30
  // Create the default key and status
31
  add_option(key_sc_status, sc_status_default, 'If StatCounter logging in turned on or off.');
32
  add_option(key_sc_project, sc_project_default, 'Your StatCounter Project ID.');
 
33
  add_option(key_sc_security, sc_security_default, 'Your StatCounter Security String.');
34
  add_option("sc_invisible", "0", 'Force invisibility.');
35
 
90
  $sc_project = sc_project_default;
91
  update_option(key_sc_project, $sc_project);
92
 
 
 
 
 
 
 
93
  // Update the Security ID
94
  $sc_security = $_POST[key_sc_security];
95
  if ($sc_security =='')
141
  <li>Select and configure the type of counter your would like</li>
142
  <li>Select "<strong>Wordpress.org (I pay for the hosting)</strong>" from the drop down list, then click "Next"</li>
143
  <li>From the generated StatCounter Code, copy the bolded sections:<br />
144
+ <em>var sc_project=</em><strong>1234567</strong> - Your Project ID<br />
145
+ <em>var sc_security="</em><strong>a1b2c3d4</strong><em>"</em> - Your Security Code (Don't grab the inverted commas)</li>
 
146
  <li>Enter those details into the relevant fields below</li>
147
  <li>Click "Update Options"</li>
148
  </ol></blockquote>
185
  ?>
186
  </td>
187
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  <tr>
189
  <td>
190
  Security Code:
266
  function add_statcounter() {
267
  global $user_level;
268
  $sc_project = get_option(key_sc_project);
 
269
  $sc_security = get_option(key_sc_security);
270
  $sc_invisible = 0;
271
  $sc_invisible = get_option('sc_invisible');
277
  <script type="text/javascript">
278
  <!--
279
  var sc_project=<?php echo $sc_project; ?>;
 
280
  var sc_security="<?php echo $sc_security; ?>";
281
  <?php
282
  if($sc_invisible==1) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Aodhan Cullen
3
  Donate link: http://www.statcounter.com/
4
  Tags: web, statistics, stats, hit, counter, visitor, ip, tracker, analytics
5
  Requires at least: 2.0.2
6
- Tested up to: 2.9.2
7
- Stable tag: 1.4
8
 
9
  StatCounter.com powered real-time detailed stats about the visitors to your blog.
10
 
@@ -57,9 +57,8 @@ To activate the StatCounter service for your WordPress site:
57
  1. Select and configure the type of counter your would like
58
  1. Select "Wordpress.org (I pay for the hosting)" from the drop down list, then click "Next"
59
  1. From the generated StatCounter Code, copy the bolded sections:
60
- 'var sc_project=1234567' - Your Project ID
61
- 'var sc_partition=12' - Your Partition ID
62
- 'var sc_security="a1b2c3d4"' - Your Security String (Don't grab the inverted commas)
63
  1. Enter those details into the relevant fields below
64
  1. Click "Update Options"
65
 
@@ -75,7 +74,10 @@ To activate the StatCounter service for your WordPress site:
75
  1. Example StatCounter.com Summary Stats
76
  2. Using the magnify tool, you can "zoom in" on individual visitors and get a detailed report on where they are from, their system settings, and most importantly, what link reffered them to your site and their navigation path through your site.
77
 
78
- == Changes ==
 
 
 
79
 
80
  = 1.4 =
81
  * Added noscript to StatCounter code - allowing non-javascript enabled visitors to be tracked.
3
  Donate link: http://www.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.0.1
7
+ Stable tag: 1.5
8
 
9
  StatCounter.com powered real-time detailed stats about the visitors to your blog.
10
 
57
  1. Select and configure the type of counter your would like
58
  1. Select "Wordpress.org (I pay for the hosting)" from the drop down list, then click "Next"
59
  1. From the generated StatCounter Code, copy the bolded sections:
60
+ var sc_project=1234567 - Your Project ID
61
+ var sc_security="a1b2c3d4" - Your Security String (Don't grab the inverted commas)
 
62
  1. Enter those details into the relevant fields below
63
  1. Click "Update Options"
64
 
74
  1. Example StatCounter.com Summary Stats
75
  2. Using the magnify tool, you can "zoom in" on individual visitors and get a detailed report on where they are from, their system settings, and most importantly, what link reffered them to your site and their navigation path through your site.
76
 
77
+ == Changelog ==
78
+
79
+ = 1.5 =
80
+ * Removed option to set partition - no longer required.
81
 
82
  = 1.4 =
83
  * Added noscript to StatCounter code - allowing non-javascript enabled visitors to be tracked.