https://www.icyphoenix.com/viewtopic.php?f=26&t=6883&p=47299#p47299
-----------------------------------
pajonck
Sun 24 Jan, 2010 19:43

FAP SUPPORT - Limit Pics Per Day User
-----------------------------------
help mi :) im looking for this hack . user only 1 photo per in day 

This code modyfication??

[code linenumbers=false]if ($userdata['user_level'] <= USER) //Do not limit MODS and ADMINS in any way 
   { 
      $time_span = time() - 24*3600; //24 hours 
      $check_user_limit = 1; // 5 posts per day 
      $error_msg = $lang['Flood_error_1']; 
      $sql = "SELECT COUNT(pic_id) AS count 
            FROM " . ALBUM_TABLE . " 
            WHERE post_time > $time_span 
            AND user_id = " . $userdata['user_id']; 
      if ( $result = $db->sql_query($sql) ) 
      { 
         $row = $db->sql_fetchrow($result); 
         $post_count = $row['post_count']; 
         if ($post_count >= $post_limit) message_die(GENERAL_MESSAGE, $error_msg); 
      } [/code]

please help im green


