Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Counting SubCategory's albums and pictures and putting it on its parent category  (Read 2711 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.05 seconds with 19 queries.