The Five Love Languages

Have you ever heard of The Five Love Languages by Gary Chapman? The basic premise of the book is that there are five different ways that all people give and receive love and that we need to give our spouses love in a way that they can accept it the most. It’s an excellent book and one I’d highly recommend.I recently had the opportunity to work on their website at and got to build a really neat assessment tool which lets you take a 30-question test and discover what your “love langauges” are. Here’s an embeddable version of the test to take right here. Hope you enjoy it.

Using WordPress Comment Meta

UPDATE 8/18/2011: As of WordPress 3.2 there still isn’t any native way to view comment meta in the admin, but I have released a plugin that allows you view the data (no editing/adding yet). Download the plugin here.

One of the features in WordPress 2.9 that I was the most excited about was comment meta. This allows us to use the WordPress comment fields much more robustly and do some really cool stuff. Unfortunately there’s no documentation added on the WP codex and I found very little on the web. So after doing a lot of scrounging and testing, I’m submitting this guide for how I added some custom user content to each user comment.

In this tutuorial, we’ll be editing your comment template and functions.php. A healthy level of programming experience is required. I’d also like to note that there’s probably many ways that this code could be made more elegant. My goal is just to have some working code that gets the job done.

Step 1
First we need to solicit user input. For my purposes, I was trying to attach a custom user id generated elsewhere to each comment. This could be a user-entered field, though. Add this code to your comment submission form:

<input type="hidden" name="my_user_id" value="<?php echo $myid; ?>" />

Step 2
Next we need to add this field as a piece of MetaData attached to the new comment. We use the WordPress hook system to accomplish this. Add this to your functions.php file:

add_action ('comment_post', 'add_meta_settings', 1);
function add_meta_settings($comment_id) {
	add_comment_meta($comment_id, 'my_user_id', $_POST['my_user_id'], true);

Step 3
For the final step, we need to read our new data along with each comment. I’m using the callback method to display my comments. In your callback function add the following code:

$GLOBALS['comment'] = $comment;
$my_user_id = get_comment_meta(get_comment_ID(),"my_user_id", true);
echo $my_user_id;

I hope this will help get you pointed in the proper direction. Enjoy…

Global Warming Conference Planners

If I were planning a conference to discuss the effects of global warming (and I wouldn’t since I think it’s all a load of bunk), I certainly wouldn’t plan it in the middle of winter. It seems to me that these conferences are always in the coldest months of the year and that there’s usually a snowstorm or blizzard as has been the case in Copenhagen this winter. I mean come on… they’ve got to know that this is at least as much about marketing as anything else. Why not schedule these conferences for the middle of summer — you’ll find the population a lot more liable to listen to global warming silliness in the middle of the sweltering heat, not when they are trying to stay warm in sub-zero temperatures.


My First WordPress Plugin

Iimages just finished up my first WordPress plugin. It’s a little app that uses Google’s caching servers to more reliably post your tweets in the sidebar. You can see how it works on the sidebar of this blog.

Here’s the plugin page:

And the WordPress Plugin Page:

Kanye, Serena, and the Jimmy Carter

Okay, first off, I’d like to say that yes, I am a dreadful blogger. I go months, months at a time without writing a post. So if anyone is actually paying attention to this blog, then they are very persistent. Either that or they just subscribed with RSS. Yeah.

kanye_westOkay, so anyway I just wanted to rant for a very brief moment. This weekend we had a couple vaguely interesting things happen. Kanye West interrupts Taylor Swift at the VMA Awards to promote Beyonce’s video. The incivility of this on his part means that I could never, ever respect him again. Course I didn’t to start with so this isn’t much of a problem for him! This has spawned a somewhat entertaining internet meme.

Serena Williams (the tennis player) had a horrible melt-down and lost her match because of cussing out the line judge. She obvious has an anger problem and had better get it under control. It’s threatening to destroy what has been an incredible career.

I can’t believe what I just heard: Jimmy Carter says that Joe Wilson had a racist tone for yelling “You Lie!” at president Obama. Wow. Sure it was rude, but certainly not as rude or awful as the two things I just mentioned above. I just really take offense at anyone being labeled a racist because they disagree with a black man’s political views. Geesh people. It’s 2009, get over it already.

I think I’ve spent far too much time thinking about this. Back to real life for me.

UPDATE: Two more random, bonus thoughts. Had this pointed out to me on Twitter “RT @kanyewest YO PATRICK SWAYZE I KNOW YOU JUST DIED AND ALL&IMMA LET U FINISH.. BUT MICHAEL JACKSONS DEATH WAS THE BEST ONE THIS YEAR.” Heh heh heh…

And also: I noticed on Digg and the NYT that I’m starting to see a little more balance in terms of right and left commenters. For a while, there’s just been a wave of left-leaning comments that just bury any conservative thought and I think it’s starting to even out. That’s good for everyone.

Another Jib Jab Video: Obama to Save The Day

Yeah it kinda makes fun of the president, yeah it’s pretty funny. I just like the Jib Jab sense of humor. Most of the time.

John Hodgeman Anoints Obama as the Nerd President

This is a fun watch since I’m interested in politics and also kind of a geek. Not really a fan of the president, but very funny nonetheless.*

*I think it’s important to be able to laugh at this kind of thing and save policy differences for their proper place.

Five Guys Review

five_guys_logoFive Guys Burgers and Fries just opened a branch in Boise and I decided to give it a try today after Mindi W.’s positive review. Cole and I dropped by on our way to the circus (that’s a whole other story right there!) and I had a burger and shared some fries with the little fella. Here’s my thoughts.

First off, the red and white tiles and simple menu really reminded me of In-N-Out Burger which was incredibly exciting. Being a picky eater I really like the fact that the burgers come plain and that they only put on what you request. I can’t tell you how annoying it is to find that a restaurant or fast food joint has snuck mayonaise or some dreadful condiment like that onto my burger, or even worse, forgotten the cheese. But I digress…

I agree with Mindi that the burger tasted like it came off a backyard grill which is quite a good feature in my book. I really enjoyed it quite a bit. I would go back for the burger.

I wasn’t so crazy about the fries. There certainly were a lot of them, but I just don’t like my fries so thick. I find them hard to eat that way and not as flavorful. Cole and I actually couldn’t finish all the fries and I had to bring some home. Probably wouldn’t go back for the fries.

The deciding factor for me, though, was price. I ordered a little cheeseburger (1/4 lb), a small fry (admittedly a lot of fries), and a drink and the total came to $8.65. That’s a lot of money for eating out at a fast food joint! If I was going to spend that much I’d go to Boise Fry Company (you know, used to be Idaho Fry Company) and get some mind-blowing shoestring fries and an excellent burger. Or Fuddruckers. But normally if I’m going to get some fast food, I’ll aim for something a little cheaper that will deliver comparable quality. Or I might just stop by for their burger which was reasonably priced at around $3.65 (if I remember correctly).

So my conclusion is the same as Mindi’s: it was okay, pretty good, but I won’t be in a hurry to go back unless to introduce someone else.

New JibJab Video: Election 2008

This is too great to not pass along…. I laughed myself silly!

Fake Emails: A New Spam Technique

SpamI’ve run across a new spam technique which is puzzling me. I’ve started getting bogus signups on some of my newsletter forms for email addresses like,,,, When I send out my newsletter of course these emails bounce back to me and I remove them from the list. In a few days, though, they pop up again.

On my large site I have several email entry points and they come in either from the front page or from the newsletter page. I have the same problem on a smaller site where the user actually has to create an account.

Initially, this doesn’t make any sense to me as I can’t imagine what good it would do the spammer. I do have two theories, however….

Read more »