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!]
You must be logged in to reply to this topic.