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:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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