Geekery Today: posts filed under WordPress

Technicalities (posted 22 February 2008)

Well, I feel kind of dumb.

But, first the good news.

I’ve recently added a new feature to the comments form on this blog. If you have an OpenID identity — and everyone who has a blog through WordPress.com or LiveJournal, or an account with AOL Instant Messenger, already has an OpenID identity — you can now use that to sign your comments on posts at radgeek.com (meanwhile getting a leg up on the comment spam filters).

OpenID is a free and decentralized system for using a single sign-in to vouch for your identity (or, if you prefer, your regular pseudonym) across many different websites. Because it is decentralized, you don’t ever have to turn any sign-in credentials over to this website, and your ID also remains good as long as your homepage exists — unlike single sign-in systems based on centralized providers like Microsoft or Six Apart, it doesn’t get compromised or killed if any one company goes under. It’s a neat project, and very useful for simple ID tasks like signing comments. So I figured I would do my part by enabling the use of OpenID on blog comments here. I downloaded the Alternate OpenID for WordPress plugin to handle the basics, and then set about hacking it to cover the details of how I wanted it to work.

So, the good news is that OpenID sign-ins are, as far as I can tell, up and running and ready for you to use. To use the feature, fill the appropriate URI into the URI field and then mash the button next to your URI to sign in using OpenID. Thus, for example:

After you mash the button, you’ll be shuttled over to your OpenID provider, where they will ask you to sign in, or whatever it is that they do to verify your identity. When you’re done doing that, you should be shuttled back to radgeek.com where you’ll now be recognized by your OpenID address. The OpenID plugin will try to create an intelligent user name to display based on the information you provide it, but if you don’t like the user name it supplies you with, you can click on the user name and edit your name (or any other part of your local record) to your heart’s content. Once you’re satisfied, you can return to the page and post your reply under your OpenID signature. Hooray!

Now, all that said and done, here’s the bad news. While I was tweaking the OpenID plugin, I managed to introduce some changes which, without my knowledge, borked the normal operation of the comments form here. Meaning that if you submitted a comment any time in the last several days, and it hasn’t appeared on the page yet, it’s not because it’s waiting in the moderation queue; it’s because (argh) WordPress lost it, due to said borking. In particular, if you tried to comment on:

… and your comment hasn’t appeared yet on the site, then it’s because I never got your comment. If you can say again what you had to say then, I’d be very glad to hear it; if not, I understand, and I really apologize for the trouble for this bout of blockheadedness on my part.

I wish that I had a more auspicious occasion for unveiling the new feature on the blog.

Humanized History WordPress plugin: magic endless scrolling for your WordPress blog (posted 12 October 2007)

Earlier this year I showed off a new geegaw for my websites, first at Rad Geek People’s Daily, and then at Feminist Blogs. That’s the Humanized History feature that provides the magic endless scrollbars for Geekery Today and Feminist blogs. I used some WordPress template kludges and a bit of unobtrusive JavaScript to magically fetch older posts for you as you get close to the end of the current page, thus allowing you to keep on scrolling as far back as you want to scroll, without having to stop and click through on older posts / newer posts page links.

The way I implemented the feature, at first, was through some ugly spit-and-bailing wire kludges in the WordPress templates, which would be messy and complicated to replicate elsewhere, and which would fall apart if one ever switched to a different theme from the one they were currently using.

But I’m happy to announce that if you have a WordPress weblog, you, too, can now add a Humanized History magic scroller, with only minimal spit and bailing wire. I’ve packaged as much of the magic as I can into a new WordPress plugin, which I’ve unimaginatively dubbed Humanized History for WordPress, and which is now available for download through my projects website.

The plugin does still require some minimal template hacking, due to unavoidable limitations in WordPress, but the hacking you’ll have to d is nice and contained, and if you’re unfamiliar with WordPress templates, you just follow the step-by-step copy-and-paste instructions provided in the documentation. You should also feel free to contact me if anything is unclear or not working properly for you.

Enjoy, and scroll on!

Humanitarian Interventions (posted 1 April 2007)

A few days ago, I mentioned that I was test-driving a new feature for the Rad Geek People’s Daily, which implemented a Humanized History magic scroller for WordPress blogs. Yesterday, I added the same feature to Feminist Blogs, which also runs under WordPress (thanks to the FeedWordPress aggregator), and which happens to have an even more pressing need for a way to let users quickly scan through lots and lots of posts without wasting the user’s time or the web server’s scarce resources. Currently the implementation is based on a bit of ugly hackery involving WordPress’s templates and my own site-specific JavaScript, but I am thinking that if I have a bit of free nerdery time later in this week I am going to put together a WordPress plugin that will package up the features for you (yes, you!) to install on your own WordPress blog or FeedWordPress-based aggregator.

Again, let me know what you think, and give me a heads-up if you notice anything that seems weird, broken, or wrong.

Fiddling while Rome burns (posted 19 March 2007)

I’ve been fiddling with a new bit of geekery for the Rad Geek People’s Daily for a couple of days; you may have noticed an early version of it if you’ve been poking around the edges of this site earlier today. If you haven’t, here’s the easiest way to see what I’ve added: go to http://radgeek.com/ and scroll down. Then, keep scrolling. As long as you like.

In most web browsers, you should be able to keep scrolling without ever reaching a set of those next page / previous page pairs of links. In theory you could keep scrolling through the complete archive of Geekery Today. The same feature works in category archives, monthly archives, and searches; meaning, basically, that whenever you are scanning through a list of posts on Geekery Today, you can now run through the whole list without having to click through to a new page. The change was inspired by the points made at Humanized 2006-04-25: No More Pages?

Of course, this page-chunking phenomenon isn’t limited to search sites. It’s used everywhere from blogs to forums, from e-commerce sites to e-mail programs. And it’s surprising how often one finds oneself just giving up and going somewhere else when one has reached the end of a page.

The problem is that every time a user is required to click to the next page, they are pulled from the world of content to the world of navigation: they are no longer thinking about what they are reading, but about about how to get more to read. Because it breaks their train of thought and forces them to stop reading, it gives them the opportunity to leave the site. And a lot of the time, they do.

The take away? Don’t force the user to ask for more content: just give it to them.

And so I will just give the other posts to you. But the trick here was to develop a way to make those posts — sometimes hundreds of them stretching over several years — all available to you without making you wait for everything to download. (Not only would that make everyone wait for those posts to download; it would also make the website completely inaccessible for mobile devices and other alternative web platforms.) The solution to the problem was for me to write a little bit of unobtrusive JavaScript, inspired by Humanized’s implementation, and to tinker a little with the WordPress templates on the back end, so as to automatically grab the older posts as you scroll down towards the bottom. That way, for users with conventional web browsers there’s always more waiting for you to read as you scroll down (at least, until you reach the earliest post). But mobile users and other people who have JavaScript turned off can still access the website the same way they already were, with no substantial change.

This is still a work in progress; let me know what you think — and whether you notice anything weird or broken — in comments. If you’re interested in knowing more about how I implemented it, you can drop me a line.

In the meantime, scroll on!

Immigrant song (posted 1 March 2007)

For a lot of reasons, I have wanted to move Rad Geek People’s Daily from MovableType to WordPress for quite a long time. For a lot of other reasons, I have sat around and done nothing about it for quite a long time. But the day is here at last, and I’ve put quite a lot of effort into moving from one to the other. The migration is not, in itself, very hard or time-consuming; but one thing that I wanted to do, which has been time-consuming, is to make very sure that more or less nothing breaks in the transition (URIs, syndication feeds, etc.). So I hope you’ll pardon my dust for a few days while I sort everything out, but I hope that most of the major work is already done. If you notice anything that was working as of yesterday and is working as of today, please give me a holler, so that I can track it down and fix it.

We now return you to your regularly-scheduled extended quotations and political diatribes.