Skip to:
Content
Pages
Categories
Search
Top
Bottom

Merge registration pages

  • @feldman

    Member

    Is it possible? when wp and bbpress is so tight, i would like to use 1 reg page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • @mattbaehr

    Member

    Me too. My main page is WP. I would like users to be able to click the register button and get the BB registration that both would ideally share (once I get that bug fixed).

    @hellweaver666

    Member

    You can just change the register links in the wordpress template to point to the bbpress login and registration forms… that’s easy enough (you can even copy the login form code into the template directly and it seems to work).

    The problem is, how to get users back to the URL they came from after they login (by default they seem to get bounced to the forum home page instead)… any ideas?

    @chrishajer

    Participant

    Could you do this (hidden form field named “re” with the value of the URL to redirect to after submitting the form):

    https://bbpress.org/forums/topic/heres-a-trick-to-redirect-user-back-to-topic-after-login#post-14268

    @mattbaehr

    Member

    How do I change the reg links? In my theme, here is the reg code:

    <li id="meta" class="widget">

    <h2><?php _e('Members') ?></h2>

    <ul>

    <?php wp_register(); ?>

    <li><?php wp_loginout(); ?></li>

    <?php wp_meta(); ?>

    </ul>

    </li>

    What would I do to get it to redirect to the bbpress registration page?

    @chrishajer

    Participant

    Instead of this WordPress function:

    <?php wp_register(); ?> 

    You would have a link to bb-login.php. Then bb-login handles the whole thing. In the login form, you would add that hidden form field to redirect then after login, as explained here.

    https://bbpress.org/forums/topic/heres-a-trick-to-redirect-user-back-to-topic-after-login#post-14268

    @hellweaver666

    Member

    Thanks chrishajer – that’s just what I need it. I had tried the other hidden field, expecting that to work…

    :D

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar