First foray into a Drupal Module

Find attached “Galleria” which is the gallery solution that I came up with. Some features:

  • Drupal 5.x
  • Thumbnail ribbon with image caching
  • Image scaling
  • Upload image files and zip files
  • Comes with a block function to allow “last updated” or “last created” view of galleries
  • Control over user content (in other words, you don’t have to let users create galleries)
  • Uses Drupal content types for nodes, so hooked into the whole node system
  • Sorting and captions
  • Click viewing image to see original
  • Filenames are retained

There are more features, so have a look at the initial sample gallery I uploaded. There’s probably the odd bug or two, but I tested it with IE 7 and Firefox 2. I’m upgrading my Mac, so Safari testing will follow.

If you want the module, it’s attached. The license is simple: do what you want with it and I’m not responsible for any problems resulting from the use of it. If that works for you, feel free to download. If you find any bugs and/or want to share enhancements to it, please drop a comment on this posting.

Galleria

My kingdom for a C++ date parsing library that can tell me if the user supplied the time

I don’t know if I need to do something so bizarre that nobody thought of it before or everyone just shrugged and worked around it. Basically, I want to take user date input on a form, parse it, and know if they supplied the time portion, date portion, or both. Lots of libraries will parse it without both parts being present, but then they default them. For example, the COleDateTime object in Windows will handle a string that contains date, time, or datetime, but you can’t really tell what was supplied. I mean, you can accept that people are unlikely to have entered Dec. 31, 1899 for a date and so can make some assumptions, but time is not supplied, it defaults to 00:00:00 (midnight) and there is no way to tell if it is because that was what was entered or if it was just not supplied.

I suppose I could write my own, but that’s a major undertaking since it needs to support internationalization, many languages, etc. That’s a big piece of code. Much bigger than I have time to do. So… My kingdom (which is, admittedly, pretty tiny) for a library that can do what I need.

Opinionated Photography