forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: nitro2k01 on June 27, 2006, 08:39:03 am

Title: Counting SubCategory's albums and pictures and putting it on its parent category
Post by: nitro2k01 on June 27, 2006, 08:39:03 am
Hello everbody,

I need help on Counting SubCategory's albums and pictures and putting it on its parent category because i dont want subcategories showing on the index page of coppermine and i been album stop subcategories from showing it on the index page by commenting this line of code from index.php:

//if ($level < $CONFIG['subcat_level']) get_subcat_data($subcat['cid'], $cat_data, $album_set_array, $level+1, $ident . "<img src=\"" . $CPG_M_DIR . "/images/spacer.gif\" width=\"20\" height=\"1\">");

Now the problem is i couldn't able figure out how to count subcat's albums and pics to put it on its parent category.  instead of parent categories counting its albums and pics, i want its to calculate its subcategories' album and pics as well.

I am really not good at programming so could someone please help me on this.

thanks in advance