forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: Anvil on November 17, 2004, 08:48:00 pm

Title: Hottest image of the (day/week/month) option
Post by: Anvil on November 17, 2004, 08:48:00 pm
Has anybody thought of developing a code to select the most viewed image of the day/week/month and display it?

I think that would be a great addition.
Title: Re: Hottest image of the (day/week/month) option
Post by: ks on November 18, 2004, 06:48:05 am
Hi Anvil,

you need an extra db table with a timestamp column to track the viewed images. I'm testing something like this at the moment. Unfortunately, it involves several changes and I'm not able right now to give an easy to follow l describtion on how to apply the mod. If I find some more time , I will try to write it up and post it here. As it is now, I have the pic of the week/month on an extra statstics page, but maybe later on I will put it on the main page, in the anycontent section. Also the original cpg pic counter and my new counter are not completely in sync which can  be a little confusing...

http://images.schwarzburgland.de/hist2.php

klaus
Title: Re: Hottest image of the (day/week/month) option
Post by: Anvil on November 18, 2004, 08:36:03 am
ks - very cool

can you post what i need to implement that? or is it all in the source code?