Advanced Login Popup Mode Fails in DNN 6x
KBA-01116-V0J1M9
Problem
When you enable the default settings in DotNetNuke 6x with Advanced Login Module Popup Mode, the popup fails to work off the Login and Register buttons.
Solution

image

Advanced Login module for DotNetNuke works with DotNetNuke 4x, 5x and now 6x.

However because DotNetNuke 6x has some popup effect by default with the login button it interferes with the Advanced Login Module popup mode.

Solution

To fix this issue, the solution is relatively easy.

After selecting “Popup' from the Advanced Login Basic Settings Edit the skin object login and register as follows.

Default Settings

image

Update to:

image

Login

#dnn_Login,#dnn_LOGIN1_loginLink

Register

#dnn_USER1_registerLink

Save Tab Changes

Update to Templates

Then we need to make a small mod to the templates. After Selecting the Templates tab, click on Custom Script.

image

And modify the script to:

jQuery(document).ready(function(){ 
    /* 
     add any custom initialization logic here, 
    */ 
       jQuery('#dnn_LOGIN1_loginLink').attr('onclick',''); 
       jQuery('#dnn_USER1_registerLink').attr('onclick','');

}) 
function custom_validate_login(){ 
    /* 
    add any custom login form validation logic here, 
    return true if pass validation 
    */ 
    return true; 
} 
function custom_validate_registration(){ 
    /* 
    add any custom registration form validation logic here, 
    return true if pass validation 
    */ 
    return true; 
}

 

Note: We added two new lines highlighted in yellow.

Save Tab Changes and you should be done. With the default skin in DNN 6.0.1, now the advanced login popup mode should work fine. Look at the Advanced Login Module for more assistance with configuring the module with different skins.

Additional Comments

A Blog post about this here: http://www.interactivewebs.com/blog/index.php/dnn-module/dotnetnuke-6-enable-advanced-login-popup-mode/




http://www.interactivewebs.com