Support » Plugin: WP phpBB Bridge » Login information in top bar

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author KodeFor.Me

    (@merianos)

    You can inspect the registration form of the phpBB by using your web browser console and then copy it in your header, add your style modifications and that’s all 🙂

    Thread Starter Madchen1

    (@madchen1)

    Wow. great but just one problem.

    So now i have this

    if(is_user_logged_in()){
      //show profile info
    }
    else{
      //show login form
    }

    So if I logout i’ll get this message

    You were not logged out, as the request did not match your session. Please contact the board administrator if you continue to experience problems.

    So session id’s are not matching(also checked that manually from urls). If i go to forum board and do logout its fine. Then again on wordpress site user is still logged in but this time if press logout he will be properly lggged out.

    What do you think?

    Thread Starter Madchen1

    (@madchen1)

    Nvm. This is fix. You need to call some functions.

    $ucp_url = trim(get_option('wpbb_ucp_path'));

    Find logout line and put this

    <a href="<?php echo $ucp_url; ?>?mode=logout&sid=<?php echo wpbb_get_sessionid(); ?>">

    For other options do the same pattern.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login information in top bar’ is closed to new replies.