forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: taucher_0815 on June 03, 2010, 09:36:27 pm

Title: logging for fullsize-views
Post by: taucher_0815 on June 03, 2010, 09:36:27 pm
Hi!

Having set up CPG and created some groups. "normal" users are only able to see watermarked images as thumbs an mid-size.
Only a very limited count of users are able to see the full-sized, non watermarked images. These images can then be used by newspapers, etc for printing.

Is it possible to implement a logging for that?

User - Date / time - path to the image

Would be great!

Thanks so far...

Sven
Title: Re: logging for fullsize-views
Post by: Αndré on June 04, 2010, 08:36:19 am
Logging should be possible. But you already have that information in your web server log. Maybe that fits your requirements.

The log will get very big for galleries where a lot/all people are allowed to view full sized pictures. That effect increases if you disable intermediate sized view and only allow full size view. So we need a new config option (+ language string).
Title: Re: logging for fullsize-views
Post by: taucher_0815 on June 04, 2010, 09:10:29 am
I am running the Site on a hosted service with no access to a detailed log.

Config-Option could be "Log Fullsize views" wich is disabled by default.

For me I have enabled nearly every logging-option (see screenshot) and my DB is "only" 2.7 MB so far. This is with >7.000 images.

Title: Re: logging for fullsize-views
Post by: Αndré on June 04, 2010, 09:20:06 am
Config-Option could be "Log Fullsize views" wich is disabled by default.
Yes I know ;) But we cannot add new language strings to cpg1.5.x. There are several possibilities how we can add that feature to cpg1.5.x anyway.


'Logs' will be written to files. The detailed hit statistics will be kept in the database. Maybe I was on the on the wrong scent in the first place. As I personally don't use that feature, I don't know what data will be kept in the database if you enable 'detailed hit statistics' and how you can access that data from Coppermine.

Do you want to extend the detailed hit statistics or do you want to write that data to a log file?
Title: Re: logging for fullsize-views
Post by: taucher_0815 on June 04, 2010, 09:42:34 am
Do you want to extend the detailed hit statistics or do you want to write that data to a log file?

As CPG is running database-driven in my opinion it would be best to store that stuff in the DB also.
Files are more or less static and can be replaced during an update / upgrade. A DB is more flexible and offers a "standardized" format for future features.
Title: Re: logging for fullsize-views
Post by: Joachim Müller on June 04, 2010, 11:01:11 am
Only very few people actually need logs. Most enable features out of curiosity and then later wonder why their gallery is acting up. No matter where you store your logs (on file system level or inside the database), the amount will increase dramatically without any real benefit. For your particular use I suggest using a third party tool for granular stats. I can recommend Google Analytics.
Title: Re: logging for fullsize-views
Post by: taucher_0815 on June 04, 2010, 11:06:32 am
Thanks Joachim. I am using GA for several years now but it does not give me a detail of WHO has viewed / downloaded the full size image.

So probably I have to wait for a "shop"-plugin for CPG 1.5.x

Many thanks so far!

Dankeschön und weiter so!
Title: Re: logging for fullsize-views
Post by: Αndré on June 04, 2010, 11:10:44 am
So probably I have to wait for a "shop"-plugin for CPG 1.5.x
... or contribute a 'Log fullsize access' plugin 8)
Title: Re: logging for fullsize-views
Post by: Joachim Müller on June 04, 2010, 11:11:13 am
Enable a custom modification (best as plugin) that will add the user id ($pid) to the requested URL, so GA will be aware of that parameter. Then adjust GA to be aware of that parameter.
Title: Re: logging for fullsize-views
Post by: taucher_0815 on June 04, 2010, 11:41:53 am
@André, Joachim:

you don't wanna see my coding skills...

On the univerity a few (11) years ago i had to promise my professor to NEVER write a program or code... This was the only was to achieve a 4.3 note on programming skills 3 and 4 :)
Title: Re: logging for fullsize-views
Post by: Joachim Müller on June 04, 2010, 03:33:42 pm
@all who are not familiar with German school grades: German grade "1" equals "A" in anglo-saxon school grades, German grade "2" equals "B" and so on...  ;)

@taucher: coders of "real" programming languages (like C++) will tell you that coming up with some code snippets for a tolerant, interpreter-driven scripting language construct like PHP can hardly be called "programming". Of course most devs around here have a different opinion on that. ;D
Title: Re: logging for fullsize-views
Post by: taucher_0815 on June 04, 2010, 03:41:31 pm
This was the only was to achieve a 4.3 note on programming skills 3 and 4 :)

And the 4.3 is the minimum grade on the scale from 1 (best) to 6 (worst) to get the course marked completed ;)
Title: Re: logging for fullsize-views
Post by: Αndré on June 04, 2010, 03:42:39 pm
I suggest to stop the off-topic discussion now :P
Title: Re: logging for fullsize-views
Post by: taucher_0815 on June 04, 2010, 03:46:19 pm
agree and close this one pls ;)