Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Limit to the upload files  (Read 3714 times)

0 Members and 1 Guest are viewing this topic.

Farina

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Limit to the upload files
« 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.


Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Limit to the upload files
« Reply #1 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.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

Farina

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Limit to the upload files
« Reply #3 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Limit to the upload files
« Reply #4 on: December 30, 2006, 06:35:50 pm »

Change the "1" in the line
Code: [Select]
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.
Logged

Farina

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Limit to the upload files
« Reply #5 on: December 31, 2006, 09:21:06 am »

Change the "1" in the line
Code: [Select]
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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Limit to the upload files
« Reply #6 on: December 31, 2006, 11:10:59 am »

OK, this requires more complicated custom coding.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 16 queries.