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).
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?
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
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?
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
Thanks chrishajer – that’s just what I need it. I had tried the other hidden field, expecting that to work…