DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

bored and blogging » wordpress

Finally Upgraded to WordPress 2.3.1

planetubuntu, technology — Tags: , , , , — boredandblogging @ 3:54 am

I’ve been avoiding updating this blog from WordPress 2.2 to 2.3.1. Not that I had made so many changes that would make upgrading difficult, but I just didn’t want to deal with the hassle. Picking a theme was tough enough for me, but I needed to upgrade with all the security fixes coming out.

I finally sat down and went through the process.

Boy, was it easy.

It took longer to download and unzip WordPress and the plugins than doing the upgrade. Having used the Ultimate Tag Warrior to tag all my posts, I was afraid the new tagging functionality in WordPress would screw it up. Instead, the WordPress tag import worked flawlessly and I had no changes to make. There were updates available for all the plugins and those upgrades went smoothly.

No wonder Movable Type is eager to go open source.

Creating AdSense Widgets in WordPress

technology — Tags: , — boredandblogging @ 1:00 am

Recently I attempted to create a WordPress widget for an AdSense Firefox referral image ad in a widget-ready theme. I was quite surprised how easy it was. It may not be the best code ever, but it got the job done. Here is a quick run-down of how I did it.

Assuming you already have the Google AdSense unit code, create a file like <root directory>/wp-content/themes/<specific theme>/widgets/ff_ad.php and put your unit code in it. You will probably have to create the widgets directory under your specific theme. So the AdSense code in ff_ad.php should look something like this:

ff_ad1.png

Then in the <root directory>/wp-content/themes/<specific theme>/function.php, add this:

functions.png

At this point, the widget should show up in the list of available widgets for the theme.

Thats it.

WordPress to Movable Type?

technology — Tags: , , , — boredandblogging @ 7:35 pm

Nope, I’m not moving my blog to Movable Type, but I have been interested in trying out MT 4.0 beta since it is going open source. FYI, MT 4.0 was supposed to go final yesterday, but the power outages in the San Francisco area has delayed the release, so I tried out MT 4 Beta 7.

WordPress is known for its ridiculously simple 5-step installation. MT was pretty much the same. After unzipping it and pulling it up on the browser, the only real information I had to put in was for the database.

Movable Type 4 Beta 7 Database Setup

The next step creates an user and then you are presented with the dashboard:

Movable Type 4 Beta 7 Dashboard

I’m not sure I really like the interface, but it has the relevant options, just scattered around a bit. I wanted to try out MT with some real content, so I used a script from codemonkyramblings.com to export this blog into something MT could import. Instructions for using the script can be found in the comments here.

Movable Type 4 Beta 7 Importing from WordPress

The import itself wasn’t perfect, but it moved over all the published and drafts ok. Unfortunately, that doesn’t automatically display the posts on the blog yet. Instead, the site needed to be “published.”

Movable Type 4 Beta 7 Publishing Content

Changing some of the styles also required the site to be republished, but posting a new entry did not, so I’m a bit unclear on when republishing is required.

There are a couple things I noticed. First, the MT site definitely seems to load faster than my WP blog (yes, I do have WP-Cache installed and both blogs are in the same DreamHost account). Maybe the publishing creates static pages, but there is a performance difference. Second, OpenID is an option without any needed plugins. Christer Edwards and Aaron Toponce have discussed enabling OpenID on WordPress blogs here and here.

Finally, the end product is located at http://boredandblogging.com/mt-4-beta-7-test-blog/. All my text formating seems to have disappeared, oh well. Feel free to muck around on it.

Movable Type 4 Beta 7 Test Blog

Would I consider moving to it? Not at the moment, but I’m really interested in seeing if the open source MT community will be as vibrant as WordPress’s has been over the years.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2008 bored and blogging | powered by WordPress with Barecity