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: How to display number of ALL photos including subcategories  (Read 3254 times)

0 Members and 1 Guest are viewing this topic.

doppler

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
How to display number of ALL photos including subcategories
« on: December 08, 2011, 11:52:05 am »

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.
Logged

doppler

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: How to display number of ALL photos including subcategories
« Reply #1 on: December 09, 2011, 12:22:36 am »

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

Code: [Select]
'{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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: How to display number of ALL photos including subcategories
« Reply #2 on: December 12, 2011, 02:44:40 pm »

There's no straightforward solution yet.
Logged
Pages: [1]   Go Up
 

Page created in 0.035 seconds with 20 queries.