Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display the time (in days) a user has created his account


  • neoseeyou
    Participant

    @neoseeyou

    Hello

    I would like to display under each user’s avatar (virtually everywhere on the website) the numbers of days, their account has been created.

    Could you provide me a snippet please.

    Thank you

Viewing 1 replies (of 1 total)

  • neoseeyou
    Participant

    @neoseeyou

    I solved myself; i give solution here if someone needs

    <?php
    global $bp;
    get_currentuserinfo(); 
    $user_data = get_userdata($user_ID);
    $joined= date("F Y", strtotime($user_data ->user_registered));
    echo '' . $joined. '';
    ?>
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar