How to display number of ALL photos including subcategories How to display number of ALL photos including subcategories
 

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

How to display number of ALL photos including subcategories

Started by doppler, December 08, 2011, 11:52:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

doppler

My main page has simple, regular view - just:
picture - name of category - number of pictures

In general view of main categories - how to have numebr of ALL pictures in category, including subcategories (and inlcuding all photos added by keywords).


My problem is:
I had category with 100 albums. I did sub-categories and moved 97 albums into them. Now my main page display only sum of those three albums which stay in main category.
Also summation in whole page doesn't count picture added to albums (by keywords) in category views.

doppler

I found that code where number of albums and pictures is in themes.inc.php


'{ALB_COUNT}' => cpg_float2decimal($category[2]),
'{PIC_COUNT}' => cpg_float2decimal($category[3]),


How to change this section to have sum of ALL albums inside category, and sum of ALL pictures ?
Please

ΑndrĂ©