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.
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
- 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!
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.