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: Hottest image of the (day/week/month) option  (Read 5459 times)

0 Members and 1 Guest are viewing this topic.

Anvil

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Hottest image of the (day/week/month) option
« 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.
Logged

ks

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 44
Re: Hottest image of the (day/week/month) option
« Reply #1 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
Logged

Anvil

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Hottest image of the (day/week/month) option
« Reply #2 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?
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.