Limit to the upload files Limit to the upload files
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Limit to the upload files

Started by Farina, December 27, 2006, 05:22:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Farina

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.



Joachim Müller

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.


Farina

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

Joachim Müller

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.

Farina

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.

Joachim Müller

OK, this requires more complicated custom coding.