Nope - I am using it on search results....(and it works - just not with comma)
This is the code I use:
my $tags = shift;
my $total = $tags->{link_hits};
my $high = $Links::CFG->{search_maxhits};
my $low = 1;
my $page = $tags->{nh} || 1;
if ($page > 1) {
$low = (($page - 1) * $high) + 1;
}
my $top = ($high + $low > $total) ? $total : (($high + $low) - 1);
return "Viewing $low to $top of $total";
}Klaus
http://www.ameinfo.com
This is the code I use:
Code:
sub { my $tags = shift;
my $total = $tags->{link_hits};
my $high = $Links::CFG->{search_maxhits};
my $low = 1;
my $page = $tags->{nh} || 1;
if ($page > 1) {
$low = (($page - 1) * $high) + 1;
}
my $top = ($high + $low > $total) ? $total : (($high + $low) - 1);
return "Viewing $low to $top of $total";
}
http://www.ameinfo.com