Redirect All (Broken) Links from any Domain via HTAccess

by Jeff Starr on Wednesday, December 31, 2008

Here’s the scene: you have been noticing a large number of 404 requests coming from a particular domain. You check it out and realize that the domain in question has a number of misdirected links to your site. The links may resemble legitimate URLs, but because of typographical errors, markup errors, or outdated references, they are broken, leading to nowhere on your site and producing a nice 404 error for every request. Ugh. Or, another painful scenario would be a single broken link on a highly popular site. For example, you may have one of your best posts mentioned in the SitePoint forums, but the person leaving the link completely botched the job:

Read more

Year-End Rambling, Boring Personal Stuff, Etc.

by Jeff Starr on Sunday, December 28, 2008

Sometimes I just need to type. To get it out. Small ideas, news, and other mental slices of personal relevance. If this just “ain’t your thing,” by all means, please move on to the next item in your reader. Otherwise, if I may ramble on for a moment with the privileged luxury of your gracious attention, I will attempt to elaborate a few of the recent mysteries swirling throughout the rushing vortex that is my life.

First of all, the site is doing great. I am honored that you have found Perishable Press worthy of your consideration, consumption, and contemplation. Your time is extremely valuable, so I am most grateful that you have chosen to include me in your current stream of consciousness. As the site continues to evolve, I hope the silent majority will decide to reach out and say hello, drop some insight, or even some criticism. After all, “dialogue” is the second part of the site’s official tagline. <smile>

Read more

Feedburner Alternative: Homegrown Feed Statistics for Your Blog

by Jeff Starr on Tuesday, December 23, 2008

If, for whatever reason, you don’t want to use Feedburner to track your feed statistics, this article describes a relatively simple, “roll-your-own” alternative. Instead of redirecting your feed traffic through Feedburner, keep your original feed URLs and place the following code into a file named “feed_stats.php” (or whatever) and upload to your server:

Read more

WordPress Custom Fields, Part II: Tips and Tricks

by Jeff Starr on Monday, December 22, 2008

[ Diagram: Electric Field ] As we have seen in our previous post, WordPress Custom Fields Part I, custom fields provide an excellent way to add flexible content to your posts and pages. By assigning various types of content to different custom fields, you gain complete control over when, where, and how to display the associated information. For example, sub-headings may be displayed in the sidebar, footnotes may be consolidated into a single region, post images may be displayed before the post title, and so on. In this follow-up article, we will review the basics of custom fields and then jump into a few custom-field tips and tricks.

Read more

WordPress Custom Fields, Part I: The Basics

by Jeff Starr on Wednesday, December 17, 2008

[ Diagram: Electric Field ] I recently developed a theme that makes heavy use of WordPress’ custom fields. The custom-field functionality of WordPress makes it possible to rig up just about any customized layout quickly and easily. Custom fields enable designers to organize post content into different sections, making it possible to create non-linear page layouts, with different types of content easily removed from the normal post loop and relocated to different parts of the document. This organizational and design flexibility has the added benefit of making it super-easy to update your content, redesign your theme, and handle blog maintenance in general. In the first part of this mini-series, we walk through the process of implementing and using custom fields; then, in part two, I will share some delicious tips and tricks to help you get the most out of everything that custom fields have to offer.

Read more

Unobtrusive JavaScript: 5 Ways to Remove Unwanted Focus Outlines

by Jeff Starr on Tuesday, December 16, 2008

I recently wrote about how to remove unwanted link outlines using a pure-CSS method that works on every modern browser except (wait for it) ..Internet Explorer 6! Yes, that’s right, another reason why (almost) everyone is pushing hard to eliminate Internet Explorer from existence.

Nonetheless, removing those pesky unwanted link outlines in IE6 is not possible with CSS, but it’s a snap with a little JavaScript. Here are four unobtrusive JavaScript techniques (plus one CSS-only method thrown in for good measure) for removing unwanted focus outlines.

Read more

Redirect WordPress Individual Category Feeds to Feedburner via HTAccess

by Jeff Starr on Monday, December 15, 2008

Time for another Feedburner redirect tutorial! In our previous FeedBurner-redirect post, I provide an improved HTAccess method for redirecting your site’s main feed and comment feed to their respective Feedburner URLs. In this tutorial, we are redirecting individual WordPress category feeds to their respective FeedBurner URLs. We will also look at the complete code required to redirect all of the above: the main feed, comments feed, and of course any number of individual category feeds. Let’s jump into it..

Read more

Miscellaneous Code Snippets for WordPress, Windows, and Firefox

by Jeff Starr on Sunday, December 14, 2008

[ Miscellaneous Color Slices ] One of the original purposes of Perishable Press involved serving as a “virtual dumpster” for all of my miscellaneous code snippets. Over time, I continued elaborating to greater degrees on the various code recipes that I was posting, until eventually those brief snippet posts evolved into complete, richly detailed articles (at least from my point of view). Now that I enjoy the luxury of writing for an incredible audience, I try to avoid posting anything that doesn’t include an accompanying explanation. “If it’s worth posting, it’s worth explaining,” I always say. When you have people reading your stuff, there is little room for superfluous nonsense, unexplained code snippets, and long-winded introductions. ;)

