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
managing themes - a tip(back to index)
I hadn't seen this suggested but I only began learning fb a couple days ago, but here's a tip to manage themes:
create a themes folder: e.g 'themes'
put your theme files in there, including any image files, but not extension files! - they must go in the extensions folder
Instead of setting your theme in fb_settings.php to 'relaxation' or 'almanac' or whatever, set it to 'themes/relaxation' or 'themes/almanac' -- where themes is the name of your themes folder. You could also script this so that fb automagically looks for your theme name in your themes folder, but this works just as well.

Just a small organizing tip, that I hope may be considered for future releases of fb. Cheers.
posted by geoff on 9 Nov 05 at 4:41 PM
In which way should this be integrated into future releases? What you described is just a handling issue of the existing code, not really a change of function. One could advise folderblog to automatically look into a themes folder for its templates, but this doesnt make that much sense as I dont think there are many people around having that many scripts that they would loose oversight in their main fb directory. Correct me if I am wrong. ;)
posted by ikue on 10 Nov 05 at 2:24 AM
I find it cumbersome with even two themes in the main directory, given that each would have an archives, main, settings and comments php file as well as a css file and a folder of images -- five files and a directory per theme.

As I said, it's a small fix to work this: just prefix your theme with your theme directory in fb_settings.

I don't see any special function needed and no, anyone who'd ever keep more than one theme handy would need to push theme files into a directory.

So perhaps not hardcoded into any release but a suggested tip might be handy in the settings file. Or leave it here. Maybe nobody else thinks this is a good idea. Perhaps I'm bonkers.
posted by geoff on 10 Nov 05 at 3:36 AM
I also like to have templates in a separate directory just to keep things neat. All that is needed in my opinion is a simple commented hint next to this setting in the fb_settings file.
posted by Denis Heraud on 10 Nov 05 at 8:21 AM
Exactly
posted by ikue on 10 Nov 05 at 8:34 AM
Post a Reply:

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