Users Daily upload Limit Users Daily upload Limit
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Users Daily upload Limit

Started by ibanez, November 02, 2006, 02:14:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ibanez

Hi ;

At first I read all quota topics in forum about users.But i have a different queston about users limitation.How can i set for all user's upload limit per a day.For example i want to set as  " all users would send a only 1 photo per a day  (not depend on a file size) "..I would like to explain that I try to set all  1.3 version codes to solve this problem..But it didnt work and given an error.

How can I solve this problem..Is it possible to make like this quota?

Thanks for all interest.

Stramm

here's interesting reading for you... you'd need to modify the query to include the timestamp. Shouldn't be a problem

http://forum.coppermine-gallery.net/index.php?topic=32016.20

ibanez

Thank you for interests,
But I don't no mysql,php code.Please help me step by step
Thanks.

(my english not good sory)

ibanez

How can I modify the query to include the timestamp? Cause I want to say that I am not a proffesional on the Php and MSQL...I read topic which is sent by link from your side but I seen that users can upload only one photo...But I want to set my site as daily upload limit is one photo per all users.FOR EXAMLPE:One user can be upload a photo today..If he wants to upload a photo again during the same day.System must doesnt give permission to this user.But he (same user) can upload second photo tomorrow..
Please tell me, how can I set the system like that description on the above.
Best regards

Nibbler

$result = cpg_db_query("SELECT pid FROM {$CONFIG['TABLE_PICTURES']} WHERE owner_id = " . USER_ID . " AND ctime > UNIX_TIMESTAMP() - 86400");

ibanez

Thank you for your reply but where can I put this code in the coppermine..and whats the difference in the MYSQL table.
King regards

ibanez

Thank you for your reply but where can I put this code in the coppermine..and whats the difference in the MYSQL table.
King regards

Nibbler

Read the mod referred to above and use the code I gave you instead of the $result = ... in the original code.

Joachim Müller