# Blosxom Plugin: favorites -*- perl -*- # Author(s): Steve Schwarz # 2006-JAN-15 0.1 initial version. # Generate unordered HTML list of most visited pages. # Requires data file generated by the hitcounter plugin. package favorites; # -- Configuration -- # # Name of file holding hash of paths and their current count. # This file is created by the hitcounter plugin my $file_name = "$blosxom::plugin_state_dir/hit_stats"; # How many URLs to include in $count my $num_entries = 10; # Include hit count with URL? my $include_counts = 1; # set to 1 or 0 # Include directories/categories? my $include_categories = 0; # set to 1 or 0 # Format of URL in output: # 1 - only last portion of path in anchor name # 2 - full path in anchor name my $anchor_format = 2; # 1 or 2 # Wrap URL with # 0 - text isn't wrapped with an anchor # 1 - text is wrapped with an anchor my $anchor_link = 1; # 0 or 1 # Array of URL regexps to exclude from the output my @excludes = ( '^\/$' ); # i.e. exclude root # Array of URL regexps to use to group results into