Comments enabled

Just hacked the folderblog comments support and integrated it onto the main viewing page (instead of a pop-up page as is default). I’m happy to say that this is the first time that I’ve used this much JavaScript and “dynamic” CSS. The comments menu is now very (well, okay, a little bit) Web 2.0 in that you must first click the comments link before it appears. I’m happy about this as I don’t want the main photo display site to become too cluttered.

Already I’ve added a few more fields that I didn’t really want. Instead of showing just a title, I added the comment field that folderblog supports. I will likely just be using this to display the location the photo was taken (as per the current two entries), and not much more. I guess it could come in handy for other things from time to time.

Actually, the whole comment dialogue needs tidying up a bit… by default folderblog doesn’t suppress the “view current comments” when there are none. Because of the way folderblog is designed, this sort of makes theming it a little difficult (this isn’t strictly true, it just means going against the model/controller-view design). I’ll get it sorted out later on though.

Only other outstanding issue I can think of is the odd rounding of the EXIF info—i.e. apertures of f/5.59999997 instead of f/5.6… and the truly bizarre shutter speeds that span days. I believe this is more an issue with EXIF export from Bibble than with the PHP EXIF support.

But anyway… get leaving some comments :)

Tags:

Leave a Reply