Hottest image of the (day/week/month) option Hottest image of the (day/week/month) option
 

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]

Main Menu

Hottest image of the (day/week/month) option

Started by Anvil, November 17, 2004, 08:48:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Anvil

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.

ks

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

Anvil

ks - very cool

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