BuddyDev

Search

FEATURED MEMBERS PLUGIN – HOW NOT TO SHOW ACTIVITY BUT ONLY NAMES OF MEMBERS

  • Participant
    Level: Initiated
    Posts: 3
    Lucia on #10400

    Hello, is there a way to HIDE the “active on day X – hours X” from the Featured members plugin? I’d like to have only the names of the featured members to be shown but not the details of their latest activity time.

    Thanks
    Lucia

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #10402

    Hello Lucia,

    Thank you for posting. Yes there are ways to achieve this. I have some queries.

    1. How are you listing featured members i.e. by shortcode or widget.
    2. What is your appearance settings i.e. list/grid/slider

    Please let me know.

    Thank You
    Ravi

  • Participant
    Level: Initiated
    Posts: 3
    Lucia on #10403

    Hello Ravi,
    thanks for the swift response.
    1) Widget 2) slider.

    Best,
    Lucia

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #10404

    Hello Lucia,

    Thanks for sharing. You can hide last activity time in following manner.

    Step 1. Copy the plugin template file name ‘members-loop-slider.php’ to the following path

    {current_theme_folder}/buddypress/members/featured/widget/members-loop-slider.php.

    if folders not exists create by your own.

    Step 2. Find the string ‘bp_member_last_active()’ and delete this. That’s it.

    Please let me know if resolved or not.

    Regrads
    Ravi

  • Participant
    Level: Initiated
    Posts: 3
    Lucia on #10431

    Hi Ravi,
    thanks for the reply. I’m quite concerned to go and touch the php, especially thinking of when I’ll have to make updated in the future.
    Do you you think there is an alternative way, maybe just adding some code on the css?

    thanks
    Lucia

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #10442

    Hi Lucia,
    You can use the following css

    
    
    .featured-member-item span.activity {
    display: none;
    
    }
    
    

    Also, the template method recommended by Ravi was fine too. You don’t change it in plugin, instead you keep a copy in your theme.

    I will suggest going with any method which is is more comfortable with you.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 3
    Lucia on #10445

    Hi, Brajesh
    I put this code

    .featured-member-item span.activity {
    display: none;

    }
    in the area that my theme leaves to add custom css but it’s not working.
    Maybe I need to put it somewhere else to make it work. Can you please advise on where to put it?

    thanks again,
    Lucia

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #10446

    Hi Lucia,
    I checked again. The selecter has lower priority causing it to not hide the activity. Please update the code to this

    
    .featured-member-item span.activity {
        display: none !important;
    
    }
    

    This should do it.

You must be logged in to reply to this topic.

This topic is: not resolved