Skip to:

[Resolved] How to remove ’Active xyz hours ago’ ?

  • I want to remove ‘Active xyz hours ago’ indicators from:

    1. members directory
    2. member’s page
    3. groups directory
    4. group’s page

    Obviously I can edit the templates, but was wondering if there’s a way to do this in functions.php or bp-custom.php ?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Avatar of @mercime


    How about just adding a one-liner at bottom of style.css file?

    `span.activity { display: none; }`

    Thanks, but I want to prevent “last active” data being echo’d into the template for the sake of user privacy. I was just wondering if anyone had their fingers on a function to do it. No biggie, it’s about time in my project development that I bit the bullet and get stuck into the codex… :)

    Avatar of @mercime



    2. See how it’s used in code given just before related posts section in this page and configure it to what you need

    Thanks, just what I was looking for!

    Could you repost the link in 2. please? (it’s missing its href).

    Avatar of jepucel


    @mercime: Thank you for your response. I did not have the privacy issue, the users just did not want to see it. I tried your fix and it worked like a charm… Cheers!

    Avatar of @mercime


    @jepucel cool :-)

    Avatar of Luciano Passuello
    Luciano Passuello


    @aljuk: One thing that I did that might be of interest: only update the “active x ago” indicator when the user generates an activity that gets logged publicly (i.e. goes to the activity stream)

    Like this:

    remove_action( ‘wp_head’, ‘bp_core_record_activity’ );
    add_action( ‘bp_activity_add’, ‘bp_core_record_activity’ );

    Avatar of cwheelsone


    @mercime : Thanks – placing the “span.activity { display: none; }” in the css worked for me. Q: Now that the activity is hidden, would it be possible to display the users phone# in that same spot? Thanks

    Hi, just put this code in your members- loop.php “

    Telephone is the value of what you want to display.


    Avatar of Donald McIntyre
    Donald McIntyre


    This is the solution, I added span.activity { display: none; } at the end of the style.css and it removed the “Active xyz hours ago” from the member and group widgets so it doesn’t show the site has little liquidity (yet). But leaves the time stamp on the activity streams intact. Perfect!

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

You must be logged in to reply to this topic.