FAP SUPPORT - Limit Pics Per Day User »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP SUPPORT - Limit Pics Per Day User



pajonck [ Sun 24 Jan, 2010 19:43 ]
Post subject: 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: [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


Mighty Gorgon [ Mon 25 Jan, 2010 14:36 ]
Post subject: Re: Limit Pics Per Day User
That code is incomplete and a bit messed.

Do you have a link to the full mod?


pajonck [ Mon 25 Jan, 2010 16:45 ]
Post subject: Re: Limit Pics Per Day User
ok i have the mod 1 pic in day on user

daylimit album pic
http://www.wrzucaj.com/343525




Powered by Icy Phoenix