Ok, i think to get the number of all cats, you just have to open the database and then print it into a scalar, something like
open (CAT, "<$db_category_id_file_name");
print CAT $catnum;
close CAT;
and then put catnum => $catnum, in site_html_templates.pl. I tried this but its not working so i'll look at it later.
-----------------------
I got the categories in a cat like this, in nph-build.cgi go to
sub build_category_pages find
Code:
$title_linked = &build_linked_title ($cat);
$title = &build_unlinked_title ($cat);
$total = ($#{$links{$cat}} + 1) / ($#db_cols + 1);
$category_name = $cat;
$category_name_escaped = &urlencode ($cat);
$category_clean = &build_clean ($cat);
and change it to this
Code:
$title_linked = &build_linked_title ($cat);
$title = &build_unlinked_title ($cat);
$total = ($#{$links{$cat}} + 1) / ($#db_cols + 1);
$category_name = $cat;
$category_name_escaped = &urlencode ($cat);
$category_clean = &build_clean ($cat);
$subnum = ($#{$subcategories{$cat}} + 1);
Then in site_html_templates.pl, go to
sub site_html_category and put subnum => $subnum, in it. Then wherever you want it to show how many categories are in the category your in.
------------------
LookHard Search
lookhard.hypermart.net Lavon Russell