mixlplex2 (@mixlplex2)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @JohnJamesJacoby – First off, excellent work. Beautiful system. However, sorry to disagree with you, but I believe Anthony is right that there’s a problem with the plugin with both logging in and logging out (particularly when using the sidebar widget). Here’s why…

    I’m testing with the bbPress RC4 installed in a WP 3.2.1 Network config using sub-directory instead of sub-domain (no BuddyPress installed, just bbPress … no other plugins installed. – I have also tested with another sidebar login plugin and everything worked fine, but I’ve uninstalled it, and when I use the bbPress login widget I get problems.) If I use the bbPress login widget and enter the right credentials it logs me in and redirects me to [site]/[site]/ which obviously a problem.

    When I inspect the Login button element for the bbPress login widget I see:

    <div class="bbp-submit-wrapper">
    <input class="user-submit" type="submit" tabindex="104" value="Log In" name="user-submit">
    <input type="hidden" value="1" name="user-cookie">
    <input type="hidden" value="http://[host]/[site]/[site]/" name="redirect_to">
    <input id="_wpnonce" type="hidden" value="299cce3d83" name="_wpnonce">
    <input type="hidden" value="/[site]/" name="_wp_http_referer">
    </div>

    Since the problem is with the redirect_to hidden value, my guess is that there’s a problem with either

    $redirect_to = apply_filters( ‘bbp_user_login_redirect_to’, ” );

    or

    bbp_redirect_to_field( $redirect_to );

    which are called from bbp_user_login_fields() in the bbp-user-template.php file.

    ….

    Moving on to Log out

    If you correct the URL so that you’re back a the page for your site, you can now see the Gravitar, your name, and the log out link.

    Again, inspecting the log out element we get:

    <a href="http://[host]/[site]/wp-login.php?action=logout&_wpnonce=c08ad91218&redirect_to=http%3A%2F%2F[host]%2F[site]%2F[site]%2F%3Floggedout%3Dtrue">Log Out</a>

    Again, the link to the wp-login.php is fine… it’s the redirect_to afterwards that has the site name twice that’s the problem.

    I’ve also noticed that if the bbPress plugins is activated the WordPress meta for log out includes the redirect_to [site]/[site]/

    If the bbPress plugin is deactivated the native WordPress meta for log out reverts back to normal (without the redirect_to).

    With bbPress installed:

    <a href="http://[host]/[site]/wp-login.php?action=logout&_wpnonce=07d2823a80&redirect_to=http%3A%2F%2F[host]%2F[site]%2F[site]%2F%3Floggedout%3Dtrue">Log out</a>

    Without bbPress installed:

    <a href="http://[host]/[site]/wp-login.php?action=logout&_wpnonce=07d2823a80">Log out</a>

Viewing 1 replies (of 1 total)