Having issues with the redirect on login as well. Can’t get the referer to work properly or the custom link. Everything re-directs to the site home page, which I’m assuming is because the referer is sending the user to the dashboard. I’ve disabled the dashboard using roles and capabilities in function.php which kicks all non-authorized users to the home page.
The rule in functions.php wouldn’t get triggered if the referer or custom link worked properly.
I also have some trouble.
When custom was enabled, it did not redirect there. Then using the Back button in browser went to Profile, even though I hadn’t been there.
I suggest you all disable all other plugins and see if it works then.
You’re right, S2Member has a setting for this too, so I’d better look there first since it seems to be the active setting.
Thanks.
I’ve also found the plugin bbPress to cause this type of problem.
The redirection isn’t working for me either.
I’ve also disabled the dashboard and I use bbpress which is an important part of my site, so not using bbpress is not an option.
Hopefully the developer will figure out a way to get this plugin to work properly with those others because I like the functionality it promises.
Hello All,
I’m having the same problem, after logging in it won’t redirect to Referer, nor does it redirect to where I tell it with the option after that.
Any suggestions?
Thanks
I suggest you all disable all other plugins and see if it works then.
Report your findings here.
Ya bbpress prevents TML redirect from working here as well.
Deactivate bbpress, TML redirects work fine. Activate bbpress, TML no longer redirects – it always directs user to home page, regardless of role or redirect settings.
I’ll look into testing with bbPress when I get a chance.
Does any one know of a workaround, other than not using bbPress(!)? Really diluting the usability of the site when users have to navigate back to where they were before logging in.
If you look in the bbpress directory, and navigate to includes > core > filters.php, you may comment out lines 47 and 48 (filtering login_redirect and logout_url).
Because this edits a core bbpress file, it will need to be repeated if you update bbpress.
If you look in the bbpress directory, and navigate to includes > core > filters.php, you may comment out lines 47 and 48 (filtering login_redirect and logout_url).
Because this edits a core bbpress file, it will need to be repeated if you update bbpress.
I’ve confirmed this works with TML 6.2.3 on WP 3.5 and BBPress 2.2.3. Thanks the3seashells!
R
Is there a ‘real’ fix for this?
I can’t imagine that JJ is doing something that wrong with bbPress. and having to manually update bbPress on each update is a non-starter as I use the nightly svn on a cron job.
Just because bbPress has it’s own redirection settings, as does TML, doesn’t mean either one of them is doing anything wrong.
Try adding this to wp-content/plugins/theme-my-login-custom.php
:
function tml_init() {
remove_filter( 'login_redirect', 'bbp_redirect_login', 2, 3 );
remove_filter( 'logout_url', 'bbp_logout_url', 2, 2 );
}
add_action( 'bbp_init', 'tml_init' );