Image Magick detection bug in Drupal 6

The main details of this error can be read in more detail in the original post I found this fix on. But I'll summarize here as well. While Drupal has access to execute Image Magick's convert function in an area outside php's open_basedir security restriction, it can not open it. The imageapi_imagemagick.module's functionality check doesn't test first for execution, it tries to open the file. Leading to a working Image Magick install to appear faulty. The fix was listed here: http://drupal.org/node/608270.

Tags: 

Limiting Textarea Length

I thought I'd share a sort of plug and play solution to text area length controls that I've been abusing. All credit here goes to Roy Jin, the original developer. I just thought I'd share what a good tool it was, and the $(document).ready() code you need to be up and running. You can pick up the jquery Textarea Counter on his site, as well as look up docs for tweaking things.

Post from Form inside Form

I've got a mass edit form for orders on one of the sites I work on. But each order needed link or button to track the shipments of that order using UPS. Well, today we added FedEx tracking as well. UPS was easy, they do everything via url, so a simple link worked fine. FedEx, not so much, you have to post everything over to them. Obviously that creates a sort of form within a form, and that's not valid html. Javascript becomes required, here's your setup:

Tags: 

Javascript Global Regex Match

I needed to do a case insensitive, multiline, global regex (/img) over some html. The matches kept coming back wrong using $.each() and Mozilla's directions. The while loop on the Mozilla docs site didn't work for me, every time it returned match as "true." That's no help, of course. So, a do while loop instead, and all is well.

Pages

Subscribe to Fragmented Thought RSS