Forums

Join
bbPress Support ForumsThemesEdit register.php

Info

Edit register.php

  1. I'm trying to edit register.php in my template file so that it will use my WordPress one instead, this is the code I have so far, but it doesn't work, any help thanks.

    <?php if ( !bb_is_user_logged_in() ) { ?>
    
    <?php header("Location: http://paperviewzine.com/wp-login.php?act=register"); ?>
    
    <?php } else { ?>
    
    <?php header("Location: http://paperviewzine.com/forums/"); ?>
    
    <?php }; ?>
  2. Why not just redirect any calls to register.php to your WordPress site via .htaccess?

    Redirect 301 /forums/register.php http://paperviewzine.com/wp-login.php?action=register
    Redirect 301 /forums/bb-reset-password.php http://paperviewzine.com/wp-login.php?action=lostpassword
  3. What happens when you access the register link in bbPress? Do you get an error, or it just doesn't work? Is it different if you are logged in vs. not logged in?

  4. With the 301? It just kicks you over to WP. If you're logged in, it still asks you to register, which is odd, but that's on the WP trac (it's supposed to say 'Hey, you're logged in, welcome!')

  5. You must log in to post.