Buddypress integration needs Featured image
-
Hi Greg,
I’ve played with buddypress and your awesome plugin. Now if a user post an advert, my buddypress activity stream shows an information ??
for the adverts you use the post-type “advert”. Is it possible to set for this post-type the featured image support? It would be awesome if the first uploaded picture will be saved as feature image (it could be saved within gallery and featured image), then the buddypress activity stream could filled with this image. actually the stream only shows the excerpt.
hope your can help me.
thanks and regards…
parefor all who use wpadverts with buddypress and like to see an activity stream after posting an ad:
create a file named bp-custom.php and save this within themefolder/wp-content/plugins/
copy the following lines (without changes) to this file and save it.
<?php add_post_type_support( 'advert', 'buddypress-activity' ); function customize_page_tracking_args() { if ( ! bp_is_active( 'activity' ) ) { return; } bp_activity_set_post_type_tracking_args( 'advert', array( 'component_id' => buddypress()->blogs->id, 'action_id' => 'new_blog_page', 'bp_activity_admin_filter' => __( 'Published a new advert', 'custom-domain' ), 'bp_activity_front_filter' => __( 'Pages', 'custom-domain' ), 'contexts' => array( 'activity', 'member' ), 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s posted a new <a href="%2$s">advert</a>', 'custom-textdomain' ), 'bp_activity_new_post_ms' => __( '%1$s posted a new <a href="%2$s">advert</a>, on the site %3$s', 'custom-textdomain' ), 'position' => 100, ) ); } add_action( 'bp_init', 'customize_page_tracking_args' ); ?>
thats it ??
- The topic ‘Buddypress integration needs Featured image’ is closed to new replies.