Even so, every now and then you need to break the rules, shake up the routine, rock the boat, drop some acid, that kind of thing. Lately, I have been doing some deep archiving and have amassed a considerable collection of completely miscellaneous and unrelated chunks of code. There are too many random snippets to spend time sewing together similar functionality, and I really hate deleting perfectly good code. I also hate keeping misfit code chunks lying around in my otherwise pristine digital archive (joking). Fortunately, this dilemma is easily resolved by loosening up and simply dumping the information right here on the site. After all, that’s what it was originally designed for — in fact, the further you dig back into the archives, the more apparently pointless code snippets you will find. So without further ado, I now present a completely random, unexplained, miscellaneous collection of potentially useful code snippets!

Read more

Perfect WordPress Title Tags Redux

by Jeff Starr on Wednesday, December 10, 2008

In my previous article on WordPress title tags, How to Generate Perfect WordPress Title Tags without a Plugin, We explore everything needed to create perfect titles for your WordPress-powered site. After discussing the functionality and implementation of various code examples, the article concludes with a “perfect” title-tag script that covers all the bases. Or so I thought..

Some time after the article had been posted, Mat8iou chimed in with a couple of ways to improve thie script by cleaning up tag names and specifying page numbers for archive views. Apparently, by replacing the $tag variable with WordPress’ built-in single_tag_title();, titles for Tag-Archive page views will display the tag’s “pretty” name rather than the unformatted version. For example, the tag for Pink Floyd will be displayed correctly as “Pink Floyd” rather than the less friendly “pink-floyd”. And so on.

Read more

Speed Linkin’ :: December 2008

by Jeff Starr on Wednesday, December 10, 2008

[ Official 'Speed Linkin' Icon ] Kicking things off for this month’s official Speed Linkin’ post is a site designed to help with all of your graphical background needs. Then, we move on to a lightweight forum plugin for WordPress. Ever feel lost when it comes to choosing the best lightbox script? Well it’s Ozh to the rescue with the excellent Lightbox Clones Matrix. Also handy is this incredible list of social media sites. As a big fan of ASCII art, I can spend hours playing with the enchanting ASCII-O-Matic. Here is another excellent tool for checking your site’s gzip compression. For a little SEO fun, you may benefit from learning about your site’s anchor index search results. If you are a heavy Tumblr user, you may want to backup your Tumblr posts. There is also a nice backup tool for your Twitter posts as well. Saving the best for last, check out the site redesign I recently threw down for graphics guru Thane Champie, aka 88teeth. Btw, huge thanks to Thane for providing the sweet “Speed Linkin’” graphic! :)

Read more

Perishable Press Featured at Divine CSS!

by Jeff Starr on Tuesday, December 9, 2008

Yay! Perishable Press is now featured at one of my favorite CSS-design showcase sites, Divine CSS! Divine CSS features a mouth-watering collection of CSS and Flash-based website designs, and is always a great source of inspiration and ideas for new projects. Seeing my current theme (Quintessential) showcased at Divine CSS is very inspiring, and a nice way to celebrate the (relatively) new design. Many thanks to the fine folks at Divine CSS for sharing my site with their audience — it is greatly appreciated! :)

So what are you waiting for! Go check it out (while it’s still on the front page) and kick this old hard-working dog a few stars! ;)

Read more

Valid, SEO-Friendly Post Translation Links

by Jeff Starr on Tuesday, December 9, 2008

Ever wanted to provide automatic language translations of your web pages without installing another plugin? Here is a valid, SEO-friendly technique that takes advantage of Google’s free translation service. All you need is a PHP-enabled server and you’re good to go. Just copy and paste the following code into the desired location in your page template and enjoy the results. Once in place, this code will produce translation links for eight common languages for every page on your site. Grab, gulp and go:

Read more

Custom OpenSearch Functionality for Your Website

by Jeff Starr on Sunday, December 7, 2008

I recently added OpenSearch functionality to Perishable Press. Now, OpenSearch-enabled browsers such as Firefox and IE 7 alert users with the option to customize their browser’s built-in search feature with an exclusive OpenSearch-powered search option for Perishable Press. The autodiscovery feature of supportive browsers detects the custom search protocol and enables users to easily add it to their collection of readily available site-specific search options. Now, users may search the entire Perishable Press domain with the click of a button.

And you can do it too! Adding customized OpenSearch-powered search functionality to your own site is a great way to foster site awareness and reinforce brand identity, while providing a tool that will benefit your visitors and improve the usability of your site. Even better, implementing OpenSearch functionality is extremely easy, completely free, and requires zero maintenance. In this article, I provide an easy, 3-step tutorial on how to add OpenSearch functionality to your site in less than five minutes. After the tutorial, we will look at the many different ways to customize your OpenSearch implementation, including examples, search options, and much more.

Read more

Backwards-Compatible Spam and Delete Buttons for WordPress

by Jeff Starr on Monday, December 1, 2008

Recently, Joost de Valk shared an excellent technique for adding spam and delete buttons to comments on your WordPress-powered blog. The idea is to save administration time by providing links to either “spam” or “delete” individual comments without having to navigate through the WordPress admin area. Joost provides the following plug-n-play solution:

Read more

How to Write Valid URL Query String Parameters

by Jeff Starr on Sunday, November 30, 2008

When building web pages, it is often necessary to add links that require parameterized query strings. For example, when adding links to the various validation services, you may find yourself linking to an accessibility checker, such as the freely available Cynthia service:

Read more


Attention: Do NOT follow this link!