Jerry,
This is the extract from my
site_html.pl file:
Quote:
# $numlinks : The number of links inside that category (and subcategories).
# $mod : The newest link inside of that category.
#
my (@subcat) = @_;
my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i);
my ($half) = int (($#subcat+2) / 2);
# Print Header.
$output = qq~<br><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">\n~;
foreach $subcat (sort @subcat) {
if ($subcat =~ m,.*/([^/]+)$,) { $category_name = &build_clean($1); } else { $category_name = &build_clean($subcat); }
if ($subcat =~ /\@$/) { ($subcat) = @{$category{$subcat}}[2]; }
($description) = @{$category{$subcat}}[2];
$url = "$build_root_url/" . &urlencode($subcat) . "/";
$numlinks = $stats{"$subcat"}[0];
$mod = $stats{"$subcat"}[1];
# We check to see if we are half way through, if so we stop this table cell
# and begin a new one (this lets us have category names in two columns).
I thought I'd followed the instructions to the letter, is there something wrong here?
All the best
Shaun
------------------
Shaun Hague
Webmaster - Qango.com
http://www.qango.com/central/