WordPress.org

Ready to get started?Download WordPress

Forums

Absolute Privacy
WordPress 3.01 Multisite Workaround Hack for 1.3 (3 posts)

  1. clmerle
    Member
    Posted 3 years ago #

    I discovered that Absolute Privacy 1.3 will work with a regular WordPress 3.01 install but not a multisite install. I've found a workaround hack that you can try until a compatible version is released and you need to use AP with a WP3 mulisite.

    When you try to register as a user and click on the link. WordPress checks in the file wp-login.php to see if it's a multisite. If it is then you are redirected to /wp-signup.php. If not it directs you to /wp-login.php?action=register. Note: Absolute Privacy plug-in needs to be enabled and users allowed to register themselves. Make sure under Super Admin->Options that User accounts may be registered is enabled and that the Dashboad Default Role is set to Unapproved User. Here's the fix (aka workaround hack):

    You will need to edit the file wp-login.php. Change is_multisite() to !is_multisite(). is_multisite() is in several locations in file so see below where the change should be made. AP will not take you to the custom login form if you are redirected to wp-signup.php but will if you aren't. By negating is_multisite() with ! you are no longer redirected. You are taken to wp-login.php?action=register which shows the customized Absolute Privacy registration page and everything works as expected.

    OLD

    case 'register' :
            if ( <strong>is_multisite()</strong> ) {
                    // Multisite uses wp-signup.php
                    wp_redirect( apply_filters( 'wp_signup_location', get_bloginfo('wpurl') . '/wp-signup.php' ) );
                    exit;
            }

    NEW

    case 'register' :
            if ( <strong>!is_multisite()</strong> ) {
                    // Multisite uses wp-signup.php
                    wp_redirect( apply_filters( 'wp_signup_location', get_bloginfo('wpurl') . '/wp-signup.php' ) );
                    exit;
            }

    I want to stress that this is a workaround hack and may not work with future versions of WordPress 3.0x. John Kolbert is working on a version 1.4 of Absolute Privacy and is in beta but there is no word on when it will be ready.

    A multi-site user registration page works a little different than a regular site. If a WordPress 3.0 website not set up as multi-site Absolute Privacy works as expected as in earlier 2.9x versions of WordPress. Since a multi-site install directs users to a different signup page it bypasses all of the Absolute Privacy functionality.

    Chris

    http://wordpress.org/extend/plugins/absolute-privacy/

  2. johnkolbert
    Member
    Plugin Author

    Posted 3 years ago #

    Lack of multisite support is a known issue and was not fixed in v2.0 which was just released. In fact I made the plugin just not do anything if it detects a multisite installation.

    As you mentioned, multisite registrations and logins are much different and more complex than a single site installation and I haven't had the time to put into getting this working properly.

  3. Tevya
    Member
    Posted 3 years ago #

    Any idea of an ETA for a multisite version? And would donations help to make it happen sooner?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic