TOPIC:

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

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

My question is: Do you only have to enter the frame code or do you have to enter something else elsewhere?


If you want to make some things as we did yesterday, if you use another element in a form, you need to insert the same code with little changes.

The changes are:
function ff_EMail_validation(element, message)
{
 var badwords = /\b(eric.jones.z.mail@gmail.com|othermail|otheremail)\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_EMail_validation


In this part of code :
function ff_EMail_validation(element, message)

instead, 'EMail' insert the name of an element, (not a title) for which you do validation.

If you want send me the Admin link with data on email ma@evolutio.hr and I'll solve that.

Regards,
Mirko

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

Last edit: Post by Mirec.

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

  • JMLA_Userin
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 31
  • Thanks: 0
Hello Mirko, thanks to your tip I have now found the solution. I have to exchange the "Name" in the Element email address in the code.
Thank you now it works.

Hallo Mirko, jetzt habe ich die Lösung dank deines Hinweises gefunden. Ich muss den "Name" im Element E-Mail-Adresse im Code austauschen.
Vielen Dank nun funktioniert es.
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.

Last edit: Post by JMLA_Userin.

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

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

you're welcome!
If you need more help, feel free to ask! :)

Regards,
Mirko

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

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 4 months 1 week ago #272056

  • pediaf
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 11
  • Thanks: 0
Hello, can you tell me which parts of the code I should replace with the name of my element? they would be all the ones that say element.name or also those that say element.value. My field is called Correo in Spanish.

function ff_EMail_validation(element, message)
{
var badwords = /\b(eric.jones.z.mail@gmail.com)\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_EMail_validation

I understand that this should be put in:
Email Element > Validation > Custom

Attached photo of how I have my element.

I'm waiting for your answer, tks.
Attachments:

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

Last edit: Post by pediaf.

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 4 months 1 week ago #272058

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

name of your element is correo then the code should looks like:
function ff_correo_validation(element, message)
{
var badwords = /\b(eric.jones.z.mail@gmail.com)\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_correo_validation
and that's it

If you need more help let us know

Regards,
Tihana

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

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 2 months 4 weeks ago #273962

  • pediaf
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 11
  • Thanks: 0
I have implemented this function and emails keep coming from eric.jones.z.mail@gmail.com, is there any other way to fix it?

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

Moderators: ForumSupport
Time to create page: 0.059 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!