Now I Have a Blog TooNow I Have a Blog Too Christopher Finke is a software engineer at Mahalo. He is available for birthday parties and bar mitzvahs.

Posts tagged with 'Wordpress'

Feed Statistics: Updated Already?

Tuesday, June 19th, 2007

As is customary when you release some code and then immediately go to bed, Feed Statistics 1.0 had a small bug in it that made it non-functioning on about half of Wordpress blogs, depending on the permalink structure being used. I've updated the plugin to version 1.0.1 to address this problem.

Download it here, and overwrite feed-statistics.php in your blog's wp-content/plugins/ directory if you downloaded version 1.0.

Feed Statistics Plugin for Wordpress

Monday, June 18th, 2007

Feed Statistics is a plugin I've written for Wordpress blogs that monitors and displays the number of people who read your blog via the RSS feed. That's all it does for now, and it does it well.

In future versions, I may add more statistics and functionality (like displaying which feed readers your readers are using - that kind of thing), but for now, it's dead-simple. Download and installation instructions are at the Feed Statistics homepage.

Greencode Wordpress Theme Update (0.4)

Sunday, March 4th, 2007

I've updated the Greencode Wordpress theme (which I'm using on my site) to version 0.4. Since version 0.3, I've added a a custom view for the Nintendo Wii (screenshot below), refined the tag cloud, and fixed a few miscellaneous bugs.

Greencode Wordpress theme on the Nintendo Wii

You can download the newest version from the Greencode homepage.

Optimizing Your Website for the Wii

Thursday, February 22nd, 2007

I've optimized my blog (and thus my Greencode Wordpress theme) for browsing on the Nintendo Wii. So if you read my blog on the Wii, it will look like this:

My website on the Wii

It was pretty easy, and you can do it too, by following these two simple steps:

1. Create a Wii-friendly stylesheet. This is similar to creating a mobile-friendly stylesheet, and it involves enlarging the text, removing superfluous crap, and just making your site easier to read from a distance. You can see the stylesheet I created here.

2. Serve the Wii stylesheet to Wii users. The user-agent string of the Wii will be something like Opera/9.00 (Nintendo Wii; U; ; 1309-9; en), so in PHP, you can accompish this like so:

if (strpos($_SERVER['HTTP_USER_AGENT'], "Wii;") !== false){
[... wii stylesheet ...]
} else {
[... regular stylesheets ...]
}

And just for fun, I also added an "Optimized for the Nintendo Wii" watermark in the top-right corner and enabled the Wii stylesheet for anyone who adds "?wii=1" to the end of a URL. For example, here is the Wii-friendly version of this post.

Greencode Wordpress Theme Updated (0.3)

Saturday, February 3rd, 2007

I've updated the Greencode Wordpress theme (which I'm using on my site) to version 0.3. Since version 0.2, I've added a print stylesheet (screenshot of a printed page below), optimized the header image to reduce its size by half, and fixed a few miscellaneous bugs.

Example of page with only print style applied.

You can download the newest version from the Greencode homepage.

Social Traffic Statistics

Monday, January 29th, 2007

Until URL Fixer got Dugg last week, I hadn't had a good real-life example for my Social Traffic Monitor Wordpress plugin. What follows is an analysis of the traffic my blog received from social news and bookmarking sites late last week, as recorded by the Social Traffic Monitor plugin.

This is the chart that the Social Traffic Monitor generated for my URL Fixer page, showing visitors per hour from Thursday morning to Monday morning.

The first small hump is when URL Fixer was featured on Download Squad (and subsequently, Lifehacker) on Thursday morning. (The page had been submitted to Netscape some time ago, which is why the plugin was already logging the traffic at that point.) The huge orange spike is when the post hit the front page of Digg, at about 11PM Thursday night. Traffic was huge that first hour, but it halved by the next hour, and then slowly tapered down as the post moved to the second page of Digg, and then the third, etc.

The orangish hump in the middle of the graph is traffic from StumbleUpon. As you can see, the traffic from SU was never as intense as it was from Digg, but it was more consistent, and longer-lasting. (Just as those are good qualities to have in chewing gum, they are desired assets of website traffic as well.) StumbleUpon continued to drive heavy traffic to the post for about 10 hours, and then in smaller amounts of the next day and a half. Most of the visitors to the URL Fixer page are still coming from StumbleUpon.

Overall, I received about 8,000 visitors from StumbleUpon, 4,000 visitors from Digg, 2,000 from Lifehacker, and about 600 from Download Squad. (Del.icio.us barely registered with about 200 referrals.) So although StumbleUpon sent the most visitors my way, it appears that the traffic coming from Digg was the most appropriate to the content: according to my traffic logs, from Thursday night to noon on Friday, over 60% of visitors to the page actually downloaded the Firefox extension. After that (when visitors starting coming from SU), only about 15% of visitors were downloading the extension.

If you have a Wordpress blog and would like to track how many visitors you receive from social sites, download and install the Social Traffic Monitor Wordpress plugin.

Social Traffic Monitor 1.2

Friday, January 26th, 2007

After giving it a workout this week with all the visitors to my blog from Digg and StumbleUpon, I've made some changes to the Social Traffic Monitor plugin for Wordpress, and I'm releasing version 1.2.

Since version 1.1, I've added StumbleUpon as a social news/bookmarking source, fixed a few bugs with logging non-social-referring sites, and I've added the option to supply a formatting string for the plugin's output. What this means is that you can now call the plugin like this:

	<php social_traffic('<div>%s</div>'); ?>

and the the plugin will replace the "%s" with its output, but only if it has something to display; otherwise, it will display nothing at all. This allows you to add borders, positioning data, or just your own custom code to the plugin's output. (Calling social_traffic(); is equivalent to calling social_traffic("%s");.)

To upgrade, simply download and unzip version 1.2 and upload the included social-traffic.php to your wp-content/plugins/ directory.

Social Traffic Monitor 1.1

Thursday, January 11th, 2007

I have updated the Social Traffic Monitor Wordpress plugin to support tracking traffic for Wordpress "pages" as well as posts.

You can always download the newest version from the plugin's homepage.

Social Traffic Monitor: A Wordpress Plugin

Wednesday, January 3rd, 2007

I've just put the finishing touches on version 1.0 of my first Wordpress plugin, the Social Traffic Monitor. In a nutshell, it checks incoming traffic for visitors from social news sites (e.g., Netscape, Digg, Reddit) and when a post on your blog starts getting traffic from these sites, it begins to log each visit to that post. When it has at least one visit logged for a post, it displays a graph of visitors per hour, as well as a list of referrering sites and how many visitors each sent your way.

The full writeup and download are available over here; now all I have to do is write something in my blog that is interesting enough to get submitted to Digg or Netscape...

Greencode Wordpress Theme

Tuesday, January 2nd, 2007

I’ve finished putting together my first Wordpress theme, which I’ve named Greencode. It’s the same one I use on this site, so this is your chance to be a little more like me; go ahead and download it here.

Greencode Wordpress Theme