reCaptcha in 3.3.5

Moderator: crythias

Locked
ZaphoidPA
Znuny newbie
Posts: 4
Joined: 24 Mar 2014, 20:41
Znuny Version: 3.3.5
Real Name: Richard Whittaker
Company: Alberni Valley IT Services

reCaptcha in 3.3.5

Post by ZaphoidPA »

Hi..

I have been following the thread on reCaptcha in OTRS, and dont' really want to "break" anything..

viewtopic.php?f=60&t=5941

In this tread, it says to modify CustomerLogin.dtl, and add some code for reCaptcha, but I notice the references in the artical all point to table locations, and from what I have read in customer.dtl, things are all laid out as DIVs.

So, would I just add in a new DIV in this area, and if so, what would the layout for it be?..

<div class="NewLine">
<label class="Mandatory" for="Email"><span class="Marker">*</span> $Text{"Email"}</label>
<input title="$Text{"Your email address (this will become your username)"}" name="Email" type="$QEnv{"EmailFieldType"}" id="Email" maxlength="150" value="$QData{"UserEmail"
<div id="EmailError" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
</div>
<div class="NewLine">
<button id="CreateAccount" type="submit" value="$Text{"Create"}" disabled="disabled">$Text{"Create"}</button>
</div>

Thanks kindly in advance.

Richard.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: reCaptcha in 3.3.5

Post by crythias »

Code: Select all

<div class="NewLine">
                        <label class="Mandatory" for="Email"><span class="Marker">*</span> $Text{"Email"}</label>
                        <input title="$Text{"Your email address (this will become your username)"}" name="Email" type="$QEnv{"EmailFieldType"}" id="Email" maxlength="150" value="$QData{"UserEmail"}" class="W100pc Validate_Required Validate_Email"/>
                        <div id="EmailError" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
                    </div>

                    <div class="NewLine">
                        $Data{"reCAPTCHA"}
                    </div>

                    <div class="NewLine">
                        <button id="CreateAccount" type="submit" value="$Text{"Create"}" disabled="disabled">$Text{"Create"}</button>
                    </div>
I'd recommend:

Code: Select all

            var RecaptchaOptions = { \n
                    theme: 'clean',
                   lang : 'en', };\n
            </script>\n";
Also increase the #Slider viewtopic.php?f=62&p=65770#p65838
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ZaphoidPA
Znuny newbie
Posts: 4
Joined: 24 Mar 2014, 20:41
Znuny Version: 3.3.5
Real Name: Richard Whittaker
Company: Alberni Valley IT Services

Re: reCaptcha in 3.3.5

Post by ZaphoidPA »

Hi.

Sorry for my ignorance, but where would the second bit of code go?...

Thanks
Richard.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: reCaptcha in 3.3.5

Post by crythias »

Layout.pm
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ZaphoidPA
Znuny newbie
Posts: 4
Joined: 24 Mar 2014, 20:41
Znuny Version: 3.3.5
Real Name: Richard Whittaker
Company: Alberni Valley IT Services

Re: reCaptcha in 3.3.5

Post by ZaphoidPA »

OK, another step forward.

One last thing, the formatting on the page looks... Wierd. The bottom of the form is cut off, and I suspect I have a CSS issue in there somewhere. See the attached. The Submit button is gone too.

Thanks kindly,
Richard.
You do not have the required permissions to view the files attached to this post.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: reCaptcha in 3.3.5

Post by crythias »

crythias wrote:Also increase the #Slider viewtopic.php?f=62&p=65770#p65838
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ZaphoidPA
Znuny newbie
Posts: 4
Joined: 24 Mar 2014, 20:41
Znuny Version: 3.3.5
Real Name: Richard Whittaker
Company: Alberni Valley IT Services

(Solved!) Re: reCaptcha in 3.3.5

Post by ZaphoidPA »

Greetings:

Got everything sorted out, reCaptcha is working like a charm. I did have some head scratching moments with the css, where my changes were not taking effect, and then I realized I was editing a backup copy of the file. DOH!

Thanks for the help!
Regards,
Richard.
Locked