Forums

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

  1. Deadpan110
    Member
    Posted 8 months 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());
    		else
    			$sidebarlogin_post_url = sidebar_login_current_url();

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

    http://wordpress.org/extend/plugins/sidebar-login/

  2. Deadpan110
    Member
    Posted 7 months 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' );

Reply

You must log in to post.

About this Plugin

About this Topic