I've finally finished the IPD attachments system (which will likely come to IPB 3.0 along with the new RTE) and I'm pretty pleased with it. I've spent a lot of time on the interface to allow one to make multiple uploads without leaving or refreshing the current page. I finally went with a scripted solution that manages an iFrame. It's at this point that someone (yes, you Dean) says "Hey, why not use AJAX?". Well, for one - there wasn't the need to do so. An iFrame suits this job perfectly and degrades nicely when javascript is disabled. If I wrote an AJAX engine for the attachment system, I'd have either had to accept that non-AJAX equipped browsers (admittedly very few) couldn't upload files or create an iFrame alternative. Secondly, lets only use AJAX when we need to, OK?
As you can see from the movie below, the result is pretty seamless and - paradoxically - you wouldn't know that it was an iFrame unless you read this blog.
The attachments system in IPD is another little framework that accepts 'plugin' modules to the main attachment class to generate permissions / file size restrictions. This means that I can quickly add the attachments system to any area of IPD just by adding a bit of HTML mark-up (and the relevant JS loader) and a little plugin class. The rest is handled by the attachments framework.
There's a bit of tidy up to do. I'm thinking of changing the colour of the status bar if an error is reported and adding the number of stored attachments to the drop down box title: "Manage Current Attachments (4)" to make it obvious that the page / article / whatever already has attachments.
IPD Attachments (3.1mb Quicktime .mov)
As you can see from the movie below, the result is pretty seamless and - paradoxically - you wouldn't know that it was an iFrame unless you read this blog.
The attachments system in IPD is another little framework that accepts 'plugin' modules to the main attachment class to generate permissions / file size restrictions. This means that I can quickly add the attachments system to any area of IPD just by adding a bit of HTML mark-up (and the relevant JS loader) and a little plugin class. The rest is handled by the attachments framework.
There's a bit of tidy up to do. I'm thinking of changing the colour of the status bar if an error is reported and adding the number of stored attachments to the drop down box title: "Manage Current Attachments (4)" to make it obvious that the page / article / whatever already has attachments.
IPD Attachments (3.1mb Quicktime .mov)


Create a custom theme







