Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] How to only show friends in the Activity stream?


  • findly01
    Participant

    @findly01

    I know this question has been asked in the past but I am unsure how to only make a user’s friends appear in the BuddyPress activity stream after they login. Every solution I have seen so far has bugs and the Activity stream only shows ‘Load More’ and not the users own content or there friends.

    Thanks in advance,

    Findly01

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

  • findly01
    Participant

    @findly01

    I’m also using a fresh-install of Buddypress 1.6 so nothing has changed.


    bp-help
    Participant

    @bphelp

    Try this! it has been revised and it works for me.


    bp-help
    Participant

    @bphelp

    Sorry the link didn’t print so just copy and paste it into your browser.
    http://www.mediafire.com/?znbde6d1r2l0k57


    findly01
    Participant

    @findly01

    Thanks, that worked but it displays ‘Load More’ when there is no posts. Plus, on members profiles that a user isn’t friends with, the activity stream is blank.

    Also, how can I remove the text ‘All Members [2]’?

    My site – http://www.findly.co.uk

    Thanks again.


    bp-help
    Participant

    @bphelp

    do you have a demo user name and password so I can see what it is?


    findly01
    Participant

    @findly01

    Here you go:

    Username – test1

    Password – demo


    bp-help
    Participant

    @bphelp

    Okay I see what you mean. I had activity before I installed the plugin. It says Sarah Gooding is the author. I think its just a small bug that is un-noticible if you have some activity. Maybe someone else here can find a fix because I am not much of a coder. Sorry!


    bp-help
    Participant

    @bphelp

    to not display that you would put something like the below in your style.css:
    #members-all.selected {
    display: none;
    }


    findly01
    Participant

    @findly01

    Thank you.

    I might disable the plugin and edit the site so when a user logs in they see their member profile instead of the sitewide activity. Any ideas on how to do this? Also, I need to some how make the user’s member profile visible in the top navigation instead of the page title ‘Members’…

    And I’m not a good coder either 🙂

     


    bp-help
    Participant

    @bphelp

    on members profiles that a user isn’t friends with, the activity stream is blank

    Ain’t that kinda the point of the plugin to not allow non-friends see your activity?
    Maybe there is a function somewhere that will post a message that says you have to be friends with this user to view their activity. Hopefully someone else can help us on how to do that.


    bp-help
    Participant

    @bphelp

    I might disable the plugin and edit the site so when a user logs in they see their member profile instead of the sitewide activity. Any ideas on how to do this?

    Have you tried this plugin?
    https://wordpress.org/extend/plugins/buddypress-login-redirect/


    findly01
    Participant

    @findly01

    Thanks for the link

    Any idea how to change the link in the navigation from ‘Members’ to ‘Your Profile’, so the user doesn’t have to trawl through profiles each time?

    Also, how can I hide the Activity pages etc. until the user loggs in?


    bp-help
    Participant

    @bphelp

    Also, how can I hide the Activity pages etc. until the user loggs in?

    Read my reply in the following thread to accomplish this.
    https://buddypress.org/support/topic/private-community-with-public-wordpress/


    findly01
    Participant

    @findly01

    Thanks.

    Now I just have the problem of changing the Members text to ‘My Profile’ and making it link to the user’s profile page.

    There’s a good article here:

    http://wpmu.org/how-to-build-a-facebook-style-members-only-wordpress-buddypress-site/


    bp-help
    Participant

    @bphelp

    Okay after alot of trial and error I came up with this and it will do what you stated above. First I hope your using a child theme. If so go into the style.css and add this line:
    `
    li#members-all.selected {
    display: none !important;
    }
    `
    That will rid you of that “All Members” tab.
    Next follow my instructions in this link and adjust it to your version of buddypress because the directory structure is different but it shouldn’t be much of a problem. Here is the link:
    http://pastebin.com/FMvCEKmf


    findly01
    Participant

    @findly01

    Thanks for the link but I get an ‘Unknown Paste ID’ error message.


    bp-help
    Participant

    @bphelp


    danbpfr
    Participant

    @chouf1


    findly01
    Participant

    @findly01

    @bphelp – Thanks for all the help you have given me. I am about to modify my site and will report back the changes. First I need to make a Child Theme. Also, I need to disable the sitewide activity or maybe move it as a widget to the front page.

     


    @chouf1
    – That plugin is buggy.


    nawakiri
    Participant

    @nawakiri

    @bphelp — I need the same functionality.

    A variation of the CSS trick did hide the tab:
    `#activity-all {
    display: none !important;
    }`

    However, after the user just logs in and clicks sitename.com/activity/, the default tab is still “activity-all”, and the user still sees all the activity, unless the user clicks on one of the tabs.

    Rather than hiding the tab, I would like to disallow the list item “activity-all” from being generated at all from the server.

    Was the mediafire link you posted a plug-in that would do so?

    Or is there another solution you’d suggest?


    bp-help
    Participant

    @bphelp

    http://www.mediafire.com/download.php?u6oos92g344485f
    This plugin does not hide the activity tab in the main nav or in the profile activity tab but it does make activity friend only unless your the admin in which case it shows sitewide activity. To test it you would have to create two accounts that are not admins and not friends and put come activity in on both and you will see that as long as your not friends you can not see the others activity.


    findly01
    Participant

    @findly01

    @bphelp – Thanks for the plugin.

     

    Findly.co.uk


    nawakiri
    Participant

    @nawakiri

    @bphelp
    Sorry that I was too late — the file was already deleted when I tried to download it. Can you upload it again?
    (or send to nawakiri@gmail.com, if that is better.)

Viewing 23 replies - 1 through 23 (of 23 total)
  • The topic ‘[Resolved] How to only show friends in the Activity stream?’ is closed to new replies.
Skip to toolbar