Support > cpg1.5 plugin contributions
Limit upload plugin for cpg1.5.x
Αndré:
This plugin allows you to limit the number of uploads for your users. You can choose a total number of files, or a certain amount of files for different periods of time.
Download: http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/cpg1.5.x_plugin_limit_upload_v1.0.zip/download
ThunderRed:
Thanks for the plugin. I just tried and it doesn't looks to work right.
I login like admin, and activated the plugin, and uploads a couple of pictures ( I guess that the restrictions doesn't affect the admin, which is cool). Then I log out and I log in with the test user, and I get the message that I already have reach the maximum of files. I get back to the admin and put a bigger number, and get back to the test user and tried again, with the same result.
I saw a interesting thing when I was saving the data like an admin, it's look like when you saving the maximum number, it doesn't matter which option did you select (total, day, month, year). It's always saving the total one.
If you need to check it out here:
http://focofijo2.webcindario.com/Galeria/
test user: red
test pass: nono
I saved 2 per 24 hours.... but, when I checked back in the configuration said 2 total.
Αndré:
The error message says
--- Quote ---You've reached the upload limit of 2 files .
--- End quote ---
but it has to say something like
--- Quote ---You've reached the upload limit of 2 files total/per hour/per day/etc.
--- End quote ---
so I assume one value isn't stored in the config. I'll check that.
Αndré:
I renamed a language string and forgot to rename it in the code ::) Please try version 0.2 attached to initial post.
ThunderRed:
Something is not working.
The drop menu is working now, and it save the configuration that you put it on. But, I just try with 4 pictures in 24h, and when I logged in with the test user, I get this message:
"Error
You've reached the upload limit of 4 files per day (24 hours).
You have to wait 144 hour(s) before uploading another file. "
The last file that the test user upload was July 1, and... the hours that you have to wait can't be right. ::)
I made a new user
user:test
pass: test1
And I upload 4 new photos without problem, then I tried to upload the 5 one and I got:
"Error
You've reached the upload limit of 4 files per day (24 hours).
You have to wait 1 hour(s) before uploading another file. "
Navigation
[0] Message Index
[#] Next page
Go to full version