forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: claxxical 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
-
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
-
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
-
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.
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
-
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.
-
thanks, got it
amazing what a bit of RTFM will do