I have never submitted a patch for anything, so I hope not to
embarrass myself too much...
When a category is viewed in the tracker, there is a number next
to any subcategory which shows how many sites there are in that
subcategory. For complex category structures this number is
misleading (as subcategories can have more subcategories with
more sites). I wrote a function to get ALL of the subcategories'
for class: DirLib
in file: lib/directory/dirlib.php
input: category id
output: number of ALL sites within that category (recursive)
//get all direct child id's of this category
$query_childids = "select categId from
tiki_directory_categories where par
ent=" . $catid;
$result_childids = $this->query($query_childids);
$childret = Array();
$subsites = 0;
$subsites += $this->db->getOne("select count(*) from
//recursive call to all subcats
to tack the result onto the number that is displayed, just add on
this line to the while loop in the function "dir_list_categories" in the
same class and file:
I hope this helps somehow!