Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • mud1
    Participant

    @mud1

    function DisplayedUserEmail() {
    global $bp;
    echo $bp->displayed_user->userdata->user_email;
    }
    add_action( ‘bp_before_member_header_meta’, ‘DisplayedUserEmail’ ); // find the appropriate action where to you want to hook the action

    or you can still call the function itself


    mud1
    Participant

    @mud1

    Hi there,

    function getDisplayedUserEmail() {
    global $bp;
    global $wpdb;

    $id = $bp->displayed_user->id;
    $request = “SELECT * FROM $wpdb->users WHERE ID =” . $id . “”;
    $result = $wpdb->get_row($request, ARRAY_A);

    return $result;
    }

    Here is a possible solution. Just copy/paste into either function.php or bp-custom.php. I had to this through database query, because I could not find a bp-function for this, or none of them worked for me.
    I’m not a PHP coder so If you can simplify the code, or do it better, feel free to modify it.

    You have to call this function in ‘profile-loop.php’. You can find that in members/single/profile/ template folder.
    You can call it after the endwhile or whereever you want.


    mud1
    Participant

    @mud1

    I have the same question as @intimez mentioned above. Is it possible with OQP to submit post to frontpage and before it appears, admin can review the post first?

    Thanks.

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