Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m experiencing the exact same problem as Ralf. I’m running WP 3.0 Multi-site with Buddypress. Normally, in the BP sidebar once a user logs in the sidebar uses “is_user_logged_in” to hide the sidebar login form.

    However, when running W3 Total Cache, this doesn’t work. When the user logs in and is redirected back to the home page they still see the login form and assume that their login failed.

    Here’s the weird thing, it’s only occurring in Firefox.

    I tried disabling page caching first and then browser caching, and without the browser and page cache everything works fine. (I’m still using minify and cdn)

    Any suggestions as to how it can be corrected, so that I can use the page and browser caching features again?

    Great post, it worked like a charm. I’m running WP 3.0.1 with buddypress and one of the links that I had to chase down and change was in the admin bar. If anyone else needs to do this after making carlla’s changes just put the following code in your template’s functions.php file:

    function new_login_link(){
    	global $bp;
    	if ( is_user_logged_in() )
    		return false;
    	echo '<li class="bp-login no-arrow"><a href="' . $bp->root_domain . '/login?redirect_to=' . urlencode( $bp->root_domain ) . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';
    	// Show "Sign Up" link if user registrations are allowed
    	if ( bp_get_signup_allowed() ) {
    		echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';
    	}
    }
    remove_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 );
    add_action( 'bp_adminbar_menus', 'new_login_link', 2 );

    This will replace the function in the buddypress core adminbar file with a new function which swaps “login” for wp-login.

Viewing 2 replies - 1 through 2 (of 2 total)