Tag Archives: wordpress

How to cartoon and (almost) post from 20,000 feet

I’m flying back from the Nonprofit Technology Conference (it was a great time – more on that soon) and we leveled off a few minutes ago.

So I thought I’d try something. I usually sketch in those minutes between the flight crew saying “Turn off your mobile devices! They are tools of the devil! Yes, you in 24A, I do mean you!” and that sweet moment when they permit us to go back to our productively wired lives (“Buh-CAAWWWWW!” “Oink, oink, oink.”).

Looking at my sketchbook just now, I wondered: could I post all of those sketches using only my iPhone? Continue reading

Typo in an inbound link? Redirection to the rescue!

Jump ahead to the solution to my problem

Every Sunday, when my cartoon gets posted on ReadWriteWeb, I head on over to have a look and join whatever conversation’s going on.

Today’s visit was much the same thing… until I noticed a little wonkiness: a sentence that stopped dead just before the cartoon. Worse, it was a linked sentence… and worse yet, it was the sentence that links from ReadWriteWeb to Noise to Signal.

I clicked on it. Good news: I landed on RobCottingham.ca. Bad news: I was on a 404 page. Because I forgot to include a closing quotation mark in the link to my cartoon site, that link points to:

http://robcottingham.ca/cartoon%3ENoise%20to%20Signal%20cartoons%20here
%3C/a%3E.%3C/em%3E%3C/p%3E%3Cdiv%20style=

No surprise it doesn’t go anywhere useful, right? That’s kind of a big deal, because a) I don’t like people getting frustrated when they click on my links, and b) a lot of people drop by my site every Sunday thanks to that link.

I dropped my editor a note apologizing and alerting him to the issue (apart from everything else, it also broke the layout on that page). Which is a start, but there’d be a few hours until he saw my email (remember, this is Sunday). And in the meantime, there’d be a lot of people clicking and saying “Wha’a?”

What I wanted them to do was click and be taken instantly to the original link. To do that, I needed to set up what’s known as a redirect – an instruction to my web server saying “If anyone tries to load that screwed-up address, take them to the real address instead.”

And ideally, it should be a particular kind of redirect — a 301 redirect, to be technical — that tells search engines, “This item has permanently moved to this other location.”

I could have done this by editing a file in my site’s folder named the .htaccess file, which has a series of instructions for the server covering everything from memory allocation to redirection. There are plenty of great tutorials on how to do exactly that.

But that’s a little cumbersome (especially because this happens just infrequently enough that I have to relearn how to do it every single time). And as a WordPress user, I’ve grown accustomed to talented programmers creating great plugins to solve nearly every technical issue that might come up.

Which brings me to John Godley, and a great little plugin called Redirection.

The Redirection plugin allows me to deal with a whole slew of issues. Had to change my permalink structure because of a plugin update? I can take care of it with a few clicks and keystrokes, permanently redirecting traffic from the old URLs to the new ones. Discovered a bunch of frequent 404 errors from someone’s mistyped URLs? Fixed! And I can see all of my redirects at once, group them however I want, and see just how much traffic each one has diverted (read: “just how much traffic Redirection has routed to the right destination”).

It’s great, it’s free, and it saved a lot of people from thinking ill of me tonight. Check it out.

Updating this plugin (just killed my site) (a WordPress song)

So I saw this from Alex a few minutes ago:

I have a shiny toonie for the person to write, record & upload a song called “Upgrading this plugin just killed my site.”Tue May 17 17:19:34 via HootSuite

I’m comping you, sweetheart.

Upgrading This Plugin (Just Killed My Site) (43 s)

And here are the lyrics:

I searched high and low down on WordPress dot org
looked for advice on the forums and boards
Decided the new version would work just right
But upgrading this plugin just killed my site

Just killed my site!
When my traffic was doing so well
Just killed my site!
A single click sent the whole thing to hell

I dove in deep, and I launched Sequel Pro
Oh holy crap – where did my database go?
Looks like I’m going to have a long sleepless night
Cos upgrading this plugin just killed my site

Just killed my site!
When my traffic was doing so well
Just killed my site!
A single click sent the whole thing to hell

 

Toolbar and internal linking make WordPress upgrade compelling

If your site uses WordPress software (as opposed to the hosted WordPress.com site), then you may have heard about the latest upgrade, released just today.

Version 3.1 offers the usual range of improvements – faster this, debugged that, more secure the other – but at first glance, two new features stand out from the pack.

The first is the new toolbar that you’ll notice on top of your blog:

WordPress 3.1 toolbar

