BuddyDev

Search

[Resolved] Using Bimber theme, Stealth Mode for Site admin breaks activity posting and disl

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #14867

    I am using the Bimber theme for our new site, most of the BuddyDev plugins work great with it. But the “Stealth Mode for Site admin” plugin breaks the activity feed on a users profile. I can’t post new activity or see old activity.

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #14870

    Hi Gregg,
    That was intentional to hide the activities(even self posted was not visible). Do you want to have it enabled for the site admins?

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #14885

    That’s interesting. It makes sense too. I was thinking it was just interacting with other users and their profiles that would be “stealth”, but its also the admins own activity on their own profile. I get it.

    I would like an admin to be able to use their profile normally, but still have the stealth for anything they do with other users. Can this be a setting?

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #14889

    Hi Gregg,
    Thank you for sharing your thoughts. Sure, we can just update the plugin. Please allow me 2 days to put an update.

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #14892

    Thats aweome, thank you.

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #15023

    Hi Brajesh, I am just wondering if we have an update for this yet?

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #15028

    Hi Gregg,

    I have checked the plugin again.
    We do have the facility to allow the visibility for admin’s activity.

    Please put this code

    
    /**
     * Do not hide admin's activity from site admin.
     *
     * @param bool $hide hide .
     *
     * @return bool
     */
    function buddydev_custom_show_admin_activity( $hide ) {
    	if ( is_super_admin() ) {
    		$hide = false;
    	}
    
    	return $hide;
    }
    
    add_filter( 'bp-sm-hide-activity', 'buddydev_custom_show_admin_activity' );
    
    

    In your bp-custom.php or your theme’s functions.php and it will be visible for site admin.
    In future, we will put it as an option in settings.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #15035

    Thank you. Added it, and it works. I’ll just have to remember to remove it when you add the option.

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #15040

    Thank you for confirming.

    Most probably, that filter will be obsolete by then, no need to worry about it.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved