Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @dwkeys

    Member

    Here’s what I have so far that seems to work, you can’t delete your reply by hitting unlike, but you can with the delete button. This starts at line 310.

    /* bp_activity_add( array( 'action' => $action, 'component' => 'bp-like', 'type' => 'activity_liked', 'user_id' => $user_id, 'item_id' => $activity_id ) ); */

    /* Add like as reply instead of new post in activity stream */
    $comment_id = bp_activity_new_comment( array(
    'content' => $action,
    'activity_id' => $activity_id,
    'parent_id' => $parent_id
    ));

    if ( !empty( $comment_id ) )
    bp_core_add_message( __( 'Reply Posted!', 'buddypress' ) );
    else
    bp_core_add_message( __( 'There was an error posting that reply, please try again.', 'buddypress' ), 'error' );

    /*bp_core_redirect( wp_get_referer() . '#ac-form-' . $activity_id );*/

    add_action( 'wp', 'bp_activity_action_post_comment', 3 );

    /* End Like Reply */

    @dwkeys

    Member

    Is there a way to get the “User likes Users activity” to show up under their post like a reply?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar