Announcement

#1 2009-11-01 02:20:38

classo
Guest

User stats question

Hello,

Wondering if it's possible for the webmaster/admin to view the following:

- How many ratings a user has made
- How many comments a user has made
- How many picture a user has uploaded

The AStats ext gives some nice options, but not the above ones.

Thanks.

 

#2 2009-11-02 20:36:34

grum
Former Piwigo Team
Pantin
2007-09-10
1371

Re: User stats question

Hi !

I've take a look about your feature requests.

How many ratings a user has made
It's possible to make this stat, the "rate" table knows who rate, wich picture, when and how many star was given.

How many comments a user has made
It's possible too.

How many picture a user has uploaded
I'm not sure it's possible to know who have uploaded a picture, I have to do some test before giving an answer (I have never used this functionnality)


The question is : what is the best way to provide this stats ?
A new plugin ?
=> easy to made
Built in AStat ?
=> not difficult to implement, but I probably have to think about a new user interface because at now AStat is picture oriented.
Built in Piwigo ?
=> probably not difficult, but where (on the stat page, on the user information page ?) and we have to keep in mind adding a new feature in Piwigo is less flexible than making a plugin (a plugin follows it own evolution, usually faster than Piwigo evolution)


My pictures with Piwigo, of course !
[ www.grum.fr ]

Offline

 

#3 2009-11-04 02:51:05

classo
Guest

Re: User stats question

Hello Grum,

Thanks for your response.

I think probably the best way to do this would be a new plug-in, and call it something like:

"How many RPC"  Means, "How many Ratings, Pictures, Comments" a user has supplied. Hehe.

I am not really a coder, so if you can help me out here, that would be fantastic!

Thanks.

 

#4 2009-11-15 12:48:42

grum
Former Piwigo Team
Pantin
2007-09-10
1371

Re: User stats question

grum wrote:

How many picture a user has uploaded
I'm not sure it's possible to know who have uploaded a picture, I have to do some test before giving an answer (I have never used this functionnality)

I take a look about the upload functionnality.
While the picture is waiting to be validated by an administrator, we can know who is the uploader (but actually it seems there is a bug, and you can't be 100% sure about the uploader identity)
After the picture is validated, we lost this property.

To be able to do the statistics you need, we have to :
- update the picture table to add a "uploader_user_id" column
- update the piwigo's core to affect this property
==> You can add a feature request in the bugtracker (http://piwigo.org/bugs)


My pictures with Piwigo, of course !
[ www.grum.fr ]

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact