Please note: This site is now an archive, visit Atomic Ninja Labs for the latest content and updates.

~

Archive Page 2

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.

Both are simple text-mode commands to retrieve web pages. As I use a cron job to process pending remaindered links, it was a natural progression to keep things tidy via curl. Why are they so special, you ask? They aren’t. But WP 2.1 is. Confused yet? So was I.

Continue Reading »

broadleaf <3 wordpress 2.1

On the subject of updates - just a quick note to indicated broadleaf has undergone a minor revision and is now both 2.0.x and 2.1.x compatible. Twice the leafy love, half the fat.

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

Return of the orange monster

After a short hiatusthe orange powered ninja is back and is just as badass ((.. or is that just plain bad? :) )) as ever.

If you recall, I had been experiencing some issues with the wordpress function is_page() — in that it wouldn’t always return a valid value ((.. due in part to my craptastic coding skills and playing fast and loose with functions)) in the sidebar. After trying, once again to crack the is_page() puzzle, I was struck by a simpler, faster and stupefyingly simple alternative. You ready for it?

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 […]

revisionism of a theme

Smithers.. release the hounds!
My experience post creation and releasing a
certain theme goes a little something like this:

broadleaf is released.. time passes..
broadleaf is poked and prodded by quite a few folks.. time passes..
a bunch of issues are discovered and fixed.. time passes.
I read Lorelle’s
reminder on the joys of
oversized element content.. time pas.. oh […]

Release Candidate One

Broad leaf has gone release candidate
• masses of fixes and shiny new loop code that handles asides, or ’sides-less configuration.. get it while it’s hot! :)

Smart category exclusion

The scenario:
You want to exclude a category from being processed by a post loop, with posts in said category having more than one category1, keep wordpress db calls to a minimum2, no dropping of data after you’ve already hit the db3 and finally provide a set limit of posts.
The quest:
After a quick grep of
the […]

Seek and you shall not find

Whatever have you done to the wordpress.org
search, Mr
Matt ‘wordpress’ Mullenweg? It’s so very badly broken.
Once upon a time, in place not so far away, one could spend quite the merry sunny afternoon or cool winters evening searching
the codex for all manner of code goodies.. but not today.
Oh how I long for […]

a stroll down recovery lane

As has been noted by a few people now, smackfoo has experienced some issues issues recently with mySQL db corruption and severe post duplication.
This is yet another lengthy post, so if you’re reading this via your RSS reader of choice, you might want to check out the full post. :)
It’s amazing how quickly one […]