Error in Open Classifieds 1.4.2 function isSpam() missing

I did a mistake in the latest release of OC 1.4.2.

I include and old version of common.php which doesn’t includes the isSpam function.

The mistake is already solved and the download now is the good one.

I’m really sorry about this :( It seems I’m not focused enough on this.

Please for the people who already download the script, download it another time or paste this at the end of common.php:

function isSpam($name,$email,$comment){//return if something is spam or not using akismet
	if (AKISMET!=""){
		$akismet = new Akismet(SITE_URL ,AKISMET);//change this! or use defines with that name!
		$akismet->setCommentAuthor($name);
		$akismet->setCommentAuthorEmail($email);
		$akismet->setCommentContent($comment);
		return $akismet->isCommentSpam();
	}
	else return false;//we return is not spam since we don't have the api :(
}

Thanks to dsmith01 for commenting this mistake in the forum http://forum.neo22s.com/topic/newindexphp-call-to-undefined-function-isspam

And my apologizes another time.

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Google Bookmarks
  • BarraPunto
  • Bitacoras.com
  • FriendFeed
  • Meneame
  • Netvibes
  • Reddit
  • StumbleUpon
  • Tumblr
  • Wikio
  • RSS
  • email
  • PDF
  • Print

Related posts:

  1. Prevent spam in your PHP site with akismet
  2. Open Classifieds 1.6 RC1
  3. Open Classifieds 1.6 RC2
  4. Open Classifieds 1.5.3 Released
  5. Open Classifieds 1.4.2

Leave a Reply

Follow me