forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: koch on December 01, 2005, 04:04:26 pm

Title: How to add LINKED files count to Category at mainpage?
Post by: koch 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?
Title: Re: How to add LINKED files count to Category at mainpage?
Post by: donnoman on December 03, 2005, 06:07:17 pm
Do you at least have the "Show number of linked files " config option set to yes?
Title: Re: How to add LINKED files count to Category at mainpage?
Post by: koch on December 05, 2005, 09:14:03 am
sure! this option is "yes"
Title: Re: How to add LINKED files count to Category at mainpage?
Post by: donnoman 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 (http://cpg-contrib.org/thumbnails.php?album=12) 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.