TOPIC:

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 1 year 3 months ago #258040

  • FiftyNineDesign's Avatar Topic Author
  • FiftyNineDesign
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 68
  • Thanks: 0
Hey,
i will forgive you, if you will provide a working (tested before) solution for the Bad-words-filter =).

Common guys, please provide some kind of FAQ for this stuff, or integrate it directly into BF - you`re losing customers.

If you`re doing an interface redesign and provide some integrated working solution,
you`ll be back on the top with forms for Joomla. Have a look at BalboaForms for some inspiration.

greetings

Please Log in or Create an account to join the conversation.

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 1 year 3 months ago #258042

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10737
  • Karma: 3
  • Thanks: 718
Hi,

ok I will check this.

But for now you can use Validation like this in your element->Properties->Validation
function ff_badwords_validation(element, message)
{
var badwords = /\b(badword3|badwords2|badwords3|badwords4)\b/ig; 
if (badwords.test(element.value)) {
if (message=='') message = element.name+" contains a spam word.\n";
ff_validationFocus(element.name);
return message;
} // if
return '';
} // ff_badwords_validation

Please replace badwords with name of element for badwords (not title)


If you want to do this as server side validation, then go to your form->Advanced->More options->Submit pieces->Begin Submit->check Custom:
$this->execPieceByName('ff_InitLib');
$value1 = ff_getSubmit('nameofelement');

if( preg_match("/(badword1|badword2|badword3)/",$value1)){
echo 'Wrong';
exit();
}
Please replace nameofelement with name for your element (not title)

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 1 year 1 month ago #260823

  • JMLA_Userin
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 31
  • Thanks: 0
Hello, I've added this here and entered this spam email address into the form. There is a diversion error. Is it correct that way?
Hallo, ich habe hier das eingefügt und diese Spam E-mailadresse ins Formular eingetragen. Es kommt ein Umleitungsfehler. Ist das so richtig?
Ich sag schon mal vielen Dank und viele Grüße

I already say thank you very much and best regards

Hanne
Attachments:

Please Log in or Create an account to join the conversation.

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 1 year 1 month ago #260824

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2952
  • Karma: 2
  • Thanks: 150
Hi,

as I see you inserted code in the wrong section, for validation you need to Go ->Propertis-> and scroll down to the Validation select custom and then insert that code.
function ff_badwords_validation(element, message)
{
var badwords = /\b(badword3|badwords2|badwords3|badwords4)\b/ig; 
if (badwords.test(element.value)) {
if (message=='') message = element.name+" contains a spam word.\n";
ff_validationFocus(element.name);
return message;
} // if
return '';
} // ff_badwords_validation
where badwords is name of email element (not title)

regards,
Mirko
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 1 year 1 month ago #260825

  • JMLA_Userin
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 31
  • Thanks: 0
Unfortunately, the request will be sent with this e-mail eric.jones.z.mail@gmail.com address from the form.
Leider wird die Anfrage mit dieser E-mailadresse aus dem Formular versendet.
Ich sag schon mal vielen Dank und viele Grüße

I already say thank you very much and best regards

Hanne

Please Log in or Create an account to join the conversation.

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 1 year 1 month ago #260827

  • JMLA_Userin
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 31
  • Thanks: 0
Hallo Eddy, das wäre super. Könntest Du mir bei der Konfiguration von Spambotcheck behilflich sein? Am besten ein paar Screenshots. Das wäre super.
Ich sag schon mal vielen Dank und viele Grüße

I already say thank you very much and best regards

Hanne

Please Log in or Create an account to join the conversation.

Moderators: ForumSupport
Time to create page: 0.053 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!