Blog » WordPress

9 Oct 2005

Launching new websites

Filed under: Technology and science, This website, WordPress — paulcook @ 11:47 pm

This past week has been one of breakthroughs in my research, but it’s also been one of launching new websites. Some of them are quite preliminary, but it’s been interesting to see how the latest technologies can make things so much easier.

Warning: Parts of this post will be technical. Parental guidance … um … probably best avoided, I suspect.

19 Mar 2005

StatTraq WordPress plugin tweak: Ignore certain users

Filed under: WordPress — paulcook @ 3:19 pm

I’ve made what I think is a useful addition to Randy Peterman’s StatTraq plugin for tracking usage statistics in WordPress. StatTraq tracks how many times, and by who, each post is read. My modification allows one to specify a comma seperated list of user names (logins). Statistics for these users will NOT be collected. I have put my own user name in the list, so now when I view and edit my posts, I’m not being counted as a reader — all visits are indeed from real readers.

The version of StatTraq that I use is a development branch compatible with WordPress 1.5. It’s available here. Hopefully this modification will be incorporated into the main development branch there, because I’m not going to be able to keep it up to date.

Two files have been modified: stattraq.php and options.php. The modifications I’ve made are all preceeded by the string PAULCOOK, so they are easy to see and incorporate into other versions.

Instructions for installation:

  • Make sure you are running the version of StatTraq available from here; using another version will yield unpredictable results.
  • Download the files below (they will download as text files), and save them to the paths indicated next to the download link (these paths are relative to the root of your WordPress installation). You should be overwriting existing files; if you are not, you’re doing something wrong. If you decide to cut and paste the files, make sure that you don’t leave any spaces or blank lines after the last ?> tag in each file.
  • Go to the StatTraq options page, and at the bottom is a textbox in which you can enter usernames (logins) for users to ignore when tracking statistics.

stattraq.php: /wp-content/plugins/stattraq.php
options.php: /wp-stattraq/reporter/options.php