Topic Closed
heinerke
5 Posts

Hallo,

wo kann ich denn die Darstellung (das Aussehen) des Captchafeldes und seiner Beschriftung verändern, damit es hübscher aussieht und der Text sich nicht nur auf "Captcha x+y" beschränkt, denn nicht alle Nutzer*innen des Webs können damit etwas anfangen (weil sie nicht verstehen, dass es eine Sicherheitsabfrage ist).

Dezeitiger Ausgabestatus: siehe Bild unten.

Grüße, Heiner

 

Englisch, translated by Deepl:

Design Anti Spam Math in the Contactform

Hello,

where can I change the appearance of the captcha field and its caption, so that it looks nicer and the text is not limited to "captcha X+Y", because not all users of the web understand this.

Current output status: see picture.

Edited: 3 years ago#11657

mabu
452 Posts
7.8K Downloads
5 Themes
9 Plugins

Generally You can click in Firefox with right mousekey : inspect element  ( Q ) at the field or the border. Then You see the connected classes, which You can restyle in the stysheet or in the custom.css of the layout editor. If You publish a link then i can give You the classes.  An example .contactform input {border:1px #4169E1 solid !important; border-radius:3px;}

If You want to change the string then You will - for example with Super finder XT portable - have to look in the code of the plugin for captcha - but there will be a problem with translations if You change the string. (What exactly do You want to change into what ?)

* Typesetter has also the possibility to make a google-captcha v2, for which You must register at google and get 2 strings, which You fill in under settings.

Edited: 3 years ago#11659

heinerke
5 Posts

Translated by Deepl.com

 

Thanks a lot mabu,

i like the simple and straightforward aspect of Anti Spam Math, so the CSS is not my concern (sorry if i didn't write that clearly at first).

But in the picture below you can see how I would like to change the text as an example.

How do I have to change the string/code in the file AntSpamMath.php? Is it somewhere at line 69, where it currently says

        $compare = $_POST['asm_4'];
        //message('result: '.$result.' vs submitted: '.$compare);

        if( $compare != $result ){
            message($message.' (3)');
            return false;
        }

 

Many greetings, Heiner

 

Edited: 3 years ago#11660

mabu
452 Posts
7.8K Downloads
5 Themes
9 Plugins

(It is probably easier to talk german in this case ..? Other users my copy it into deepl - only for this time) : Ich weiss nicht genau was geändert werden soll

Eine Seite mit dem captcha ist http://typesetter5.bplaced.net/Contact - eine Seite mit recaptcha V2 ist https://www.universal-path.org/Contact

Der Code für das captcha steht auch in /include/special/ContactGadget.php.

Im  text.php des plugins steht ein englischer Kode, den man gegebenenfalls übersetzen kann - allerdings kein 'Captcha', das man durch 'Captcha : bitte beantworte die Sicherheitsabfrage' ersetzen kann.

Im Quellkode steht <div class="captchaForm">Captcha <input type="hidden" name="asm_1"....

In ContactGadget.php. Zeile 205 steht 

echo '<div class="captchaForm">';             echo \gp\tool\Output::ReturnText('captcha');  das 'captcha' kann man evtl. ersetzen durch 'Sicherheitsfrage : '

(Falls in recaptcha v2 die Sprache nicht klappt, kann man versuchsweise in Recaptcha.php in Zeile 50  <script src='https://www.google.com/recaptcha/api.js?hl=de'></script> eintragen)

 

 

 

Edited: 3 years ago#11661

heinerke
5 Posts

Im text.php des plugins steht ein englischer Kode,
den man gegebenenfalls übersetzen kann.

Korrekt. Doch zudem lässt sich das in der Plugin-Verwaltung (Admin/Addons) komfortabel für jede Sprache regeln.

 

In /include/special/ContactGadget.php. Zeile 205/206 steht 

echo '<div class="captchaForm">';
echo \gp\tool\Output::ReturnText('captcha');

Das 'captcha' kann man evtl. ersetzen durch 'Sicherheitsfrage : '

 

Ja, das war es, das funktioniert!

Sehr herzlichen Dank, mabu!

 

 

3 years ago#11672

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

Log In

  Register