disqus

I’m a fan of Disqus. It’s a great commenting system, the Gravatar support is a plus, and the comment tracking they have for your profile is awesome. So a few months ago when I was still in the process of creating this blog, I installed it here on Rhymes With Milk using the official Disqus WordPress plugin.

As the process of creating this site started to wind down, I started thinking about validating my code (as any good developer would do). Essentially this just means that I check to see if the organization that governs internet standards thinks my XHTML is up to snuff. And whaddaya know, the homepage alone has over 3 dozen errors*, but none of them are errors I made. They mostly come from the code Disqus adds to the page (with most of the others coming from an embedded YouTube video).

This really rubbed me the wrong way. These weren’t simple negligible errors like “you shouldn’t have a border size declared on an iframe because that’s not allowed” (this in fact is an error on Mark’s blog — I think it’s a Tumblr thing, so give them shit for it, not Mark)** but ones like “there’s an extra link closer-outer tag for a link that doesn’t even exist.” Seriously, Disqus? You didn’t test the plugin before you launched it?

So I decided to hack it. The php files that actually define the plugin’s actions are a bit more advanced than I was prepared for (I can usually pick my way through other people’s code pretty well. Just take a look at my archives. You think those looked like that out-of-the-box? Hell no.). I Googled the problem with very low expectations (Disqus dev documentation is surprisingly scarce) but stumbled upon this gem. This blog takes you step-by-step on how to correct the invalid markup that Disqus adds to your page. Awesome, it just saved me at least 4 hair-pulling hours.

I think the post was written at least one plugin version ago because some things looked a bit different on mine than in the examples, but for the most part I was able to do just what it said verbatim. And happily it worked. My site’s validation checked out (aside from that stupid YouTube video), but for some reason I lost comment count. All posts said that there were zero comments. With my tail between my legs, I got rid of the hacked Disqus and reinstalled a factory-fresh version, complete with its terrible markup.

But not all is lost. The site doesn’t really visually or functionally “break” because of the poorly written code (at least not on good browsers), so in the short run I can ignore the validation issues. And hopefully “the short run” is all that I’ll have to worry about. 3 days ago Disqus posted this on their blog:

We’re nearing the release of our new WordPress plugin that contains bug fixes, better importing, compatibility fixes with themes and other plugins, as well as offers new improvements in performance and speed.

And one of the comment moderators (aka a Disqus employee) said that the plugin is supposed to be released this week! It feels like Christmas in the RWM household. Hopefully they get it right this time. All the way right.

* Take a look for yourself. Click here to see all the errors.

** The only reason I looked at the validation info for his site was because he also has Disqus installed on his blog and I wanted to see if it generated the same errors there, too. It does not because the Tumblr and WordPress inclusion codes are different.

1 Comment »
date Feb 22nd 2010
author Mike
category Geek
tags,
  1 Comment

a sneak peek…

…of Ally’s new blog design. Dustin and I worked all night on it.

1 Comment »
date Feb 13th 2010
author Mike
category Geek, Life
tags, ,
  1 Comment

Deichkind – Ich betäube mich ft. Sarah Walker

Fresh it up!

No Comments »
date Feb 5th 2010
author Mike
category Life
tags,
 

lost night

The LOST premier last night blew me away. Maybe I just do a poor job of holding in my emotions, but I couldn’t help but smile through the whole thing.  I do have to admit, though, that it was partially due to the company.

MarkGordonAlly and I got together for (almost?) every LOST last season and made something of a tradition out of it.  Each week a different person would have to cook the whole group dinner.  I somehow got branded as the motherly one, cooking (baking mostly) things like potpie and lasagna, you know, the kind with ricotta and spinach.

We all got together last night (plus Annabelle) for the first time in 8 months to keep our traditional LOST nights alive through the final season.  With Mark living in Denver and Gordon living in…unemployment? things are a bit different this year, so coordinating it happened all at the last minute. To make it easy on everybody else while we get back into the rhythm, I volunteered to cook for the premier.

I then realized only 20 hours before dinner was supposed to be served that I was going to spend 7 of those hours sleeping, 10 of them at work and school, 1 of them in transit, and the other 2 getting ready for bed/getting out of bed.  Nowhere in there would I have time to find a recipe, go shopping, or cook. So Ally stepped up and took the responsibility off of my shoulders even though she had NO time to herself either since she had class AND and had to get ready to leave the state the next morning…er, this morning.

But she took it like the champ she is and threw together a simple but lovely salad, and cooked (baked! Haha, maybe I won’t be the matron this time around!) a few pizzas, one with veggies and the other with pepperoni.

Oh, I forgot to mention the other big difference between this season and last.  Last year, 3 out of the 4 of us were vegetarian with me being the token omnivore (one that coincidentally hardly ever ate meat, not out of principle or taste, but out of lack-of-opportunity).  All of our dinners were vegetarian, and each week’s appointed chef came up with a damn good meal.  It’s going to be strange this season now that only one of our clan has stuck with vegetarianism.  It’s hard to say whether Ally’s dual pizzas set a precedent of making meals that cater to all parties, or if we’re going to end up cooking strictly vegetarian meals out of respect for Mark (and laziness to not have to prepare two versions).  I guess we’ll find out…

No Comments »
date Feb 3rd 2010
author Mike
category Geek, Life
tags