AlternateSortingHack
This hack works for versions of folderblog 1-2:Folderblog comes with 3 options for sorting built into vars.php: sort alphabetically, by date added, and don't sort. However if you have your photos named 1, 2, 3, 4 ... 11, 12 etc and sort alphabetically the pictures will be displayed in the following order:
1 ,11,12,13,14,15,16,17,18,19, 2 ,20, 21 ...
If you have named you files as such you will need to sort by date added, that works beautifully until you edit one of you older photos and reupload it, that photo will now appear as most recent regardless of its file name number. There are two hacks to solve this: rename your files adding two '0' to the front so you'll have '001.jpg' and '012.jpg', but this can take ahwile especially if you have a lot of images. The second way is to alter the foldeblog.php code. Open up the folderblog.php page in your text editor and change line 29 of the code to:
if($sort>0) ksort($files, SORT_NUMERIC);
upload it, select 'sort alphabetically' in vars.php and you're done.
Thanks to donald for the hack code. One thing you have to remeber is to update your folderblog.php page every time you change versions, hopefully this will still work in v3!
Last edited February 23, 2008 at 10:51pm.(edit this entry)