Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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: [Download] [Hide] [Select]
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);
      }


please help im green
 



 
pajonckSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Limit Pics Per Day User 
 
That code is incomplete and a bit messed.

Do you have a link to the full mod?
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Limit Pics Per Day User 
 
ok i have the mod 1 pic in day on user

daylimit album pic
h**p://***.wrzucaj.com/343525
 



 
pajonckSend private message  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron