Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Hottest image of the (day/week/month) option  (Read 6163 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.018 seconds with 19 queries.