Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to display follow-activity in activity stream?

  • Hi,

    any chance to display a message in the activity stream whenever a user starts following another user?

    Like: ‘user a is now following user b’

    I´m using WP & Buddypress Template Pack and can´t see such a message in the a-stream.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Profile photo of rauru-block
    rauru-block
    Member

    @rauru-block

    I’m afraid this plugin itself doesn’t have the function to add messages in the activity stream.

    After six hours of labour, I have finally figured out how to add the function as a separate plugin. There are two hooks, bp_follow_start_following and bp_follow_stop_following, for such a purpose. So we can write a plugin using these hooks, theoretically. But here is another problem. In BP Followers 1.1, these hooks don’t work, causing runtime errors, because of lacking array() in a do_action_ref_array() argument. Perhaps it can be fixed soon, and we can write a plugin to display follow/unfollow messages in the activity stream.

    Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Thanks for reporting rauru-block.

    Issue is fixed in the development version:
    https://github.com/r-a-y/buddypress-followers/zipball/master

    It will make its way in v1.1.1 in the next week or so.

    Profile photo of rauru-block
    rauru-block
    Member

    @rauru-block

    Thank you for fixing!
    I’m now writing a code to inject follow/unfollow messages into the activity steram, using bp_activity_add() function.

    Profile photo of Maddish
    Maddish
    Participant

    @maddish

    Hi, I wrote this code for that

    http://inauditas.com/add-buddypress-follow-activity-stream/

    It’s in spanish but the code is commented in english….
    hope it’s useful.

    I also wrote the code for the WTI Like Post plugin

    http://inauditas.com/wti-like-post-actuvuty-stream-buddypress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to display follow-activity in activity stream?’ is closed to new replies.