Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable Activity Stream for Profiles?

  • @lmarvell

    Member

    Is there a way to disable the activity stream for Buddypress profiles? I have private posts to group activity streams showing up in the profile and viewable by anyone, even non registered users. I’d like to disable the activity stream in the profile, but not in the group. Is there a way to do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @sbrajesh

    Participant

    Hi,
    The private updates on group should not be visible to anyone other than the profile owner. It means something is wrong, you should check other plugins.
    btw, yes, you can remove the activity section from profile. put the following code in your theme’s functions.php

    `
    global $bp;
    bp_core_remove_nav_item($bp->activity->id);
    `
    But this will make the profile inaccessible, as activity is set as the default profile component. so you may want to put the following code in bp-custom.php
    `
    define(“BP_DEFAULT_COMPONENT”, “profile”);
    `
    hope that helps.

    @lmarvell

    Member

    Thank you so very much for your help.

    The first bit does as expected and removes the profile all together. It’s a temporary fix until I can locate the source of the problem, but not a good permanent fix. Defining the default component as profile I’m guessing is intended to set the default profile component differently so that it becomes accessible. I’m not having any luck with that. Attempts to access the profile default to the home page. Any thoughts about it?

    I can see that one of the problems I have is with the group wiki plugin. Posts to the group wikis and their responses show up in the activity stream. I think I can just block those and manage that problem, but the other entry that shows in the activity stream, I’m pretty sure is from core buddy press functionality. Replies to entries made to the “Home” form (displayed in the activity stream) also show up in the user’s profile and are visible to users who are not members of the group when they are not logged into the website. When they are logged in this problem disappears. Any thoughts?

    @sbrajesh

    Participant

    Hi,
    The reason it is happening perhaps hide_sitewide is not set to 1 for private activity. Most probably a conflict with some plugin as you already mention above. Can you check the database activity table to confirm that ?

    Have you put the code
    `
    define(“BP_DEFAULT_COMPONENT”, “profile”);
    `
    In wp-content/plugins/bp-custom.php, It will make the profile accessible if put in bp-custom.php. yes,it simply change the default profile component(landing page on profile) from activity to xprofile.

    @lmarvell

    Member

    I got `define(“BP_DEFAULT_COMPONENT”, “profile”);` in the right place and it is now working to keep the activity stream from displaying in the profiles. Thank you.

    Checked the activity table in the DB and for all entries of the type activity_comment, hide_sitewide is set to 0.

    A grep of the plugins turns up no obvious usages of hide_sitewide that are problematic. I’m thinking it’s going to be hidden in some usage of hide_sitewide set to `$sitewide`. This is going to take a while to find, I’m thinking. Any thoughts about where to look first?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable Activity Stream for Profiles?’ is closed to new replies.
Skip to toolbar