coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: dke on July 05, 2006, 01:07:17 AM

Title: Is there anyway to limit the size/quota of favorite downloaded stuff
Post by: dke on July 05, 2006, 01:07:17 AM
Hi,

hard to explain in the short topic.

what i want to do is to limit the qouta each week to like 40mb max size for a zip file that they download when using the "download favorites as zip" but i only want them to be able to do this once a week on their account. Ofcourse they could go through the trouble of registering a new user with a new mail, but im willing to deal with that :)

So basicly, max downloadable quota per week for favorite zip files would be 40mb for people in the "registered group"

Any clues if this is possible?
Title: Re: Is there anyway to limit the size/quota of favorite downloaded stuff
Post by: Sami on July 05, 2006, 06:00:31 AM
yes it's possible.
you have size of pics on db and you know how many pics on fav so you can calculate the total size for each user but for each week you need to create a new table to store when user download zip file
It should be possible as a Plugin
Title: Re: Is there anyway to limit the size/quota of favorite downloaded stuff
Post by: dke on July 05, 2006, 11:47:34 AM
awesome, any clue if there might be someone who already did this and shared hes/shes work? im no pro so im far from writing my own plugin/scripts :)

thanks in advance