Kilho.net
IT Ramblings

GnuBoard Integration Complete

Integrated with GnuBoard using the WordPress member database, enabling users to log in and write posts on the board.

  1. Subdomain and cookie sharing
  2. Save the following source code as ”wp-sso.php” on the server where WordPress is installed
    [PHP]’.$user->user_login.’’;
    //echo ’’.$user->user_nicename.’’;
    echo ’’.$user->display_name.’’;
    echo ’’.$user->user_email.’’;
    echo ’’.$user->user_url.’’;
    }
    ?>[/PHP]
  3. If there is no GnuBoard session value but a WordPress cookie value exists, process module 2 on the server to implement SSO(Single Sign On) functionality 
  4. If there is a GnuBoard session value but no WordPress cookie value, clear the session and refresh the page
  5. Resize the page when the GnuBoard page load event occurs

 

 

2 kommentarer

  1. 전진

    안녕하세요.. SIR에서 온 전진입니다.
    혹시 나머지 코드를 볼 수 있을까해서요.. ^^
    부탁드립니다.

    1. 오길호

      급하게 정리하여 올렸습니다 ^^
      http://kilho.net/archives/mypost/786

Lämna ett svar

Din e-postadress kommer inte publiceras. Obligatoriska fält är märkta *