Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Why are my blog post updates missing paragraph breaks when shown in the activity stream?


Tatiana
Participant

@svetka812

well… I added the code to the functions.php in bp default theme…(I use 1.2.5.2 ) …nothing happened. Where this function will be called? maybe it should replace something, not to be just added? is there a specific spot in the functions.php where to put it? I place it here, in between these two, that were mentioning the activity stream:

/* Hijack the saving of page on front setting to save the activity stream setting */
function bp_dtheme_page_on_front_update( $oldvalue, $newvalue ) {
if ( !is_admin() || !is_site_admin() )
return false;

if ( ‘activity’ == $_POST )
return ‘activity’;
else
return $oldvalue;
}
add_action( ‘pre_update_option_page_on_front’, ‘bp_dtheme_page_on_front_update’, 10, 2 );

/* added function */

function my_bp_blogs_record_activity_content( $bp_excerpt, $content ) {
return $content;
}
add_filter( ‘bp_blogs_record_activity_content’, ‘my_bp_blogs_record_activity_content’, 1, 2 );

/* Load the activity stream template if settings allow */
function bp_dtheme_page_on_front_template( $template ) {
global $wp_query;

if ( empty( $wp_query->post->ID ) )
return locate_template( array( ‘activity/index.php’ ), false );
else
return $template;
}
add_filter( ‘page_template’, ‘bp_dtheme_page_on_front_template’ );

Sorry for being such a dummy, I am not a pro, just an end user..

Skip to toolbar