Get a Mac to stop at dropdown menus
After using nothing but PCs for the past 15 or so years, getting a MacBook has given me a little more of a learning curve that I was expecting. Fortunately it’s been pretty intuitive and hasn’t been that bad. But there’s been one little snag that kept catching me.
By default the tab key does not stop at select / dropdown menus on forms. And as I tend to tab through forms pretty quickly it’s caught me several times entering data into the wrong fields. Fortunately, with the help of Google and this page I found a solution.
Simply go to the Keyboard section under System Preferences and select All Controls on the bottom. That’s it. 
Should I block Baidu?
Well, I am for now.
I noticed Baidu pretty much on a forum of mine 24/7, but I didn’t recall ever seeing them show up in the referrer logs. Over the past year, across the sites on my server, they’ve made almost 35,000 requests for pages; chewed up 337 megs of bandwidth, admittedly not a big amount; and sent 1 referral. And the forum I first noticed it on only has the home page indexed. So since it doesn’t seem to be doing anything for my English language sites, it’s going to start getting blocked. Maybe I’ll change my mind down the road.
WordPress release archive
Didn’t know this was around, but looking for older versions of WordPress to test plugins against I found the WordPress release archive. Looks like you can find pretty much every release they’ve put out.
Switching from eCommerce to free with ads
A few years ago I got on a kick making simple Photoshop templates and threw up a website to try and sell a few. I had no illusions that my templates were of the level that were being sold for $20+ so I went with a type of credit system similar to what iStockPhoto.com does. A visitor buys a set of credits and uses those credits to buy templates. Seemed like a simple process and after a little tinkering with WordPress I had a working setup.
But after two years only 3 people had bought credits and I had made a whopping 12 bucks. Read the rest of this entry »
How to wrap a SMF forum in WordPress
After spending the better part of yesterday getting a forum setup with the same layout as its parent WordPress site I thought I’d share a couple of tips along the way.
And I picked a less efficient way, including wp-blog-header.php in the forum code, because it was far easier. At some point I may go back and cache the WordPress pieces on the blog side and use those cache files on the SMF side, at which point none of this would be necessary. But for now it’s working.
My first public WordPress theme – Christine
Meet Christine. This is the first WordPress theme that I’ve done that’s getting released. I’ve done probably a dozen themes for various sites but never sat down until now with the intent of doing one to share.

You can download it from Reliti.com
Demolition City Flash Game
This is one of those painfully addictive Flash games. I’ve killed several hours blowing up buildings.
WordPress – Redirecting to the first child page
I've been redesigning the website for a web application I am writing. The site uses WordPress because I wanted a blog section and wanted visitors to be able to easily leave comments on any page. So the entire site is backed with WordPress with most of the content on pages rather than posts.
One of the sections is documentation and it's broken down with child, grandchild, and so on pages. So I might have a page /customization/themes/. /customization/ isn't really a page to look at, but needs to be there to act as a container for its children and will therefore show up in the XML sitemap which means it'll get indexed by the search engines. Don't really want that.
My first instinct was to just print a list of the child pages so the visitor could click on one of them. A little clunky, but it would've worked.
Found a better solution at WPRecipes.com. They suggested making a custom page template and having that page redirect to the first child. Perfect solution with one minor problem. Their code used wp_redirect() which, by default, uses a 302 redirect which is a temporary redirect. A better solution would be to use a 301 permanent redirect. Fortunately, the wp_redirect() function has an optional second parameter that let's you put in what type of redirect to do.
And since I was editing the code anyway, even if it was only 4 characters (,301), I figured I'd rewrite it to make more sense to me. So here's my version.
-
<?php
-
/*
-
Template Name: Redirect To First Child
-
*/
-
global $post;
-
'numberposts' => 1,
-
'orderby' => 'menu_order,title',
-
'order' => 'ASC',
-
'post_type' => 'page',
-
'post_status' => 'publish',
-
'post_parent' => $post->ID
-
));
-
?>

