I've been wondering for sometime now whether they is any small module/util out here which one can use to see the total content(text, images etc) used/uploaded/submited by a user for all node types. Or whether it was possible to create something small to limit users' total upload/submissions to any node.

And there is one now, what would I need to know to start creating such a mod? i.e. any other mods I could modify, steel some ideas? functions...

I think this would be great complement to the statistics mod and drupalal but take it a little further to allow bandwidth limiting.

-dan
New to drupal but very much enjoying it already.

Comments

dansuade’s picture

No one have any ideas? I thought it could also compliment the watchdog module?

Hope someone can help me out or point me in a direction.

killes@www.drop.org’s picture

I don't think that this can be easily done. What you could try to do is implement a counter that counts how often a particular user has visited the node and denies access afterwards. You could base the maximal number of downloads on the number of words in the article.
--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.

dansuade’s picture

Killes
Well ok...I'm actually trying to see if I can implement setting a quota , say 2Mb, per/for a user so that their total(sum of all nodes) uploaded/submitted can be kept to that quota.

So I guess something that looks at all the user's posts and calculates their used space so far and diplays it to them.

I think I may have not made this clear enough.

killes@www.drop.org’s picture

Drupal itself cannot know how many kB the current page is going to have. This depends for example on which theme you use. A solution that you propose would need some external programm to log downloads and eventually deny access.
--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.

dansuade’s picture

I see...let's say I just wanted to know submissions kb to blog & book (and later image) node types. Couldn't I look at data (in db tables) for these nodes types for the user?

Thanks for your follow ups, mate.

killes@www.drop.org’s picture

Sure you could. But that would only give you the size of the uploaded content, not the size of the downloaded content. Might be a good enough approximation.

--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.

albertc’s picture

I'm also very interested in user quota management. My project is a free community site, and I don't want any user to eat all my bandwidth/disk space by posting large numbers of huge pictures.

Thanks

CarbonPig’s picture

Bump - is there a way to limit total upload using the upload module across all content types for each role. For example, if you want role A to have a 1GB limit, role B to have a 2GB limit, etc.

??

Thanks,

CarbonPig