Skip to:

Posting to activity stream via PHP

  • shadowfox12


    Is it possible to post into the activity stream via PHP. I need to post updates on the activity stream based on the changes performed to a silverlight application running on my page.

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

  • Tosh


    Not sure but I would start looking on this page:



    I am unable to post on my activity page. I can write but the post button is not showing and my members are not able to create groups on my self. How do i fix this problem?



    @nyroka, it seems like you have a separate issue, you should probably make a new topic with a full description of your problem.

    @shadowfox12, I was looking into this a bit myself, here’s what I found:
    1. In our theme, posting to the activity stream starts with an AJAX call. the HTTP POST field is set, with ACTION=post_update
    2. the AJAX call is handled by wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php (line 112) in the function bp_dtheme_post_update()
    3. this function calls the bp_activity_post_update() function, which lives in wp-content/plugins/buddypress/bp-activity.php (line 374)
    4. bp_activity_post_update() calls bp_activity_add() (same file, line 628) which creates a new object of type BP_Activity_Activity and runs its save() method.
    5. the BP_Activity_Activity class is defined in wp-content/plugins/buddypress/bp-activity/bp-activity-classes.php, and the save() method does the database update/insert.

    I’m half documenting this for myself, and half hoping that it helps you. Best of luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Posting to activity stream via PHP’ is closed to new replies.
Skip to toolbar