Advanced search  

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

Pages: [1]   Go Down

Author Topic: Counting SubCategory's albums and pictures and putting it on its parent category  (Read 3440 times)

0 Members and 1 Guest are viewing this topic.

nitro2k01

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.