@bofw
12 years, 9 months ago
Hi Guys
Working on custom post types at the moment, but can’t get comments on them to appear in the activity stream.
This code will have the post appear but not the comments.
`function activity_publish_custom_post_types($cpts) { $cpts[] = ‘galleries’; $cpts[] = ‘downloads’; return $cpts; } add_filter ( ‘bp_blogs_record_post_post_types’, ‘activity_publish_custom_post_types’ ); add_filter ( ‘bp_blogs_record_comment_post_types’, ‘activity_publish_custom_post_types’ );`
Any IDeas?
2) Is it possible to change the text is posts such ass User added a new Gallery (rather than blog post)
Cheers Guys!
@bofw
12 years, 9 months ago
Hi Guys
Working on custom post types at the moment, but can’t get comments on them to appear in the activity stream.
This code will have the post appear but not the comments.
`function activity_publish_custom_post_types($cpts) {
$cpts[] = ‘galleries’;
$cpts[] = ‘downloads’;
return $cpts;
}
add_filter ( ‘bp_blogs_record_post_post_types’, ‘activity_publish_custom_post_types’ );
add_filter ( ‘bp_blogs_record_comment_post_types’, ‘activity_publish_custom_post_types’ );`
Any IDeas?
2) Is it possible to change the text is posts such ass User added a new Gallery (rather than blog post)
Cheers Guys!