jump to navigation

b2 antispam patch 2004 May 18

Posted by tibu in : , trackback

Aki olyan blogmotorral blogol, mint én (b2), annak hasznos lehet az alábbi kis patch. Ha beilleszted a b2comments.post.php 106. sorába az utolsó $notify_message sor után, akkor mikor valaki commentet rak a bejegyzésedre, akkor az ezt jelzõ email végén található linkkel az ki is törölheted rögtön, ha spamnek minõsíted.

English version: If you use the same blogengine as Me (b2), this patch will be quite useful for you. If you insert it into the file b2comments.post.php into the line #106 after the last $notify_message line, as soon as sy comments your post and you get the notifing mail about it, you can delete it with a click, if you think it is spam.

Now the code:

# tibu hack start
                $comment_ID = mysql_insert_id();
                $notify_message .= "To delete it click: ".$siteurl.'/b2edit.php?action=deletecomment';
                $notify_message .= '&p='.$comment_post_ID.'&comment='.$comment_ID."rnrn";
# tibu hack end

Comments»

no comments yet - be the first?