« back to folderblog
folderblogwiki

CreatingCategories

This information pertains only to folderblog 2.02.

Almost no one seems to understand how to make categories in folderblog. It's easy. HiMY Syed explained it some time back in the discussion, here is how:

Create a plain old text file with notepad etc.

The entire file should have one line of text for each category you want.
Each line of text should have a single word followed by a space followed by the full name of the category as you would like it to appear on your webpages.

The exact spelling of the first word in each line of text in 'category.txt' will match the sub-directory you will create in your ..root/photos/ directory.

Hence, your entire 'categories.txt' will look exactly like this:

animals Animals
people People

Upload category.txt into your ROOT directory.

And your directory listing should look like this:

/comments/
/photos/
/photos/animals
/photos/people
/thumbs/

In both subdirectories,
that is /photos/animals and /photos/people,
a blank file must be uploaded which exactly matches each of the file names of the image/photos that you upload into the main /photos/ directory.

For instance say you only want to create two categories, 'animals' and 'people'.

And you have two photos in each of the two categories, say

dog.jpg
cat.jpg

and

man.jpg
woman.jpg

you will upload all four photos into the /photos directory.

but you will also upload four blank files.

use notepad to create an empty file save as and/or rename it
dog.jpg, cat.jpg
then upload the dog/cat empty files into your /photos/animals/ directory.

Then Repeat.

use notepad to create an empty file save as and name it
man.jpg, woman.jpg
then upload the man/woman empty files into your /photos/people/ directory.

NOTE: the permissions of your /animals and /people subdirectory can be 777, or writable by the server to allow changes when you are using 'post.php' to update files into their new or changed or multiple categories.

YES, fb 2.0 allows us to classify a mermaid as both an animal AND a people but with only one full size image uploaded.

Your categories now exist, but may be invisible.

For your categories to appear, you will need to add the following line of code to your template_main.php file:

'Categories <#fbcatlist#> <br />'

[can someone please add more detail to the above line which needs to be added to the template_main.php?]

Enjoy your Categories.

placed by Lydus
minor updates by Method
"categories.txt" updated to "category.txt" by Cappuccino
Home  Index  Recent Changes  folderblog
Last edited February 23, 2008 at 10:51pm.(edit this entry)