Jump to content

Rigster button disabled


AndreasD

Recommended Posts

19 hours ago, AndreasD said:

Hey so i have tried for a long time to get this to work but the Register button does not work its just saying disabled="disabled" how do i fix this

if it's disabled, that usually implies that you haven't completed all the required fields in the registration form - are you using a custom or modified theme ?? if so, what happens when you use the "Six" template instead ?

Link to comment
Share on other sites

3 hours ago, brian! said:

if it's disabled, that usually implies that you haven't completed all the required fields in the registration form - are you using a custom or modified theme ?? if so, what happens when you use the "Six" template instead ?

Its working fine when i change the template to "Six" and yes im using a custome template but when i change it back to my template its not working some where its being told its going to be disabled="disabled" but i dont know where its comming from?

Link to comment
Share on other sites

Nvm i fixet the only thing i have to do was to go into the pwstrength.tpl thats in the includes folder and finde where its say "disabled" and every line its say disabled on was i need to change to enabled like this

 

function validatePassword2() {
    var password1 = jQuery("#inputNewPassword1").val();
    var password2 = jQuery("#inputNewPassword2").val();
    var $newPassword2 = jQuery("#newPassword2");

    if (password2 && password1 !== password2) {
        $newPassword2.removeClass('has-success')
            .addClass('has-error');
        jQuery("#inputNewPassword2").next('.form-control-feedback').removeClass('glyphicon-ok').addClass('glyphicon-remove');
        jQuery("#inputNewPassword2Msg").html('<p class="help-block">{$LANG.pwdoesnotmatch|escape}</p>');
        {if !isset($noDisable)}jQuery('input[type="submit"]').attr('enabled', 'enabled');{/if}
    } else {
        if (password2) {
            $newPassword2.removeClass('has-error')
                .addClass('has-success');
            jQuery("#inputNewPassword2").next('.form-control-feedback').removeClass('glyphicon-remove').addClass('glyphicon-ok');
            {if !isset($noDisable)}jQuery('.main-content input[type="submit"]').removeAttr('enabled');{/if}
        } else {
            $newPassword2.removeClass('has-error has-success');
            jQuery("#inputNewPassword2").next('.form-control-feedback').removeClass('glyphicon-remove glyphicon-ok');
        }
        jQuery("#inputNewPassword2Msg").html('');
    }
}

jQuery(document).ready(function(){
    {if !isset($noDisable)}jQuery('.using-password-strength input[type="submit"]').attr('enabled', 'enabled');{/if}
    jQuery("#inputNewPassword2").keyup(function() {
        validatePassword2();
    });
});

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