Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to display follow-activity in activity stream?

  • Avatar of sam99077
    sam99077
    Member

    @sam99077

    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 3 replies - 1 through 3 (of 3 total)
  • Avatar 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.

    Avatar 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.

    Avatar 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.

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

You must be logged in to reply to this topic.