• Resolved ayssono

    (@ayssono)


    Hello!

    “Enables login using a custom login page
    If checked, NADI does also registers its hook when the URL /login is called. You have to make sure that this URL is mapped by WordPress.”

    Is there a way to use another custom login url than /login ?

    Kind regards,

    Klaus

Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Author schakko

    (@schakko)

    Please note, that the constant is NEXT_AD_INT_PREFIX and not NEXT_AD_INT.

    If print NEXT_AD_INT_PREFIX; does also print nothing, try the following

    
    add_filter('next_ad_int_auth_enable_login_check', 
      function($loginCheckAlreadyEnabled) {
      ...
    }), 10, 1);
    

    instead of

    
    add_filter(NEXT_AD_INT_PREFIX . 'auth_enable_login_check', 
      function($loginCheckAlreadyEnabled) {
      ...
    }), 10, 1);
    
    Thread Starter ayssono

    (@ayssono)

    My plugin code is like this now:

    
    print "1";
    print NEXT_AD_INT_PREFIX; // should print "next_ad_int_"
    
    add_filter(NEXT_AD_INT_PREFIX . 'auth_enable_login_check', function ($loginCheckAlreadyEnabled) {
    print "2";
    		if (!$loginCheckAlreadyEnabled) {
    		$loginCheckAlreadyEnabled = in_array(strtok($_SERVER["REQUEST_URI"],'?'), array (
    			"/logreg"
    		));
    	}
    	
    	return $loginCheckAlreadyEnabled;
    }, 10, 1);
    print "3";

    This delivers: 1NEXT_AD_INT_PREFIX31235

    I will try the change of the filter now.

    Thread Starter ayssono

    (@ayssono)

    Current plugin code:

    print "1";
    print NEXT_AD_INT_PREFIX; // should print "next_ad_int_"
    
    add_filter('next_ad_int_auth_enable_login_check', function($loginCheckAlreadyEnabled) {
    print "2";
    		if (!$loginCheckAlreadyEnabled) {
    		$loginCheckAlreadyEnabled = in_array(strtok($_SERVER["REQUEST_URI"],'?'), array (
    			"/logreg"
    		));
    	}
    	
    	return $loginCheckAlreadyEnabled;
    }, 10, 1);
    print "3";

    It delivers now:
    1NEXT_AD_INT_PREFIX312325

    • This reply was modified 3 years, 8 months ago by ayssono.
    Thread Starter ayssono

    (@ayssono)

    1NEXT_AD_INT_PREFIX312325

    Ah, that number changed and is added now.

    • This reply was modified 3 years, 8 months ago by ayssono.
    Thread Starter ayssono

    (@ayssono)

    It shows now: 1NEXT_AD_INT_PREFIX312325

    But registration is still not working.

    Kind regards,

    Klaus

    • This reply was modified 3 years, 8 months ago by ayssono.
    Thread Starter ayssono

    (@ayssono)

    Hello!

    Any idea, why it is still not working with the custom url?

    Kind regards,

    Klaus

    Thread Starter ayssono

    (@ayssono)

    Hello???

    Plugin Author schakko

    (@schakko)

    I am unable to dig deeper into this issue. Please check if one of the NADI support plans is suitable for you.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Usage of another URL for custom login’ is closed to new replies.