Djkanna Posted June 18, 2013 Posted June 18, 2013 Surely there's a date sent field in the mailbox table? Work from that. Query the db to see if x user has sent a mail within x seconds. - result: disallow the mail( but keep the values for sending, it's a pain in the arse having to write it out again ) - no result: let the mail go. Quote
Dragon Blade Posted June 18, 2013 Posted June 18, 2013 I don't know the forums table for MCCodes V2 but try and add this somewhere near function_reply. $q1=mysql_query("SELECT * FROM forum_posts WHERE $userid=fp_poster_id AND fp_time >unix_timestamp()-60"); if(mysql_num_rows($q1) >= 1) { print "The last posting from your ID was less than 60 seconds ago.<br />Please try again later.<br/><br/> "; $h->endpage(); exit; } Quote
gpo26 Posted June 18, 2013 Author Posted June 18, 2013 (edited) . Edited January 16, 2023 by gpo26 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.