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 add LINKED files count to Category at mainpage?  (Read 4665 times)

0 Members and 1 Guest are viewing this topic.

koch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
How to add LINKED files count to Category at mainpage?
« on: December 01, 2005, 04:04:26 pm »

I got categories and albums with 0 files but a lot of linked files.

How to shows its quantity on the main page with 1 more collumn LINKED?
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: How to add LINKED files count to Category at mainpage?
« Reply #1 on: December 03, 2005, 06:07:17 pm »

Do you at least have the "Show number of linked files " config option set to yes?
Logged

koch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: How to add LINKED files count to Category at mainpage?
« Reply #2 on: December 05, 2005, 09:14:03 am »

sure! this option is "yes"
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: How to add LINKED files count to Category at mainpage?
« Reply #3 on: December 06, 2005, 04:20:09 am »

your going to need to collect more statistics on your own in the get_cat functions.

You might check the CPGOcat plugin, as I mod those sections in the plugin to inlcude a "last Updated" column for the category.

Theres a bunch of additional code in CPGOcat that has to do with sorting said categories and columns of which you can ignore.

You should look at the sections that I have remarks of "//custom statistics" around. and do something similar either with a plugin a'la cpgocat or make a mod and change those functions in coppermine.

Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 19 queries.