Sidebar Login
SSL only site - login not working (2 posts)

  1. Deadpan110
    Posted 4 years ago #

    It seems this problem can occur in several places within the plugin... but this particular section was causing problems:

    // login form
    		if (force_ssl_login() || force_ssl_admin() || is_ssl())
    			$sidebarlogin_post_url = str_replace('http://','https://',sidebar_login_current_url());
    			$sidebarlogin_post_url = sidebar_login_current_url();

    Note, I have added the extra 'is_ssl()' in the above to fix the issue.


  2. Deadpan110
    Posted 4 years ago #

    Another related change - this time for anyone that has customised their WordPress with a plugin that forces all WordPress content to SSL for logged in users.

    The following ensures javascript comes from SSL if the page is SSL:

    // Scripts
    	if (is_ssl()) $myPluginURL = str_replace('http://','https://', WP_PLUGIN_URL);
    	wp_register_script('blockui', $myPluginURL . '/sidebar-login/js/blockui.js', array('jquery'), '1.0' );
    	wp_register_script('sidebar-login', $myPluginURL . '/sidebar-login/js/sidebar-login.js', array('jquery', 'blockui'), '1.0' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Sidebar Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic