Archive for the 'code' Category

godmode

I recently received an email from Matthew M,
aka somefool, who writes:
“Ive been playing with Admin Strip, the look and also a few little minor tweaks, including Moderate and Akismet [which] dont display if there are no comments to moderate or no spam in Akismet.”
I’ve checked out the mans work and it, well, rocks - […]

how not to save curled content

If you happened to notice odd on-off-on-off formatting changes to the foo’s remaindered links, you weren’t actually seeing things.

You see, there’s yet another safety feature in wordpress 2.1. That being the ubiquitous add_filter, via the kses.php sitting in wp-includes. Allow me a moment to set-the-scene, as it were, so you have at least some reference point:

I have a handy (and somewhat hacked) php script that pulls in del.icio.us links and injects them as entries. It parses the RSS feed, generates a snazzy (and pre-formatted) array and injects each bookmark as an entry. I even parse in the associated del.icio.us tags to map as entry tags.

And it all works remarkably well — submit a bookmark to del.icio.us and the script takes care of the rest. Until one uses curl, or wget.

admin strip 2

I’ve been using an admin bar plugin for some time now, which sadly hasn’t been particularly friendly under wordpress 2.1.

Thus, I present to you Admin Strip 2, the rejuvenated version of the wildly successful admin bar.

admin strip part deux

RSS Signature release

In order to better track changes to the plugin code, I’ve started a google code project - check it out for more details

From the ashes of sig2feed, comes RSS Signature ((.. insert dramatic music, here.)), which should happily function in Wordpress 2.0.x and above (including the shiny new 2.1.0 release).

I would recommend the update, due in part to some code clean-up ((..not to mention the sexy new plugin name ;) )), combined with the options panel moving under ‘Manage’ in the Wordpress admin interface.

beyond the_post()

go beyond the_post()

There are times where the standard wordpress loop, is a simple, effective and well documented solution to generated a page, or a series of posts. It safely hides all the mySQL query language away in reusable, modular PHP expressions and can be called at the drop of a hat, as needed.

However, it’s downfall is that it’s based on grabbing n amount of posts based on the options set — which then requires expressions run against the results to further prune out unwanted data, such as excluding a post based on a category, or date. This, then, creates a scenario whereby there is a sizeable performance hit as the wordpress db is hit with, for example, a request for 10 entries, of which some may be thrown out during the_post() loop.

sig2feed goes beta

After the amazing demand whipped by by
sig2feed, I’m pleased to announce it’s gone beta!
Code named ’snarf’ — sig2feed has had some small sections of code cleaned up, the admin panel is a little less, well, ugly and a new feature has been bedded down.
If you wish to add your custom sig2feed block on a […]

sig2feed - plugin released

New version released — please
read the latest update.

Good news everyone! I’ve
released a plugin! Aren’t I special.. ahem, anyway — read on for the juicy details.
The catalyst
So what’s this all about, then? Well, basically after trying several different methods to thwart the splogging community ripping off content and plastering masses of adsense advertising all […]