• Hi I would be so grateful for any pointers if anyone can solve the below –

    Perhaps there’s a widget I’ve not been able to find, or perhaps a widget that will allow me to insert some code to achieve it? Or a widget I can adapt ..

    What I’m looking for is to display a stream, similar to that achieved by site-wide activity widget (below), of the activity ONLY of the people I’m following with the plugin Buddypress Follow.

    That widget:
    https://buddydev.com/buddypress/buddypress-sitewide-activity-widget-for-buddypress-1-2-and-above/

    … will show the activity of friends, but is there something I can do to the code to get it to bring in the activity only of those I’m following?

    And if possible, although this isn’t priority where the former is, the activity only of those following me (which I would stick in a sep. tab).

    I would be so SO SO grateful for any help, I’ve looked everywhere and can’t find what I’d need, I appreciate your help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author r-a-y

    (@r-a-y)

    You can try creating your own activity loop with only those you are following:
    https://github.com/r-a-y/buddypress-followers/wiki/Create-your-own-follow-activity-loop

    Thread Starter Kir 2012

    (@kir-2012)

    Thanks R-A-Y ?? I will have a good old read of this tonight.

    Once I have found the (dynamic?) code to add the activity of the people a logged in user’s following into an activity loop, how would I then get this into the sidebar?

    If anyone out there has ever done this before I’d love a tip in the right direction – I’m not an experienced coder, although I know my way around worpress and can add code snippets to my templates – style / function etc and use plugins etc.

    Could I use the arbitrary text widget to bring it in if I created my own loop somehow? Also I want to keep the usual activity loops as they are for use elsewhere. All pointers most gratefully received ??
    Thank you!

    Plugin Author r-a-y

    (@r-a-y)

    Could I use the arbitrary text widget to bring it in if I created my own loop somehow?

    No, you’d need to create your own widget. Do some Googling to find a tutorial.

    Or you could use a PHP widget plugin to input the code. Be careful here as you’ll need to make sure your code is error-free. Also, wrap plugin function calls mentioned in the wiki article with function_exists():
    https://www.wpbeginner.com/wp-themes/best-practice-check-if-function-exists-when-adding-in-wordpress-theme/

    So before you use bp_has_activities(), you’d want to wrap it around:

    if ( function_exists( 'bp_has_activities' ) ) {
    // YOUR CODE HERE
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stream activity of those you're 'Following' in sidebar widget’ is closed to new replies.