BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 1
    Geoff Beale on #52199

    Thanks very much for that Brajesh.

    Made some progress on this and have managed to add a to a gallery but when I attempt to add a comment to an individual media item the gallery appears at gallery level not on the media item.

    Here’s my code:

    `$new_activity_id = mpp_media_record_activity( array(
    ‘media_id’ => $new_file_id,
    ‘type’ => ‘media_comment’,
    ‘context’ => ‘media’,
    ‘user_id’ => 5,
    ‘content’ => ‘The first imported media comment’,
    ) );`

    I would be grateful if you could point out my error, thanks.