Simmons Consulting, the Website of Toby Simmons

Integrating WP in external PHP pages

24
Jun

I have several external pages that use the WP theme engine to wrap the content. I use the method found here, which worked great under WordPress 2.9.2. After upgrading to WP 3.0, these pages no longer worked as expected but instead generated 404s; it turns out the fix is rather simple.

(more…)

WordPress Can Guide Missiles?

14
Jun

This is just so funny!

http://www.viper007bond.com/2010/06/12/so-apparently-wordpress-can-guide-missiles/

WordPress and duplicate sites in stats plugin

18
Jul

I use the WordPress.com Stats plugin on my blog. It is great for generating basic traffic statistics. When I upgraded my WordPress version to 2.6, something happened during the process to create a duplicate site in my stats drop down. The biggest problem is that all my old stats are associated with the original site, while all my new stats (from 7/15/2008 forward) are being pushed into the new site. (more…)

Running a WordPress blog in site root using IIS

21
Apr

Up until recently, I had never been able to setup a WordPress blog as the root of a web site under IIS. But I have discovered the secret and have recently changed my own site so that my content no longer shows up under a “/wordpress” directory but instead in the root.
(more…)

Fiddler2 and Bad Behavior

10
Apr

If you have ever had to debug HTTP traffic, you probably already know what a great tool Fiddler2 is. I was recently using it to debug some WordPress 2.5 issues I was having with a test blog and noticed I was getting an odd error returned from the web site: Error 403
(more…)

WordPress 2.5 file uploader and IE7

29
Mar

So, you just upgraded your WordPress blog to 2.5 and you excitedly go to the admin screen to check out the new vaunted multi-file upload with progress bar. You click on the Write tab then click on any of the “Add Media” icons. The screen dims a bit then you are presented with … not the super-sexy, swfupload-based multi-file uploader but instead a dull, a simple, single file upload form and a script error. Why? It’s because you are running IE7. Fortunately, there is a pretty easy fix (that appears to be planned for 2.5.1) There are just two commas that need to be deleted, in two different files.

The first fix is in the file wp-admin/includes/media.php … down at line 817, delete the comma …

Change this:

  1. debug: false,

To this:

  1. debug: false

The next file to edit is wp-includes/js/swfupload/handlers.js … down at line 99, delete the comma right after the number 36 …

Change this:

  1. .animate({minHeight:0,height:36,}, 400, null, function(){jQuery(this).children('.describe').remove()})

To this:

  1. .animate({minHeight:0,height:36}, 400, null, function(){jQuery(this).children('.describe').remove()})

That’s it! The fancy multi-uploader now works in Internet Explorer 7!

Daylight saving time and WordPress XMLRPC

29
Feb

Zempt is a desktop blogging client and writing tool that is especially useful for those that have multiple blogs. It enables you to write, edit and spell check new blog posts as well as edit previous blog entries by downloading, editing and reposting them. Having been involved with the Zempt project for five years (and being the only developer for the last two or three) I am pretty familiar with some of the issues that can come up with remote editing of blog posts.
(more…)

WordPress, IIS, timezone auto updating!

04
Feb

Most folks running WordPress use some flavor of Unix/Linux and Apache. If you are like me and run WordPress on IIS, it can be frustrating at times because you tend to feel a bit like a stepchild. There are several cool plugins for WP out there, but many just don’t run on Windows, at least not without heavy modifications.
(more…)