tricks

Quick'n'dirty image browser with jQuery and imagecache

For one of our upcoming extensions on emito.net we are introducing a very simple image browser. The idea is that images are attached to a node via file upload and we give the user a very simple interface to browse through them, without leaving the page, loading slow thickboxes etc.

The user is presented with one larger image, and many thumbnails to chose from.

Our solution is very simple, can be handled with theming + a tiny script.

Removing em tags from drupal messages

I was working on an XML tester module for a colleague of mine when I discovered a small XML server bug in Drupal (namely this issue: http://drupal.org/node/231132). The problem in question was that in core we use t() function to print the error messages into the returned XML, thus enabling localized errors. This would be cool, but until now the error messages had a placeholder in them, to print the variables. Using the '%' placeholder, all the variables got a tag around them, and so the parsing failed when reading the returned XML.