Jump to content

Turn Captcha Off For Domain Searches?


laffinboy

Recommended Posts

Hello,

 

Do you want it disabled entirely, or just for that one page? If just that one page, simply edit the .tpl files removing:

 

       {if $capatacha}
       <div class="captchainput">
           <p>{$LANG.captchaverify}</p>
           {if $capatacha eq "recaptcha"}
           <p>{$recapatchahtml}</p>
           {else}
           <p><img src="includes/verifyimage.php" align="middle" /> <input type="text" name="code" class="input-small" maxlength="5" /></p>
           {/if}

 

If you want it globally, WHMCS >> Setup >> General >> Security Tabs

Link to comment
Share on other sites

  • 3 weeks later...
Hello,

 

Do you want it disabled entirely, or just for that one page? If just that one page, simply edit the .tpl files removing:

 

       {if $capatacha}
       <div class="captchainput">
           <p>{$LANG.captchaverify}</p>
           {if $capatacha eq "recaptcha"}
           <p>{$recapatchahtml}</p>
           {else}
           <p><img src="includes/verifyimage.php" align="middle" /> <input type="text" name="code" class="input-small" maxlength="5" /></p>
           {/if}

 

If you want it globally, WHMCS >> Setup >> General >> Security Tabs

 

This doesn't appear to work when the when the code is removed from the homepage.tpl.

 

I also have the Domain search added to the "homepage.tpl", when that code is removed, it always returns with "The characters you entered didn't match the image shown. Please try again."

 

:(

Link to comment
Share on other sites

  • 1 year later...

Go to your

 

Domainchecker.tpl file within your templates folder.

 

Once within this file go to lines 28 to 37 which should be the following code.

 

        {if $capatacha}
       <div class="captchainput">
           <p>{$LANG.captchaverify}</p>
           {if $capatacha eq "recaptcha"}
           <p>{$recapatchahtml}</p>
           {else}
           <p><img src="includes/verifyimage.php" align="middle" /> <input type="text" name="code" class="input-small" maxlength="5" /></p>
           {/if}
       </div>
       {/if}

 

Remove that bit of code and save the template file.

 

Now go into your WHMCS Admin Panel

 

Go to the Setup Tab then General Settings

 

Click on the Security Tab there select weather you want Captcha Form Protection...

 

Always On (code shown to ensure human submission)

Off when logged in

Always Off

 

Save and your good to go.

 

- - - Updated - - -

 

Another note... If you do not use "Always OFF" for captcha then in the domainchecker.tpl you will also have to remove lines

 

3 to 7

 

{if $inccode}
<div class="alert alert-error textcenter">
   {$LANG.captchaverifyincorrect}
</div>
{/if}

 

- - - Updated - - -

 

Scratch that last note sorry, tired haha.

Link to comment
Share on other sites

  • 2 months later...

I just hit this after finding out Captcha was causing grief for prospective clients. In General -> Security I have captcha set to 'off when logged in'

I tried the tpl edits that Viggit posted above and whilst they remove the capture from the domainchecker page, they also make the domain checker not do it's job! With the code above removed, you can enter a domain into the input field, click check availability and it appears to go off and check it... but then when it's returned there's no availability shown - just the price table magically appearing.

 

What am I missing, or are the instructions above wrong?

 

At the moment I've had to set captcha to 'always off' but I'd prefer to not have to do this!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated