Hello!
I wanted to change the look of the default categories and description look. Making them even!
I went into site_html_templates.pl and found sub site_html_print_cat and inserted the following code. --------------------------------------------
# Print Header.
$output = qq|<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width=45% valign="top">\n|;
foreach $subcat (sort @subcat) {
($description) = @{$category{$subcat}}[2];
# First let's get the name, number of links, and last modified date...
$url = "$build_root_url/" . &urlencode($subcat) . "/";
if ($subcat =~ m,.*/([^/]+)$,) { $category_name = &build_clean($1); } else { $category_name = &build_clean($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).
if ($i == $half) {
$output .= qq|</td><td width=10%></td><td width=45% valign="top">\n|;
}
$i++;
# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<font face="Arial,Helvetica" size=2><a href="$url">$category_name</a></font> <font face="Arial,Helvetica" size=1>($numlinks)</font> |;
$output .= qq|<font face="Arial,Helvetica" size=2 color="red">NEW</font>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq| |;
$output .= qq|<font face="Arial,Helvetica" size=1><br>$description <br><br></font>| if (!($description =~ /^[\s\n]*$/));
$output .= qq| |;
}
# Don't forget to end the unordered list..
$output .= "</td></tr></table>\n";
return $output;
}
--------------------------------------------
Which came out better then I thought.
To see it in action visit us at http://www.neudesigns.com/pages/