Skip to:
Content
Pages
Categories
Search
Top
Bottom

apply bbpress login code only to forum

Viewing 5 replies - 1 through 5 (of 5 total)
  • @robin-w

    Moderator

    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() ) {

    @haddlyapis

    Participant

    Awesome. That did the trick. Thx.

    @robin-w

    Moderator

    great – glad you are fixed

    @haddlyapis

    Participant

    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.

    @haddlyapis

    Participant

    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?

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