Only site administrators will see the toolbar; visitors just see the same old blog. And it offers several commonly-used admin features that may mean it’s a long time before you feel the need to visit that admin dashboard again:

  • The menu under the user name lets you manage your profile, visit the admin dashboard or log out of your site.
  • The “Edit Post” button lets you do just that with the post currently displayed.
  • “Add New” lets you create a new post, page or custom post type.
  • “Comments” takes you to the comment moderation page, and displays the number of comments in the moderation cue (if any).
  • “Appearance” lets you edit your widgets or template.
  • “Shortlink” serves up a wp.me-style abbreviated URL that will redirect to the current post.

And that little graph on the right? That’s your traffic over the past 48 hours… and if you’re the kind of person who needs to glance at your stats hourly to see if there’s been a sudden surge in interest, this could save you a lot of time.

Which is ultimately what the toolbar is about: saving time. It won’t change the way you blog, but it will make administering your blog a lot easier.

What may change your blogging more profoundly is the second big feature: easy internal linking. When you click the “link” button in WordPress 3.1′s visual editor, you see this dialog box:

WordPress 3.1 link dialog with internal linking

You can scroll through recent posts and pages (the box refreshes with older content when you scroll to the bottom), or search by keyword.

If you’re like me, and would like to link to other posts on your blog but feel daunted by the disruption to your writing process (open new window, load up blog, search for post, copy URL, close window – oh, hell, no, not that one!), this feature is heaven-sent.

We find ourselves recommending WordPress frequently to folks who’d like a site that’s relatively easy to set up and theme and has some content-management muscle, but who don’t need something as powerful as, say, Drupal. With version 3.1, WordPress has helped to keep themselves at the top of our list of great social media tools.

Toonblogging on the iPad

I’ve posted my final cartoon from BlogWorld 2010. It was my most ambitious toonblogging session yet: three straight days of wall-to-wall coverage. (You can check out the results here.)

Nearly all of it was on the iPad, using a Griffin stylus and Autodesk‘s SketchBook Pro. It’s a powerful combination, and the turnaround time can be incredibly short: once I’ve drawn the cartoon, I export it to iTunes on the iPad, sync it to my laptop, drop it into a Photoshop template, play with the text, export it to a PNG file, and post it via WordPress. That’s maybe 15 minutes from putting down my stylus to posting the finished image.

Could it be faster and better? Yes, actually:

  • The process of exporting to iTunes and syncing to my MacBook Pro is unusually convoluted for Apple. I’m hoping iOS 4.2 will finally bring a more streamlined, rational file management system to the iPad.
  • SketchBook Pro is wonderful, but adding a text tool would make it painfully cool. Add in a template feature and the ability to import fonts from my MBP, and I could circumvent Photoshop completely.
  • While we’re on the topic of SketchBook Pro, two or three more features that would make a huge difference:
    • Scrollbars or something similar when you’re zoomed in, so you have some idea of where you’re drawing, and how much room you have left
    • A larger canvas, so I could actually start creating something that approaches print resolution
    • Palm exclusion, so I can rest my hand on the surface when I’m drawing with a stylus
  • If I could figure out a way to upload the image to WordPress from my iPad (for the time being, hosting it elsewhere doesn’t really work), along with these other steps, I could skip the laptop completely. Some kind of “upload from DropBox” plugin for WordPress, perhaps?

But set aside that wishlist for now. I had a great time, I cartooned like a madman, and I met some terrific people as a result. Thanks for having me, BlogWorld!

Enhanced by Zemanta

WordPress and Thesis: How to make a drop-down menu with post titles

Alex has adopted the Thesis template for WordPress over on her blog, and I have to say they should be proud of what she’s done with it.

Thesis is a WordPress theming system that allows users to do a huge amount of customizing without having to do much or even any programming… but if they do want to crack open the nearest O’Reilly book, well, Thesis is happy to accommodate. And Thesis has recently added new feature that makes it dirt-easy to create an automatic dropdown menu from nested pages or nested categories. But what if you want to do something a little more ambitious?

Alex wanted to have a menu of selected categories, and have the titles of the three most recent posts in each category drop down when you roll over it.

Here’s the effect she’s going for (there’s still some styling work to do, but you get the idea):

So how did we do it? By inserting this snippet into the custom_functions.php file:

I owe a debt to gjchandler, who posted a code snippet I wound up adapting for the submenu.

While I do get to jump into PHP pretty regularly, it’s usually pretty linear, and I don’t often work with arrays and loops. So this was a lot of fun. And I’d love to hear if it works for you

(Just remember: unless you’re using Thesis version 1.6 or above, you’ll get the whole list in your menu for every category item, and kaboom goes your layout. Yikes!)

Reblog this post [with Zemanta]

WordPress upgrades: vroom!

That was easy. Maybe a little… too easy:

WordPress automatic upgrade log

I believe there were three clicks involved, but I may have miscounted.

It may have only been two.

Which is awesome, and will be great for ensuring people quickly plug security holes. But you’re really trusting that they have security locked down with the automatic upgrade process itself.