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: recently viewed pictures  (Read 2943 times)

0 Members and 1 Guest are viewing this topic.

claxxical

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
recently viewed pictures
« on: October 07, 2004, 12:58:24 am »

is there a plugin that tracks recently viewed pictures?  ie what pictures were viewed today, or each day...

thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: recently viewed pictures
« Reply #1 on: October 07, 2004, 06:19:22 am »

there's no built-in mechanism in coppermine, but you could integrate most tracking/visitor stats tools into coppermine. To come up with a more profound stat, you should try a tool that can handle apache logs directly, like awstats. If you need less details (or your don't have the minimum requirements for awstats), you could go for an option that is less powerfull. There is no code so far that is ready to copy and paste afaik.

[off topic]
Actual Coppermine plugins are just about to be developed, as Omni has introduced a plugin API in the coppermine devel version - the documentation for the API still has to be written, together with actual plugins (currently, only two demo plugins are available).
[/off topic]

Joachim
Logged

Teune

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
    • Chicago Area Bird and Wildlife Photos
Re: recently viewed pictures
« Reply #2 on: July 13, 2005, 02:10:11 am »

Any progress on this one, it would be a cool feature.

I am going to try and find the code for this and reply back here.

Ed
« Last Edit: July 13, 2005, 03:06:42 am by Teune »
Logged
Check out my Bird Photo gallery
http://www.chicagobirds.com

Teune

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
    • Chicago Area Bird and Wildlife Photos
Re: recently viewed pictures
« Reply #3 on: August 02, 2005, 06:27:15 pm »

Haven't had much time to look, but unless I am mistaken this is the sql statement to get the 16 most recently viewed photos.
Quote
SELECT pid, filepath, filename
FROM `cphoto_pictures`
ORDER BY mtime DESC
LIMIT 0 , 16

Now, to get them to appear on the front page like the random and recentl upoads sections  ;D
Logged
Check out my Bird Photo gallery
http://www.chicagobirds.com

Nibbler

  • Guest
Re: recently viewed pictures
« Reply #4 on: August 02, 2005, 06:36:10 pm »

A meta album for 'last viewed pics' already exists. It is called 'lasthits' and can be added to the contents of the main page setting in config or linked to via thumbnails.php?album=lasthits. The original question was more a more detailed, daily version of viewing statistics.
Logged

Teune

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
    • Chicago Area Bird and Wildlife Photos
Re: recently viewed pictures
« Reply #5 on: August 02, 2005, 06:48:11 pm »

thanks, got it
amazing what a bit of RTFM will do
Logged
Check out my Bird Photo gallery
http://www.chicagobirds.com
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.