Counting SubCategory's albums and pictures and putting it on its parent category Counting SubCategory's albums and pictures and putting it on its parent category
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Counting SubCategory's albums and pictures and putting it on its parent category

Started by nitro2k01, June 27, 2006, 08:39:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nitro2k01

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