TEMA:

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 2 años 1 mes antes #258040

  • Avatar de FiftyNineDesign Autor del tema
  • FiftyNineDesign
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 74
  • Gracias recibidas: 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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 2 años 1 mes antes #258042

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 786
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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by tihana.krivic.

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 1 año 11 meses antes #260823

  • JMLA_Userin
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 31
  • Gracias recibidas: 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
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 1 año 11 meses antes #260824

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Navegador Platino
  • Navegador Platino
  • Registered
  • Mensajes: 3262
  • Gracias recibidas: 163
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
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by tihana.krivic.

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 1 año 11 meses antes #260825

  • JMLA_Userin
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 31
  • Gracias recibidas: 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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Spamschutz via PHP: Ungültige Adresse (addAnAddress to): 1 año 11 meses antes #260827

  • JMLA_Userin
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 31
  • Gracias recibidas: 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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Moderadores: ForumSupport
Tiempo de carga de la página: 0.096 segundos

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!