Sorry for my english…
I can show everything about Music CPT buddypress activity (site-wide and members activity) with below code by @imath -also thanks for all other plugings 🙂 –
My Question or Problem.
I am using types tools pluging and i have a – frontend – add new music form (about music CPT) and members use this form to add new music with different fields. Also using rich editor and can add media from URL… Buddypress activity stream can show this form body (actually show post body normally). If i add also image from URL to this frontend music CPT form, we can see this image also on buddypress activity. Well i love buddypress.. Flexiable, great..
1 – But if i add video URL on this form do not show embed video on activity stream. I mean that, i tried 100 times frontend or backend, embed video (if use in any CPT) do not show on buddypress. When i click this activty open page and i can see video. I know missing something.
2 – If my author create any music CPT –backend admin side– with Visual Composer, there 3 different actions.
Action:1 – First, Buddypress activty show all font color or image, or texts created by visual composer. Its ok. Love buddypress. But when i select (site-wide or members activty) show post, friendship or comment than turn to everything or music cpt, buddypress now do not display this music CPT, so i must refresh the page. I mean that when a user select everything to post (or comment) or commet to everything: page must otomatically refresh to display my visual composer codes. If i dont refresh the page, activiy stream show like that [vc_row][vc_column][vc_text][/vc_column][/vc_row].
Action 2: When i edit this CPT -backend and created by VC-, buddypress sometimes dont load any activity.. If i delete this post from again backend, everything is ok, all activity is coming back. I dont know how try search this on forum.
Action 3: I am on backend admin and creating a new music CPT without visual composer.. No problem, all edit can show on buddypress again. Such as i shared music 3 hours ago but now editing. I can see this new edit when i scroll actvity page 3 hours ago… BUT, What i want, buddypress activtiy can create a new music post (for this edit) and can say “edited music” … Maybe we can put icon or color original (3 hours ago) cpt, also same time can create clone music for same cpt 🙂 on activity stream… I dont know how to search this 🙂
Long sentences long, i know 🙂 … Maybe someone help me… Becuase i am not developer just copypaste code user 🙂
add_post_type_support( 'music', 'buddypress-activity' );
function customize_page_tracking_args() {
// Check if the Activity component is active before using it.
if ( ! bp_is_active( 'activity' ) ) {
return; }
bp_activity_set_post_type_tracking_args( 'music', array(
'component_id' => 'activity',
'action_id' => 'new_music',
'bp_activity_admin_filter' => __( 'My Music', 'custom-domain' ),
'bp_activity_front_filter' => __( 'Music', 'custom-domain' ),
'contexts' => array( 'activity', 'member' ),
'bp_activity_new_post' => __( '%1$s published <a href="%2$s">Music Suggest</a>', 'xxx' ),
'bp_activity_new_post_ms' => __( '%1$s published <a href="%2$s">Musik/a>, on the site %3$s', 'xxx' ),
) );
}
add_action( 'init', 'customize_page_tracking_args', 1000 );