logging for fullsize-views logging for fullsize-views
 

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

logging for fullsize-views

Started by taucher_0815, June 03, 2010, 09:36:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

taucher_0815

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

Αndré

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).

taucher_0815

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.


Αndré

Quote from: taucher_0815 on June 04, 2010, 09:10:29 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?

taucher_0815

Quote from: Αndré on June 04, 2010, 09:20:06 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.

Joachim Müller

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.

taucher_0815

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!

Αndré

Quote from: taucher_0815 on June 04, 2010, 11:06:32 AM
So probably I have to wait for a "shop"-plugin for CPG 1.5.x
... or contribute a 'Log fullsize access' plugin 8)

Joachim Müller

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.

taucher_0815

@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 :)

Joachim Müller

@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

taucher_0815

Quote from: taucher_0815 on June 04, 2010, 11:41:53 AM
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 ;)

Αndré

I suggest to stop the off-topic discussion now :P

taucher_0815