melduk Posted May 14, 2010 Posted May 14, 2010 Hi, I think it would be a good idea to have some kind of spam features on the forums as I have lots of problems with this. For example Time delay - only allowed to create new topics every X amount of seconds. Thanks Quote
Zero-Affect Posted May 14, 2010 Posted May 14, 2010 This exists i think it's like 30 seconds... Quote
Danny696 Posted May 14, 2010 Posted May 14, 2010 yeh yeh, not allowed to post under every 30 seconds Quote
Jordan Palmer Posted May 15, 2010 Posted May 15, 2010 Why are you being dumb and posting in MCCodes section? Quote
Dominion Posted May 15, 2010 Posted May 15, 2010 Why are you being dumb and posting in MCCodes section? he means a anti spam thing for the mcc forums Quote
Analog Posted May 15, 2010 Posted May 15, 2010 You could try a simple function to check the last time that a user posted to the forums. Here is a little function you could call in the forum code that should do the trick. function stop_spam($poster) { global $db; //Time Limit in second $PostLimit = 30; $q = $db->query("SELECT fp_poster_id FROM fourm_posts WHERE fp_time > fp_time - $PostLimt AND fp_poster_id = $poster"); if($db->num_rows($q)) { echo "Sorry, you can only post once every $PostLimit seconds."; exit; } } This is untested, so may need tweaked some 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.