Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • Eduardo
    Participant

    @duduweiland

    To be more precise, I need to access $bp->loggedin_user. If I do not run do_action(‘bp_init’) I get an object like this:

    `// not using do_action(‘bp_init’);
    var_dump($bp->loggedin_user);

    object(stdClass)#3391 (6) {
    [“id”]=>
    int(0)
    [“fullname”]=>
    bool(false)
    [“is_site_admin”]=>
    bool(false)
    [“is_super_admin”]=>
    bool(false)
    [“domain”]=>
    NULL
    [“userdata”]=>
    bool(false)
    }`

    But if I do run with do_action(‘bp_init’) I can get all the correct information, but if the plugins I mentioned are active I get also those errors!

    `do_action(‘bp_init’); // loggedin_user);

    object(stdClass)#3378 (6) {
    [“id”]=>
    int(1)
    [“fullname”]=>
    string(5) “admin”
    [“is_site_admin”]=>
    bool(true)
    [“is_super_admin”]=>
    bool(true)
    [“userdata”]=>
    object(stdClass)#3450 (10) {
    [“ID”]=>
    string(1) “1”
    [“user_login”]=>
    string(5) “admin”
    [“user_pass”]=>
    string(34) “__the_password_hash_here__”
    [“user_nicename”]=>
    string(5) “admin”
    [“user_email”]=>
    string(24) “admin @localhost
    [“user_url”]=>
    string(0) “”
    [“user_registered”]=>
    string(19) “2013-01-05 17:25:49”
    [“user_activation_key”]=>
    string(0) “”
    [“user_status”]=>
    string(1) “0”
    [“display_name”]=>
    string(5) “admin”
    }
    [“domain”]=>
    string(36) “http://localhost/blog/members/admin/”
    }`

    * I set the loggedin user with `wp_set_current_user( $userID )`


    Eduardo
    Participant

    @duduweiland

    ok, so I will hack on https://wordpress.org/extend/plugins/buddypress-xmlrpc-receiver and see what I can do.

    The current version of this plugin isn’t working (authentication fails), if someone can help me I appreciate, i really need this

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar