Sillybean

Code

PHP

Absurdly simple breadcrumbs

Simple PHP breadcrumbs built from the URL. The linked text will be the capitalized directory name by default (e.g. /code → “Code”), but you may specify replacements (e.g. /admin → “Administration”). First released January 8, 2004. Last updated February 24, 2004. Details & download »

JavaScript

Word count

Adds a live-updating word count to each textarea in a document. Respects textareas with initial values. Optionally ignores HTML as long as the tags are closed — that is, as you type a tag, the count will increment, but when you add the closing bracket, the script will recognize the tag and decrement the count. Works in all browsers except IE (for now). (Tips on working around IE’s craptastic event handling are welcome.) Demo & download »

Track changes

Given a document containing <del> and <ins> elements (including Word files with tracked changes saved as HTML), provides a toggle to highlight changes. The manner of the hightlighting is determined by CSS; the given styles emulate the old-school Word track changes look (i.e. inserted text in red, deleted text struck through). Demo & download »

WordPress

Comment Author Checklist

A WordPress plugin for writers’ critique groups or other group blogs that do some kind of document review. It generates a list of registered users with the names of those who have commented on the post (as well as the post’s author) crossed off. Details & download »

No Place Like Home

Displays a small home icon next to the designated home page under Manage → Pages. Details & download »

Expression Engine

Word count extension

Adds a live-updating word count to each textarea in the Publish screen. Optionally ignores HTML as long as the tags are closed. Preview (not yet IE-compatible) released January 1, 2007. Download v.0.0.9 » (Note: I’m no longer working with Expression Engine, at least for now, so any updates will be made only to the word count JavaScript above. So far there haven’t been any. If the plugin code stops working due to changes in EE, I probably won’t be able to fix it.)

meta

All code is released under the Slayer Code of Ethics: “Want. Take. Have.” In other words, you can do whatever the hell you want with it. Fly free, little code.

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

-- or --

Textile formatting is in effect.

'round here

Writing & Publishing 101

The Web Design for Authors series has evolved into Paged Media, a web design company devoted to authors

elsewhere

The recent troubles here evidently broke the LJ crossposter… which is now fixed, and has just spammed my flist with the last several posts. Sorry, LJ peeps.

Comment on this

Buy n Large — a link for people who have seen WALL-E

Comment on this

Text Prefs — a UK design firm is conducting a survey on web users’ text preferences. Tell them how you like it! They promise to publish the results when they’re done.

Comment on this

Fizzy Geography — should your character call it “soda,” “pop,” “Coke,” or something else? Depends which county they live in (or came from).

Comment on this

If you’re thinking of getting a new iPhone, this price comparison might be useful.

Comment on this

This week’s free Tor ebook is In the Garden of Iden, by Kage Baker. I love this book. If you haven’t read the Company series, here’s your opportunity for a free sample. Tor’s wallpapers this week are pretty great, too.

Comment on this

The Sock Obama — 100% pure hand-knitted offensiveness! And in breaking news elsewhere, Fox News is staffed entirely by racist morons. Oh, wait, we knew that.

Comment on this

Kucinich introducing articles of impeachment — he’s got 35 of ‘em, and he’s reading them all. Iraq, Iran, Valerie Plame, the attorney firings — it’s all there. I don’t think this is going to fly, but I love Kucinich to pieces for doing it. (Care to write your rep?)

Comment on this

Versions — Subversion client for Macs. I love it.

Comment on this

12-year-old environmentalist lays the smackdown on the UN — stuns adults into silence. “If you don’t know how to fix it, stop breaking it.”

Comment on this

Shadow Unit season finale in progress, one installment per night all week. It’s a nail-biter.

Comment on this