Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] mrw_spamkeywords_urlcount
Is there a way to make this plugin go one step beyond?
ie to have it check for all that it checks and if it meets the conditions the ‘submit’ button is disabled.
What I am looking for is a method which just stops spam to be posted all together. So if a text contains ‘viagra’ or whatever blocked word the plugin prevents that message to be posted.
Can anyone help on this?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [plugin] [ORPHAN] mrw_spamkeywords_urlcount
Edit the plugin. Replace:
$evaluator -> add_estimate(SPAM, 0.6);
with:
$evaluator -> add_estimate(RELOAD, 1, "You tried to use a blacklisted word");
The error-message will be displayed to the user; you can leave that part out as above, if you want.
Last edited by Sencer (2006-10-27 07:42:49)
Offline
Re: [plugin] [ORPHAN] mrw_spamkeywords_urlcount
Hey !!! This seems to work!!! Thanks Sencer
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#16 2006-11-08 00:20:02
- nesher
- Archived Plugin Author
- Registered: 2004-02-23
- Posts: 15
Re: [plugin] [ORPHAN] mrw_spamkeywords_urlcount
That’s a great suggestion, good solution Sencer.
Offline
#17 2006-11-17 19:23:02
- dotjay
- Member
- Registered: 2004-10-26
- Posts: 10
Re: [plugin] [ORPHAN] mrw_spamkeywords_urlcount
If anyone has problems getting this plugin to work – i.e. if it looks like it is doing nothing at all – it probably isn’t. It took me a little while to figure out why it wouldn’t work for me, but then I realised I was using version 0.3.1 of Nils Hörrmann’s nhn_livecommentpreview plugin, which means that textpattern’s new handling of comments was completely bypassed. Stupidly obvious, but thought I’d mention it in case someone else was banging their heads against a wall.
A newer beta version of nhn_livecommentpreview may well fix this problem, but I don’t have the time to try to fix things at the moment. :S
Last edited by dotjay (2006-11-17 20:31:55)
Offline