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: How to display number of ALL photos including subcategories  (Read 3362 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.017 seconds with 19 queries.