Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to display your friends, and your own activity only in the output of the activity stream instead


  • 9087877
    Inactive

    This would be great if there is some solution to this. I know about filtering but it doesn’t do what I am trying to do. Does anyone know how this can be done. Pretty much its like a facebook type wall that displays your updates and friends updates. Thanks!

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

  • Roger Coathup
    Participant

    @rogercoathup

    Have a look at the scope parameter to bp_has_activities() – supports just-me and friends

    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/


    9087877
    Inactive

    @rogercoathup So is there a way to pass both arguments through parameter scope to display your own and friends activity?
    Example: scope=friends & just-me
    If not then is there any hack I can do anywhere to get this functionality into the activity stream output. Thanks!


    9087877
    Inactive

    Anyone have a clue how to do this? Any links or documentation would be a big help. Thanks!


    Roger Coathup
    Participant

    @rogercoathup

    If you have a look in the code for bp_has_activities(), you can
    see how it’s implemented scope searching internally, and then create your own version:

    e.g. for scope=>friends, it builds an array of the friend IDs and sets that array as the user_id element of the filter.

    Therefore, you should be able to do the same in your template — create an array of friend IDs, add the users own ID to the array, and then pass the array as the user ID filter to bp_has_activities().


    9087877
    Inactive

    Examples???


    Roger Coathup
    Participant

    @rogercoathup

    @shawn38

    If no one comes back with an example, and you need to hire a developer to help write the code, you can try on the Jobs board on this site.


    9087877
    Inactive

    I am actually developing a child theme for buddypress default that I plan giving back to the community so If you would like to help it would be an awesome contribution. Thanks!


    9087877
    Inactive

    Is there anyone that can help or at least point me in the right direction? I am almost done with this theme that I would like to release for free to the bp community. I just want this one thing finished before I do. I really would appreciate any help and I can give you credit on the theme for development as well. Thanks!


    9087877
    Inactive

    Bump


    9087877
    Inactive

    Being that this is the most major flaw of buddypress I have to BUMP! Sorry folks!


    9087877
    Inactive

    @rogercoathup If your not going to provide real world examples then just stop posting here. Most people on this forum are not php programmers and the ones that use it to gain money should be banned! If your not going to provide real world examples then just stop posting here. Most people on this forum are not php programmers and the ones that use it to gain money should be banned! @mercime This is just my opinion but I am tired of people telling you what to do but not enabling or giving you the knowledge of how to do it. Telling someone to hire a developer is not an option because most people including myself are poor, so @rogercoathup If your not going to provide real world examples then just stop posting here. Most people on this forum are not php programmers and the ones that use it to gain money should be banned! Post your bull on the job board if you wanna make money. If you really wanna help open source then quit beating around the bush and give real help when its needed!

    @shawn38

    Shawn Roger provides a great deal of help and support of the forum, and has provided you with some valuable pointers and guidance here which should have helped you. Throwing that help back in someone’s face and insulting them is not very wise, nor is it ever acceptable behaviour on open forums.

    Many of us that can provide the help people require are ‘Professionals’ in the strict meaning of the word we earn our living from web development, I, nor any of the others I suspect, take kindly to phrases like and the ones that use it to gain money should be banned! it’s not a very clever thing to say!

    This thread has become unproductive and I’m closing it.

    Please avoid insulting members on this forum in future.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to display your friends, and your own activity only in the output of the activity stream instead’ is closed to new replies.
Skip to toolbar