melduk Posted May 14, 2010 Share 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 Link to comment Share on other sites More sharing options...
Zero-Affect Posted May 14, 2010 Share Posted May 14, 2010 This exists i think it's like 30 seconds... Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 14, 2010 Share Posted May 14, 2010 yeh yeh, not allowed to post under every 30 seconds Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted May 15, 2010 Share Posted May 15, 2010 Why are you being dumb and posting in MCCodes section? Quote Link to comment Share on other sites More sharing options...
Dominion Posted May 15, 2010 Share 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 Link to comment Share on other sites More sharing options...
Analog Posted May 15, 2010 Share 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 Link to comment Share on other sites More sharing options...
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.