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

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

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 2 Guests 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Ă©