Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sending Form Data to Activity Stream

  • @jrunfitpro

    Participant

    Hi All,

    I’m wondering if it is possible to have a little form data go to my activity stream once a workout or lesson is completed on my site. A form that simply had the Workout, Score or Time and some other little workout details that could be submitted through the comments at the bottom of a post or page.

    Maybe this could go to a specific group, or simply into the Activity Stream. I don’t know if this is possible, but I thought I should see if there’s anything out there already made.

    Thanks,

    Justin

Viewing 4 replies - 1 through 4 (of 4 total)
  • @henrywright

    Moderator

    You can add items to the activity stream with bp_activity_add(). You could use your form values to build the content argument.

    Ref: https://codex.buddypress.org/developer/function-examples/bp_activity_add/

    @jrunfitpro

    Participant

    That’s very helpful Henry. Thank you. Is there a tutorial video anywhere? I’m not great with code.

    @rimon_habib

    Participant

    hello @jrufitpro
    I am planning to write a detail tutorial about use of bp_adtivity_add() function later today. I will update you with tutorial link. If i forget, please just remind me with a comment.

    @jrunfitpro

    Participant

    Hi @rimon_habib . How’s the tutorial going? Looking forward to seeing it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sending Form Data to Activity Stream’ is closed to new replies.
Skip to toolbar