untested, but this should do it, come back if not
change line 3 to
if ( is_user_logged_in() && is_bbpress() ) {
and line 6 to
elseif ( !is_user_logged_in() && is_bbpress() ) {
Awesome. That did the trick. Thx.
great – glad you are fixed
Hi,
If i login normally from the forum page, i am redirected to the forum page (www.apis.de/forum) after entering my login details. When i use this method, i am redirected to the main website page (www.apis.de). Can you help here?
Also, do you know why sometimes after loggin in this way, it says i still need to login? I know i can fix this by pressing ctrl + F5, but i don’t know how to fix it. Any help appreciated.
Hi,
Sorry to keep on this topic. But i have now changed the login link so that it redirects to the main login page: http://www.apis.de/forum where users can login normally.
Can you help with one last thing 🙂 :
I only want the “login/logout links to appear in all sub areas of http://www.apis.de/forum and not on http://www.apis.de/forum itself. Can you help?