# Blosxom Plugin: directorybrowse # Author(s): Matt Melton # Version: 0.1 # Home/Docs/Licensing: contact at http://my-security.net package directorybrowse; # --- Configurable variables ----- # Other parameters for the links # my $href_parameters = qq{ target="_blank" }; my $href_parameters = ''; # There are no more user configurable variables # -------------------------------- use CGI qw/:standard/; $browseable_path; sub start { 1; } sub story { my ($pkg, $path, $filename, $story_ref, $title_ref, $body_ref) = @_; $browseable_path = ''; my @tree = split(/\//, $path); my $urlelements = ''; my $i = 0; foreach my $element (@tree) { next if !$element; $urlelements = join('/', @tree[0..$i]); $browseable_path .= qq{ / $element}; $i++; } 1; } 1; __END__ How to use: Copy file to your plugin directory, as "directorybrowse", case sensitive. Find some thing looking similar to, [$path] in your story flavour, and replace with [$directorybrowse::browseable_path] instead. For my story.html flavour, I use the following (with my prettycomment plugin):

$title
$body

$directorybrowse::browseable_path - $writeback::count $prettycomment::wb_comment - permanent link

(please copy the house.gif to your own box :)