Advanced search  

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]

Pages: [1]   Go Down

Author Topic: logging for fullsize-views  (Read 6847 times)

0 Members and 1 Guest are viewing this topic.

taucher_0815

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 134
logging for fullsize-views
« 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: logging for fullsize-views
« Reply #1 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).
Logged

taucher_0815

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 134
Re: logging for fullsize-views
« Reply #2 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.

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: logging for fullsize-views
« Reply #3 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?
Logged

taucher_0815

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 134
Re: logging for fullsize-views
« Reply #4 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: logging for fullsize-views
« Reply #5 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.
Logged

taucher_0815

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 134
Re: logging for fullsize-views
« Reply #6 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!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: logging for fullsize-views
« Reply #7 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)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: logging for fullsize-views
« Reply #8 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.
Logged

taucher_0815

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 134
Re: logging for fullsize-views
« Reply #9 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 :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: logging for fullsize-views
« Reply #10 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
Logged

taucher_0815

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 134
Re: logging for fullsize-views
« Reply #11 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 ;)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: logging for fullsize-views
« Reply #12 on: June 04, 2010, 03:42:39 pm »

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

taucher_0815

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 134
Re: logging for fullsize-views
« Reply #13 on: June 04, 2010, 03:46:19 pm »

agree and close this one pls ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 21 queries.