Joho the Blog » wordpress

January 2, 2012

Fixing the quirky noQuirks blog template

Thanks to Mirek Sopek, the folks at Mako Lab diagnosed why my new WordPress blog template was going all wonky in Internet Explorer 9. Even after I’d discovered that the problem was that I was declaring the HTML page with Quirks, I’d put the type declaration in the wrong spot. I put it at the top of header.php, thinking that would put it at the top of the HTML page that WordPress assembles out of various files. Nope. You have to put it at the top of the index.php file. D’oh!

We still don’t know why it worked on my copy of IE 9, at the same version level and both 64-bit.

Thank you Mirek and Mako Lab! I would never have figured this out without you.

2 Comments »

September 12, 2011

How to embed a WordPress admin page

I’m posting this so I’ll remember, and in case someone else is googling around for it.

I have a little editor I wrote in javascript for creating blogposts. When I’m done editing, it loads the transmogrified text into an iframe that contains the WordPress /wp-admin/post.php page (which is the one you create posts with). Except that it stopped working recently, giving me “X-FRAME-OPTIONS” errors.

A little research showed that x-frame-options are set at the server to prevent people from capturing your pages in their own evil iframes (e.g., inserting your blog posts into their spammy site), either by preventing anyone from doing so, or preventing anyone from inserting into a page that isn’t from the same site as the source page.

I couldn’t figure out how to unset those options. But Chason C., at MediaTemple.net — my hosting company — got back to me within 24 hours with the answer. It turns out that MediaTemple isn’t setting that option; WordPress is. The solution is explained in this blog post, which Chason found for me.

The irony is that the blogpost with the answer has actually captured and embedded the original blog post by Igor at KrazyWorks, which you can find here.

2 Comments »

February 28, 2010

I’ve been hacked. Help?

My WordPress account has been hacked.

JohoTheBlog’s RSS feed is showing up in NewzCrawler embedded in spam. Results at Google have begun showing up with spammy titles (“Buy Online, No RX (Prescription) Required! » Zoloft online stores”), with long, hacked URLs (http://www.google.com/url?sa=t&source=web&ct=res&cd=1&ved=0CAsQFjAA&url=http%3A%2F%2Fwww.hyperorg.com%2Fblogger%2F2010%2F01%2F31%2F2b2k-clay-shirky-info-overload-and-when-filters-increase-the-size-of-whats-filtered%2F&ei=qpeKS5W9DJOWtgfF4KHqBA&usg=AFQjCNHepOXYe0Oc0OGRVxvmf-eHPkWYkw&sig2=NikO3hBzHj0ku4rfr8-nnQ).

Googling around tells me that there have been similar-seeming attacks on WordPress accounts.This article is quite helpful. I found some odd cruft in my header.php, have changed passwords, and am stilling looking around.

Any other suggestions?

6 Comments »

November 19, 2007

Joho’s new look

This site is now officially under construction as I switch it from Movable Type to WordPress. So, pardon the glitches, and, no, I haven’t finished moving my blogroll over yet.

Why am I switching? It comes down to no good reason. I like MT as software and admire it as a company. But, I have it configured for maximum host churn. So, I could work on configuring it better or I could try something new. I’ve been using WP for my Everything Is Miscellaneous blog, and have been enjoying it. I’m also fairly comfortable with it now. So, I opted to try something new.

My only regret comes from mt sense of loyalty to MT. The company is a good contributor to the community and I recommend MT wholeheartedly. In fact, if bradsucks weren’t doing the WP install for me, I’d absolutely fail at it; WP is easy to get up in its default state, but much harder to configure and personalize than MT, at least in my experience.

So, now for the tweaks, the fixes, the general annoyance, and the post-installation regrets…

1 Comment »


Switch to our mobile site