Forums

Join
bbPress Support ForumsRequests and FeedbackRedirect Login target parent

Info

Redirect Login target parent

  1. Hi I am integrated with wordpress and am using the bb_press login to handle the users login and registration. The login is housed under the wordpress roof, meaning I want to blogs look but with the bbpress login. So I placed an iframe between header and footer for when they click login.

    Well, My problem is that from this iframe I don't know how to get bb-login.php to target the parent when its done and not stay within the iframe. And yes, I need the iframe, how else could I use the bbpress login while still making the users feel they are within the confines of the blog?

    Help please! Did I post in the right forum. If not help me know where to post so I get help quick!

    Thanks a million in advance!

  2. I'm not sure about the iframe issue at all. Many people would like the forum to look like the WordPress blog. Normally you end up having to create a bbPress theme that looks like your blog theme.

    How about using this redirect trick to get them where you want them after submitting the form?

    http://bbpress.org/forums/topic/redirect-after-login-error#post-19576

  3. Thank you much for your reply! So I can just place:

    <?php
    if ($re == 'http://#postform') {
    echo $_SERVER['HTTP_REFERER'].'#postform';
    } else {
    $re;
    }
    ?>

    in the bb-login.php? Where about? Do I replace somthing with it?

  4. I tried placing it for value="" in the login.php of the template and it produced an error that said it has created a loop that will never end.

  5. Alright, I placed a direct link to where I wanted to point in value="" and it now works. Thanks!

  6. You must log in to post.