floppyfringe Posted March 4, 2016 Share Posted March 4, 2016 On the register a new domain page under "Begin the search for your perfect domain name..." the reCAPTCHA is usually a tick box and then click on three "thingies" if your unlucky But on "Contact Us" and "Open Ticket" pages have the more annoying "enter this number" or "bit of a street name sign" version, is there a mod that can change all three to be the click on three "thingies" like fruit, cars, trees etc. Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 4, 2016 Share Posted March 4, 2016 by default only domainchecker and index uses the new Google recaptcha - all other pages used the older method. http://docs.whmcs.com/Google_No_CAPTCHA_reCAPTCHA if you want to change that, you'd need to edit templates/six/includes/captcha.tpl and change... {if $filename == 'domainchecker' || $filename == 'index'} to... {if $filename == 'domainchecker' || $filename == 'index' || $filename == 'contact'|| $filename == 'submitticket'} that will make the new Google Captcha code work with these two pages, then it's just a case of working on the alignment of where you want to position the output (also in captcha.tpl) 0 Quote Link to comment Share on other sites More sharing options...
floppyfringe Posted March 4, 2016 Author Share Posted March 4, 2016 Thanks, but yeah, the postion of the CAPTCHA is a wee problem, they seem to under the submit button. I don't understand why WHMCS doesn't use the same CAPTCHA service throughtout the site. - - - Updated - - - I assume it's the ..... {else} <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">{lang key="captchatitle"}</h3> </div> <div class="panel-body"> <p>{lang key="captchaverify"}</p> {if $captcha eq "recaptcha"} {$recaptchahtml} {else} <div class="text-center"> <div class="col-md-5 col-sm-5 col-xs-5 captchaimage"> <img src="includes/verifyimage.php" align="middle" /> </div> <div class="col-md-3 col-sm-3 col-xs-5"> <input id="inputCaptcha" type="text" name="code" maxlength="5" class="form-control" /> </div> </div> {/if} </div> </div> {/if} {/if} bit in /templates/six/includes/captcha.tpl ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 4, 2016 Share Posted March 4, 2016 Thanks, but yeah, the position of the CAPTCHA is a wee problem, they seem to under the submit button. that's fixable in the template - I didn't post how as I didn't know if you were using a custom theme or a modified "Six". I don't understand why WHMCS doesn't use the same CAPTCHA service throughout the site. they have a habit of adding new features and then only partially using them... one of the new features of v6 was the option to add a captcha to any template - before then, we couldn't. 0 Quote Link to comment Share on other sites More sharing options...
floppyfringe Posted March 4, 2016 Author Share Posted March 4, 2016 Anyone with decent CSS skills to advise how I should edit the file? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 4, 2016 Share Posted March 4, 2016 that code you posted is how the old captcha code is shown - it's the first {else} that will be used for the new version. if you don't get it sorted, i'll take a further look at it at the weekend. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.