Once More... a farce in many parts. A comedy in others.

Daily Links for May 18th

Posted on May 18th, 2007 / comments

Daily Links for March 2nd

Posted on March 2nd, 2007 / comments

Make Tabs Work Wordpress Plugin

Posted on April 26th, 2006 / comments

That code from bitprophet that makes tab key presses work in textareas was tempting me, so I made it into a wordpress plugin. Download it, or or see here for more info about how to install and activate a plugin in wordpress (this is sounding familiar…). The plugin adds bitprophet’s javascript code to the post editing page as well as the template/plugin editor.

My first wordpress plugin

Posted on April 26th, 2006 / comments

Hello, world! I wanted a tag cloud (because, like mullets, they are just so damn sexy), and I also wanted to play around with writing a plugin, so I made it so. Download the plugin itself, or see here for more info about how to install and activate a plugin in wordpress. To use the plugin, simply put <?php echo category_cloud(); ?> wherever you want the cloud to appear. Here’s an example of its output:

aprilfools bloglines charlotte code dailyfluff del.icio.us design fame firefox flickr goog greasemonkey hacks links php projects sql travel typography voxgoogli wanking webdev widgets wordpress write. yahoo

Still awesome

Posted on March 27th, 2006 / comments

So I fixed my problem with wordpress’s blogger importer script with one line of SQL and a fairly simple PHP script. Being a complete SQL n00b, I backed up my database first anyway. Here it is: SELECT ID, post_content FROM wp_posts WHERE post_title REGEXP '[0-9]{18}' That was it. I’m starting to like this stuff.

I am awesome

Posted on March 20th, 2006 / 2 comments

That ‘Daily Fluff’ entry is the result of a script I wrote. It pulls my photos and favorites from the Flickr API, my links from the del.icio.us API, and when webcron tells it to run, turns all that into a post on my blog. I’m eventually going to add items & reviews from my junklog account, as well. This took me two days to do, primarily because I was at first trying to use Wordpress’s XML-RPC interface to create the post, with very little in the way of success, until I realized I was being stupid. It is much (much, much) easier with a db-driven app like wordpress to just insert the post directly into the database with PHP. Of course, I had to learn how to do that first.

In other words, yes, so far I’m having fun with wordpress. <glee>

Wordpress is the new orange

Posted on March 19th, 2006 / 2 comments

Yeah, I converted, and it was crazy easy with the importers they have now. Beating this beast into a form more pleasing to myself, though, is going to take a bit longer.

Already I don’t like that all of the posts I imported without a specific title defaulted to their unix timestamps. I found a couple of places where I was able to hack it into displaying something else instead of the ugly 18-digit number, but I’ve yet to find the silver bullet that will fix this problem everywhere titles show up in wordpress (which is a lot of places). If anybody could point me at the specific function in wp, it’d be appreciated.

One success story so far is that I got category lists to use proper grammar. This is why below you will see this post is tagged “wordpress, hacks and php” instead of “wordpress hacks php”. The relevant function is get_the_category_list, ask me how if you’re interested. And yes, I really am this anal about small details like that.

Further updates as events warrent.