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

Title: recently viewed pictures
Post 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
Title: Re: recently viewed pictures
Post by: Joachim Müller 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
Title: Re: recently viewed pictures
Post by: Teune 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
Title: Re: recently viewed pictures
Post by: Teune 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
Title: Re: recently viewed pictures
Post by: Nibbler 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.
Title: Re: recently viewed pictures
Post by: Teune on August 02, 2005, 06:48:11 pm
thanks, got it
amazing what a bit of RTFM will do