Jump to content
MakeWebGames

Spam feature


Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...