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
in FB2(back to index)
<#fbmemberof#> Categories to which the image belongs

Is there anyway to get this function working in FB2? I found the $catlist section in the index.php, is there a way to modify this so that the tag will call up the category of the image?
posted by Jason on 11 Jul 05 at 3:07 AM
Add the following after line 115 of folderblog.php/index.php:
if($cats=@file("categories.txt")) { 
 $fbmemberof = "<ul class=\"fbmemberof\">"; 
 while($thiscat = array_shift($cats)) { 
 list($dir,$catname)=explode(" ",$thiscat,2); 
 if(file_exists("$photo_directory$dir/$image_name$file_extension")) $fbmemberof .= "<li>$catname</li>\n"; 
 } 
 $fbmemberof.= "</ul>"; 
}
$tags+=array("<#fbmemberof#>"=>$fbmemberof);
posted by donald on 14 Jul 05 at 2:10 AM
Post a Reply:

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