Quote:
Originally Posted by vissa
This is a great mod with only one major flaw.... That is the ability to specify whole words or boundaries. For example, if a person types the work "Virginia," the post will get flagged as spam (due to virgin in the rules). If they link to a jpeg (.jpg) it will get flagged as a link to japan (which is .jp). Without being able to detect spaces/etc or only matching a whole word, it becomes very difficult to make rules that work properly. I need a better understanding of the regular expressions used here.
|
That's a limitation of the current set of rules not of the mod itself.
You're quite right - it's overly aggressive and needs to be reworked (I posted about this a couple of months back).
It shouldn't be too hard to look for those strings with regular expressions like:
That would search for virgin with non "word" characters either side of it.
Quote:
Originally Posted by vissa
As a side note -- is there a simple way to detect a link to any URL? Perhaps just the [url] BBcode?
|
vB does automatic URL parsing as well so http://www.google.com/ would end up being stored without the [url] tags but would appear as a link in the page.
I think your safest bet is to look for http:// (remember to escape the / so it'll read http:\/\/ ni the config)
James