The Quick & Dirty:

  • 9+ years in the biz, 10 messing around
  • All the latest in HTML, CSS, JS & PHP (Sorry, no .net or Ruby skills yet)
  • Cross-browser compatible code from Photoshop or Illustrator files.. or napkins!
  • Custom Specialities in Wordpress theming & plugins, Twitter & jQuery
  • Subversion, server-log analysis, and blocking hack-attempts (of late).
  • Data/Project Geek. I ♥ timelines.

I’ve compiled some handy PHP functions I’ve had to whip up. More extensive code-samples are also available.

Wordpress-from-Photoshop/Illustrator

Wordpress-from-static HTML

Wordpress-from-Photoshop

My New Job’s Job: Plugin & Bug Fixer

While my “job” is building websites per a designer’s spec, there’s another part: support. I don’t mean supporting old websites; I mean time spent supporting the one I’m presently building.

When the spec would indicate a need for multiple attached images, with title & styled caption (more than just a plain-text-caption), what am I to do? WordPress doesn’t exactly support that, and no plugin really does this. Enter my job’s job.

Attachments

Lately there’s been a few plug-ins I’ve been “fixing”, but today brought “Attachments” from MondayByNoon. There are a few “holes”, in particular, how it seems to use it’s own attachment-system (not WP’s own attaching system). While there may be good reason for this one, and it’s minor-enough-for-me now, I really needed styled captions.

So here’s the new package: attachments-1.5-custom.zip

And here’s just the edited files: attachments-edits.zip

And this is approximately what I did:

  • Attachments.css: removed a single “height:115px” reference, to allow for a larger textarea
  • Attachments.php:
    • changed <input type=”text”> into <textarea rows=”10″ cols=”37″>
    • htmlentities() for the $_POST['caption']
  • Attachments.js: also changed the <input type=”text”> into <textarea>

I think & hope that’s it.. seems to be working!

Rounded Corners

Jquery.corner.js is a handy package, but for all the IE6′s that I’ve been testing it on, there’s a bug. Whatever method of rounding that is used (I think it’s a bunch of 1px div’s), it stops 1px short of the bottom on some elements. I seemed to be div’s without a height (height=auto). So here’s my fix: jquery.corner-custom.js

It’s around line 170, add this in:

if($.browser.msie && $.browser.version < 7) ds.bottom = '-1px'; //in IE6 only!!

So that’s two of the many done/to do.

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Posted in codeRelease, jQuery, life-of-a-geek, wordpress, wordpressCode Tagged , , , , , 2 Comments

2 Responses to “My New Job’s Job: Plugin & Bug Fixer”

  1. Wes says:

    Cool. Should I use this custom version for the Quest site?

  2. m.wallace says:

    I like Attachments, it does much as the Quest site did/does, but since Attachment’s attaching-method isn’t the same as WP’s, you’ll likely have to re-attach.
    So yes, I say go for it. But one-line mod of the template will be needed. I’ll be nice enough to do that pro-bono, since the one I made isn’t so functional. But I’m pretty sure you’ll still have to use the “update” button on the post/page.