ouldfella Posted February 6, 2017 Share Posted February 6, 2017 hi, How to enable it ? thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 6, 2017 Share Posted February 6, 2017 we might need a screenshot or further details so that we know what you are referring to. 0 Quote Link to comment Share on other sites More sharing options...
ouldfella Posted February 6, 2017 Author Share Posted February 6, 2017 thanks for your reply, this is the source code of the button : <input class="btn btn-large btn-primary" value="Inscription" disabled="disabled" type="submit"> and in the clientregister.tpl : <input class="btn btn-large btn-primary" type="submit" value="{$LANG.clientregistertitle}"/> how added html attribut disablad ? 0 Quote Link to comment Share on other sites More sharing options...
ouldfella Posted February 7, 2017 Author Share Posted February 7, 2017 thanks for your reply, this is the code source in templates/alaska/clientregister.tpl <input class="btn btn-large btn-primary" type="submit" value="{$LANG.clientregistertitle}"/> and this is the code in browser : <input class="btn btn-large btn-primary" value="Inscription" disabled="disabled" type="submit"> 0 Quote Link to comment Share on other sites More sharing options...
ouldfella Posted February 7, 2017 Author Share Posted February 7, 2017 I found the probleme : {include file="$template/includes/pwstrength.tpl"} {if !isset($noDisable)}jQuery('.using-password-strength input[type=submit]').attr('disabled', 'disabled'); but if i delete this line 43 in clientregister.tpl, is there any probleme in the future ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 7, 2017 Share Posted February 7, 2017 only when you update your WHMCS - if WHMCS makes changes to the template in the future, it will replace the template you've modified during an automatic update.... unless you rename your theme to something other than "Six". 0 Quote Link to comment Share on other sites More sharing options...
ouldfella Posted February 8, 2017 Author Share Posted February 8, 2017 thanks for your message, but if pwstrength.tpl have a bug, why whmcs use it ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 8, 2017 Share Posted February 8, 2017 thanks for your message,but if pwstrength.tpl have a bug, why whmcs use it ? I don't know if there is a bug in it or not... you might be using a custom template that clashes with jquery, and I haven't bothered to check whether the above code is standard or even which template file it's from. 0 Quote Link to comment Share on other sites More sharing options...
ouldfella Posted February 26, 2017 Author Share Posted February 26, 2017 all templates have this problem, also six template, {if !isset($noDisable)}jQuery('.using-password-strength input[type=submit]').attr('disabled', 'disabled');{/if} this line causes the problem why this line is executed ??? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 26, 2017 Share Posted February 26, 2017 it checks to see that the 2 passwords are the same - if they are, then the "Register" button is ENABLED... if they are not, the "Register" button remains DISABLED. i've just tried it on a v7.1.2 dev, using the default Six theme and it works correctly... when the two passwords match, the button is enabled and when ALL of the required fields have text in them, the registration process can continue. 0 Quote Link to comment Share on other sites More sharing options...
ouldfella Posted February 27, 2017 Author Share Posted February 27, 2017 thank you, that what i did ; i duplicated six template and files one by one and i cleaned my source code then it works, but i didn't know the origine of problem thank you very much it works 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.