Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 04:12 am EST

Geeklog Forums

comment spam plug help


Kiwi

Anonymous
i found this in the plugins section

Text Formatted Code

// now prevent anonymous posters from submitting comments with too many links.
// this is to prevent spambots from adding comments filled with porn/drug links.
$numLinks = preg_match_all('/hrefs*=/i', $comment, $allLinks);
if($numLinks > 2 && $uid == 1) // uid 1 is Anonymous.
{
$retval .= COM_siteHeader()
. COM_startBlock ($LANG12[26], '',
COM_getBlockTemplate ('_msg_block', 'header'))
. $LANG03[31]
. COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'))
. COM_siteFooter();
return $retval;
}

 



I know i have to add it to comment.php , but i dont know where to add it. I added it too the end, and then somewhere in the middle once it didnt work where i thought it would fit in but that didnt work either , so now i am asking for help. Thanks.
 Quote

kiwi

Anonymous
help! i am being spamed
 Quote

All times are EST. The time is now 04:12 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content