BuddyPress Variable Help Please

Inactive
  • 62 points
    Serious WPMU DEV-ster
    I'm new here
    godrob

    Member  —  23rd May 2011         

    I'm new to all this and could really do with some help. I'm trying to integrate a 3rd party chat room into my BuddyPress site so that logged in members can access the chat room without having to re-enter their login details.

    The vendor has said that this is possible by knowing the global values that BuddPress uses for both 'username' and userid'

    Here's the information I've got:

    // INTEGRATION NOTES FOR CUSTOM DEVELOPERS
    
    // You can insert your existing CMS user Global values into the
    // login procedure. Simply replace the values $_FOO['username']
    // and $_FOO['userid'] with your SESSION, COOKIE or MySQL results.
    
    // Example:
    
    // define(‘C_CUSTOM_LOGIN’,’1?); // 0 OFF, 1 ON
    // define(‘C_CUSTOM_USERNAME’,$_FOO['username']); // username
    // define(‘C_CUSTOM_USERID’,$_FOO['userid']); // userid

    Please can somebody tell me what I should change the following to:

    define(‘C_CUSTOM_USERNAME’,$_FOO['username']); // username
    define(‘C_CUSTOM_USERID’,$_FOO['userid']); // userid

    Appreciate any help here please?