what do you think about it? suggestions?
I think this would be quite handy, so users can build their own galleries or even some kind of simple message board using text files.
Maybe there could also be a new image type, something like \~img_file, for example ~img_thumb which would give a thumbnail or the normal image if not an image file type.
But generating thumbnails can be long, so this would again be an example for a multi-threaded response-generation.
I made a gallery-supporting template using some javascript:
var prm=wl.substr(wl.lastIndexOf('?')) .toLowerCase();
var showPics = prm.search(/pics/)>-1;
showThumbs = prm.search(/thumbs/)>-1;
and below the listing I added
<a class=little href='%encoded-folder%'>Normal</a> -
<a class=little href='%encoded-folder%?pics'>Preview</a> -
<a class=little href='%encoded-folder%?pics&thumbs'>Thumbnails</a>
And depending on the values of the variables I built different HTML using document.write(), but having such features already in HFS would really be great, as this client-side thing is quiete slow!