This topic has 2 replies, 2 voices, and was last updated 6 years by Laura.

  • Author
  • #185371
     Miriam
    Participant

    Hi all,

    I would like to show the time of the last activity of an user directly in the members directory. At the moment you have to hover a little point to get this information. I want to show it directly – means without hovering or clicking.

    Is there any possibility?  I tried to modify my members-loop.php with the following lines from the k-elements kleo_bp_members_masonry.php, but it doesn’t work. (Unfortunately I have no practice in PHP coding.)

    <div class=”item-meta”><span class=”activity”>’.bp_get_member_last_active().'</span></div>’;

    if ( bp_get_member_latest_update() ) {

    echo ‘<span class=”update”> ‘. bp_get_member_latest_update().'</span>’;

    }

    Perhaps someone can help?

    Best reagards

    Miriam

    Attachments:
    You must be logged in to view attached files.
    #185374
     Miriam
    Participant

    I found a solution by myself:

    <?php
    if ( bp_get_member_last_active() ) {
    echo ‘<span class=”update”> ‘.bp_get_member_last_active().'</span>’;
    } ?>

    #185459
     Laura
    Moderator

    Hello, glad you could resolve it! 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?