Comments
I changed the comments system. It requires some styesheet changes, so you might have to do some kind of cache clearing before it works. The system I used before was NBCom, which has the advantage of being easy to get started and being linked from the Nanoblogger website. It has some pretty heinous shortcomings: it mangles the comments while removing HTML and often leaving an unrecognizable mess in its wake; the login system, simple though it may be, is too much of a hassle for anyone to use, and the code itself manage to make using PHP worse than it would normally be, eschewing the templating nature of the language—the only thing it does well—in favor of a series of writes to stdout, making it look kind of like a perl script. The last problem made it hard to edit, so I just made my own thing. I have a habit of abandoning projects half-finished, so moving things over to the front page now is both good and bad: it means that I can start using my work before I wrap things into a nice neat release for other people to use, but it also means that I may now never get around to making that release. Oh well.
I made the new comments page look like the rest of the site, but I also tried to keep the behavior similar to that of nbcom. I kept the spam-prevention image for one, since, though it is pretty easy to circumvent, it has done a good job of preventing spam, and the choices for the random word list are kind of funny. It looks like the author likes both Dune and Lord of the Rings, and I can respect that. I’ve gotten rid of the login system in favor of TypeKey since it’s easier to hand off account management to someone else. Anonymous posts are still allowed, but if you want to post with a name, use the typekey link. I allow HTML now, but the validator still have a couple of bugs. If you start out a post with an HTML tag, that whole thing better be HTML, because it’s not going to work otherwise. I do something with the linebreaks now, though, so feel free to hit Enter and expect something to come out on the other end.
I put together an XML schema to validate the posts to keep people from screwing everything up when they forget to close an <i> tag or something, and, even though I now think that XHTML is more of a mess than I did yesterday after spending most of today wading through a bunch of schema files, I think my way of doing things is more elegant and rad than the other people’s ways I could find, so maybe I should release that part before I lose interest.
So there you have it. A letter opener. Let me know if you have any trouble.