My forum is getting pounded by spam. I see some modules that offer good solutions, but for right now, all I want is to approve each forum post before it is viewable by the public. I don't see a module with this functionality. Any suggestions on what to use?

I'm considering installing Mollom.... but I'd like to explore this other option first.

thanks!

Comments

jeditdog’s picture

Well it wasn't difficult to hack this up a little so I altered the code.

In common.inc's drupal_write_record() I added (near top of function):

  if ($table == 'node' && 
  		$object->is_new == 1 && 
  		$object->type == 'forum')
  {
 	$object->status = 0;
 	//echo "\n<br/><br/>\n";
 	//print_r($object);		
 	//echo "\n<br/><br/>\n";
 	//print_r($update);
 	drupal_set_message('Thank you for your post.  It will be published as soon as an Administrator has approved it.'); //t('@type %title has been created.', $t_args));
  	//die();
  }

status gets set to 0. Thought I'd have to do this on comments as well, but they have the permission "post comments without approval" so I just set that.

I may eventually make a report that shows me what needs to be approved, but for now, I'll just monitor drupal's admin pages.