coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: Farina on December 27, 2006, 05:22:33 PM

Title: Limit to the upload files
Post by: Farina on December 27, 2006, 05:22:33 PM
I searched in everywhere but I didn't find anything on this issue. I'd like to fix a max number limit of photos that each member could load on the gallery in a day time.

thanks in advance.


Title: Re: Limit to the upload files
Post by: Joachim Müller on December 28, 2006, 09:25:40 AM
Feature doesn't exist. You can only set a quota in bytes, but not in number of files. Afaik this has been asked before, please search the board if someone has come up with a mod that does what you're after. If you can't find it, then it probably hasn't been done yet.
Title: Re: Limit to the upload files
Post by: Stramm on December 28, 2006, 11:37:46 AM
http://forum.coppermine-gallery.net/index.php?topic=32016.0
Title: Re: Limit to the upload files
Post by: Farina on December 30, 2006, 03:21:05 PM
thanks, I saw the link but is not for me.
Maybe the develop request to do it is not very difficult but I'm newbie  :)
I'd like to see some rows of code. I'm c language programmer and I can insert it.
Anyway, I need some php code for to find the date insert of last picture of the user logged .... for the rest I do it by myself.

thanks
Title: Re: Limit to the upload files
Post by: Joachim Müller on December 30, 2006, 06:35:50 PM
Change the "1" in the line if ($total_space_used > 1 ) {in the other thread to the number of file uploads you want to allow and you're done - the thread Stramm has refered to does exactly what you're after and is dead easy to apply, no coding skills needed.
Title: Re: Limit to the upload files
Post by: Farina on December 31, 2006, 09:21:06 AM
Quote from: GauGau on December 30, 2006, 06:35:50 PM
Change the "1" in the line if ($total_space_used > 1 ) {in the other thread to the number of file uploads you want to allow and you're done - the thread Stramm has refered to does exactly what you're after and is dead easy to apply, no coding skills needed.


I'd like to fix a max number limit of photos that each member could load on the gallery in a day time not for ever.
Title: Re: Limit to the upload files
Post by: Joachim Müller on December 31, 2006, 11:10:59 AM
OK, this requires more complicated custom coding.