Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2009-08-09 19:21:08

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_comment_spam

AndrijaM wrote:

Hi, any news about this email notification issue :)

  1. Done: Tested on different systems.
  2. Status: Can’t replicate.
  3. Future: When I get the time, and the financial thing corrected. I will test it some more.

Can’t see it, can’t fix it.

Last edited by Gocom (2009-08-09 19:21:47)

Offline

#32 2009-08-11 14:39:04

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: rah_comment_spam

Ok, thanks, I understand, thank you for your time.

Offline

#33 2009-08-15 04:16:17

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

Re: rah_comment_spam

As clients tend to mess around with this entry, I’d suggest to tolerate double commata or trailing commata in the spam words lists, like so:

In rah_comment_spam_countspamwords, change

$spamword = explode(',',$spamwords);
foreach($spamword as $needle) {
    $i = $i + substr_count(strtolower(' '.$where.' '),strtolower($needle));
} 

to

$spamword = explode(',',$spamwords);
foreach($spamword as $needle) {
    $needle = trim($needle);
     if(!empty($needle)) $i = $i + substr_count(strtolower(' '.$where.' '),strtolower($needle));
}

…or use do_list().

Offline

#34 2009-08-15 17:53:19

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_comment_spam

Thanks wet. Version 0.2.1 implements the feature.

Offline

#35 2009-12-02 20:23:44

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_comment_spam

Version 0.3 of rah_comment_spam released. Changelog:

  • Added email DNS validation.

More info and downloads

Offline

#36 2010-04-06 11:59:37

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: rah_comment_spam

Jukka, I am using v0.12 on TXP Tips – I just noticed the update to v0.3 so I’ll upgrade now, but redbot had some problems commenting on the site and I wondered if you know what the error is?

Offline

#37 2010-04-06 20:52:51

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_comment_spam

jstubbs wrote:

Jukka, I am using v0.12 on TXP Tips – I just noticed the update to v0.3 so I’ll upgrade now, but redbot had some problems commenting on the site and I wondered if you know what the error is?

Sorry, I have no idea. Might be the lenght of the message or something, or the code in the message somehow did match to the spamwords(?). The plugin has no “magic” filter or anything. It just does what is set in the preferences. Version 0.1.2 did have some matching issues with cases, but that shouldn’t be it.

Edit. Oh you mean Non-static method timezone::is_dst() should not be called statically in … …txplib_misc.php on line 1265. Didn’t see it at first look. That error is somewhat caused by TXP’s core. See:

Last edited by Gocom (2010-04-06 21:10:25)

Offline

#38 2010-06-25 11:51:58

Grégocentrique
Plugin Author
From: Rouen, France
Registered: 2009-12-19
Posts: 28
Website

Re: rah_comment_spam

Hi,

I installed the plugin two weeks ago and limited the number of url by comment to 1. Unfortunately, I’m still having a lot of spam containing several links or URL (example : [URL=http://, [link=http://, href=“http://) and they’re not blocked. Do you have a trick to block them?

Thanks. :)

Offline

#39 2010-06-25 14:38:48

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_comment_spam

Grégocentrique wrote:

I installed the plugin two weeks ago and limited the number of url by comment to 1. Unfortunately, I’m still having a lot of spam containing several links or URL (example : [URL=http://, [link=http://, href=“http://) and they’re not blocked. Do you have a trick to block them?

Rah_comment_spam basically just counts the amount of http:// mentioned in a comment. If the link doesn’t have http:// in it, it won’t be blocked.

If you set the Max amount of URLs: to 1, it means that every comment can still contain a single link. If you want to limit all links, value 0 (zero) should do it.

You also try to block the bracket tags by setting them as spamwords ([URL=, [link=).

Offline

#40 2010-06-25 17:13:10

Grégocentrique
Plugin Author
From: Rouen, France
Registered: 2009-12-19
Posts: 28
Website

Re: rah_comment_spam

Thank you for your answer. I configured the plugin like you explained, but still have spam with those words. I’m now supposing that maybe there is a conflict with another plugin…

Offline

#41 2010-06-25 17:37:57

Grégocentrique
Plugin Author
From: Rouen, France
Registered: 2009-12-19
Posts: 28
Website

Re: rah_comment_spam

I tested the plugin alone on a local install of textpattern. It worked fine.

Then I disabled htn_antispam on my online site and now it seems to work fine too.

Last edited by Grégocentrique (2010-06-25 17:38:08)

Offline

#42 2010-07-25 10:16:07

mmelon
Member
Registered: 2006-03-02
Posts: 95

Re: rah_comment_spam

Hi,

I just installed this plugin on a 4.2 installtion and I get the following errors flash up briefly

Strict Standards: getdate() [function.getdate]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /var/www/vhosts//httpdocs/textpattern/lib/txplib_misc.php on line 1262

Strict Standards: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /var/www/vhosts//httpdocs/textpattern/lib/txplib_misc.php on line 1263

Strict Standards: Non-static method timezone::is_dst() should not be called statically in /var/www/vhosts//httpdocs/textpattern/lib/txplib_misc.php on line 1265

Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /var/www/vhosts//httpdocs/textpattern/lib/txplib_misc.php on line 1299

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /var/www/vhosts//httpdocs/textpattern/publish/comment.php on line 246

This is when I add a comment without a message so the validation kicks in and says please supply a message. If I do supply a message, it adds the comment despite my having a hidden field called phone that I have populated.

Does this plugin work with 4.2?

Kind regards,
Mike

Non-working inline code tags into code block (bc..) -Gocom

Last edited by Gocom (2010-07-25 10:51:52)

Offline

#43 2010-07-25 10:19:12

mmelon
Member
Registered: 2006-03-02
Posts: 95

Re: rah_comment_spam

interestingly it only does this when my site status is set to live

Offline

#44 2010-07-25 10:49:09

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_comment_spam

mmelon wrote:

Does this plugin work with 4.2?

Yes it does. The notice made by PHP indicates that Textpattern haven’t defined the TZ. Make sure that you have selected timezone/city in TXP’s preferences (TXP/Admin/Prefs) and set Auto-DST on. Otherwise all datetime functions will result in notices.

The notices are not caused because of the plugin, and theres nothing specific to the plugin. One of the notices is even linkin to the TXP’s commenting system.

interestingly it only does this when my site status is set to live

That should be because TXP’s error suppression. In PHP 5 the E_STRICT notices were moved under different category, which isn’t suppressed in Live mode (when TXP 4.2.0 or older is used) but disabled in debugging and testing modes.

Offline

#45 2010-07-25 11:09:41

mmelon
Member
Registered: 2006-03-02
Posts: 95

Re: rah_comment_spam

I’ve noticed another strange behaviour that is probably my fault…

when I set a field name to be spam trapped, it always gets set to a zero length string in the $_POST array.

If I remove it as a spam trap field in the comment spam config, it dumps the string length correctly.

I thought the point was to detect a populated dummy field and mark as spam. Yet the plugin seems to be removing the assigned spam trap field from the post vars.

Do you know what I am doing wrong?

Mike

Last edited by mmelon (2010-07-25 11:11:06)

Offline

Board footer

Powered by FluxBB