Advanced search  

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

Pages: [1]   Go Down

Author Topic: User upload limit per day  (Read 3469 times)

0 Members and 1 Guest are viewing this topic.

botakedan

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
User upload limit per day
« on: August 04, 2009, 08:46:16 am »

Hello!

I was wondering if it would be possible to make limit number of picture can upload by each member per day ?

Any help would be greatly appreciated, thank you!
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: User upload limit per day
« Reply #1 on: August 04, 2009, 09:15:08 am »

Logged

botakedan

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: User upload limit per day
« Reply #2 on: August 04, 2009, 07:18:11 pm »

i thing this is the way...

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

but... where is this code location ?
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.