Need someone to lead product management at your software company? I build high-craft software and the teams that build it. I'm looking for my next opportunity. Check out my resume and get in touch.

This is the blog of Adam Kalsey. Unusual depth and complexity. Rich, full body with a hint of nutty earthiness.

Content Management

Remember Me, Movable Type

Freshness Warning
This blog post is over 21 years old. It's possible that the information you read below isn't current and the links no longer work.

It’s been pointed out a few times that my comment forms don’t always remember you when you check the box. That’s fixed, and here’s a few tips on making your MT comments work better.

First, the problem that my comments form had was that the MT comment JavaScript sets the cookie path to a blank string. This causes the browser to only set the cookies in the current directory. So if your entries are in multiple directories like mine, the cookies don’t work.

The other cookie-related problem that many sites have is that their site is available at www.site.com and site.com. As far as the computer is concerned, those two addresses might be different servers and a cookie is only available on the hostname that it was set for. When someone enters a comment at www.site.com the cookie is set for the hostname www.site.com. If the user then later visits site.com, the cookie isn’t available, so the form contents aren’t remembered.

A simple adjustment to your MT cookie code will fix both these problems. Just change the rememberMe and forgetMe JavaScript so that they set cookies with the proper host and the root path. Here’s a copy of each function, already modified. Just change the ‘site.com’ to your server’s name.

function rememberMe (f) {    var now = new Date();    fixDate(now);    now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);    setCookie('mtcmtauth', f.author.value, now, '/', 'site.com', '');    setCookie('mtcmtmail', f.email.value, now, '/', 'site.com', '');    setCookie('mtcmthome', f.url.value, now, '/', 'site.com', '');}function forgetMe (f) {    deleteCookie('mtcmtmail', '/', 'site.com');    deleteCookie('mtcmthome', '/', 'site.com');    deleteCookie('mtcmtauth', '/', 'site.com');    f.email.value = '';    f.author.value = '';    f.url.value = '';}

The other usability problem that most MT comment forms have is even when the form contents are remembered, the Remember Me checkbox or radio button is not. Users often don’t know if they need to check the box again in order for their information to continue to be remembered. So to be on the safe side, they check the box every time they enter a comment.

If the user’s information is remembered and you have a checkbox labeled “Remember Me,” the state of the checkbox should be remembered as well. This is very simple to do as well. Find the JavaScript code that writes the user’s remembered information into the form and add a few lines that sets the state of the checkbox. Right after the line that says:

document.comments_form.url.value = getCookie("mtcmthome");

Add the following…

if (getCookie("mtcmtauth")) {   document.comments_form.bakecookie.checked = true;}

By making it easier for people to comment on your blog, more people will. And more people commenting means more traffic for your site.

Recently Written

Product Add-Ons Are An Expansion Myth
Dec 1: Add-ons can enhance your product’s appeal but won’t drive significant market growth. To expand your customer base, focus on developing standalone products.
Protecting your Product Soul when the Same Product meets New People.
Nov 23: Expand into new markets while preserving your product’s core value. Discover how to adapt and grow without losing your product’s soul.
Building the Next Big Thing: A Framework for Your Second Product
Nov 19: You need a first product sooner than you think. Here's a framework for helping you identify a winner.
A Framework for Scaling product teams
Oct 9: The people, processes, and systems that make up a product organization change radically as you go through the stages of a company. This framework will guide that scaling.
My Networked Webcam Setup
Sep 25: A writeup of my network-powered conference call camera setup.
Roadmap Outcomes, not Features
Sep 4: Drive success by roadmapping the outcomes you'll create instead of the features you'll deliver.
Different roadmaps for different folks
Sep 2: The key to effective roadmapping? Different views for different needs.
Micromanaging and competence
Jul 2: Providing feedback or instruction can be seen as micromanagement unless you provide context.

Older...

What I'm Reading