folderblog
What is folderblog?
Folderblog is a free PHP script that automatically displays the images placed in a given directory, no database needed. It can be used as a blog or gallery — and anything in between.

» demo blog   » learn more   » download now

Discussion
reversing order of thumbs in archive(back to index)
any idea on how to do this? i want to have the latest image come first. ie. newest to oldest... in stead of oldest to newest. i've poked around a bit and havn't found anything that will let me do it, but maybe i'm missing something obvious. thanks!
posted by stephen on 5 Aug 05 at 9:39 AM
I don't think there's a defined variable in settings, so you'd probably have to go and edit pb.php directly. How are you at php?
posted by Daniel Sroka on 7 Aug 05 at 7:38 AM
i also think that this would be a nice option. it seems to make sence that since the most recently upload photo appears 1st... so should the most recent photo be 1st in the thumbnails list.
posted by pogo on 7 Aug 05 at 7:47 AM
not strong in php i'm afraid, but i found an earlier thread where the same question was asked and donald's reply was to add the line '$files = array_reverse($files);' on line 431 of fb.php. i attempted to do this but there doesnt seem to be any reference to thumbs around that part of the code. maybe it's in reference to an earlier beta version. any ideas?!!
posted by stephen on 7 Aug 05 at 10:40 AM
i'm gonna take a crack at the hack. if i'm sucessfull, i'll post the result here.
posted by pogo on 7 Aug 05 at 11:48 AM
That works... to a point. It also means that your labels "next" and "previous" will work backwards, and that the image that is shown will be the first one you posted, not the latest.
posted by Daniel Sroka on 8 Aug 05 at 2:20 PM
As stated, this is not possible without editing the PHP code. The hack mentioned I think replies to a much earlier version of folderblog.

This may be a Western-centric concept but the archives are ordered the way the are because left intuitively represents "older" while right intuitively represents "newer" (think of a timeline). The oldest photos in your folderblog (whether $reverse = 1 is toggled or not) are always on the left (on the menu as well as the main page), and the newer photos are always to the right.
posted by donald on 19 Aug 05 at 1:39 AM
yeh, good point. but in terms of a photoblog i would like my archives to operate the same way the actualy blog does - newest to oldest. i see plenty of photoblogs that do it and it just seems logical to me. if i were to add that hack, where would i put it in the latest beta release? sorry, but i'm not too strong in php.. thanks for your help.
posted by stephen on 21 Aug 05 at 3:27 PM
i can't wait for someone to hack this. i haven't had time for it, but if anyone does.. post a link:)
my mind still hasn't gottin used to seeing "oldest first" in the archives and "newest first" in the display.
sdrawkcab is it.
posted by pogo on 26 Aug 05 at 11:44 AM
stephen, the code you're trying to modify is around lines 490-511 or so. Offhand, I'm not sure how complicated this would be in fb3.
posted by donald on 30 Aug 05 at 1:01 AM
Post a Reply:

Name:    Remember me
URL:    
(include http:// or mailto:)
(back to index)