recently viewed pictures recently viewed pictures
 

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

recently viewed pictures

Started by claxxical, October 07, 2004, 12:58:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

claxxical

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

thanks

Joachim Müller

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

Teune

#2
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
Check out my Bird Photo gallery
http://www.chicagobirds.com

Teune

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.
QuoteSELECT 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
Check out my Bird Photo gallery
http://www.chicagobirds.com

Nibbler

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.

Teune

thanks, got it
amazing what a bit of RTFM will do
Check out my Bird Photo gallery
http://www.chicagobirds.com