Skip to:
Content
Pages
Categories
Search
Top
Bottom

$activity_id

  • @designnz

    Participant

    Im trying to generate an activity id for my custom post types and cant seem to get an individual id per activity, im trying to add a favorite button to my posts and went throught the add favorite tutorial from http://www.dnxpert.com/2010/06/11/mark-blog-post-as-favorite-in-buddypress/ but can seem to get it to work.

    heres where im at ( go easy on me im not a developer)

    <?php global $bp;
    $activity_id = bp_activity_get_activity_id( array(
    ‘user_id’ => $bp->displayed_user->id,
    ‘type’ => ‘auction_post’,
    ‘item_id’ => $id,
    ‘component’ => $bp->auction->id,
    ‘secondary_item_id’ => $post->ID
    ) );
    ?>

    Any help would be great!]

    Thanks

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

    Moderator

    Are you trying to add a custom post type to the activity stream when it is posted? Look at the record activity function http://bpdevel.wordpress.com/2011/08/12/custom-post-types-comments-and-the-activity-stream-in-bp-1-5

    @designnz

    Participant

    No I’m trying to add functionality to add a favorite button to an individual custom post type , I’ve manage to get the button to display and functions are in place but it wont display an individual activity id for each post but it just makes one id for them all. So when I favorite one post it shows on every post that it been favorited.

    Any help would be great.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘$activity_id’ is closed to new replies.
Skip to toolbar