[buddypress-trac] [BuddyPress Trac] #5966: Problems in Group Blog Post and Reply

buddypress-trac noreply at wordpress.org
Mon Oct 27 15:42:28 UTC 2014


#5966: Problems in Group Blog Post and Reply
-------------------------+-------------------------------------------------
 Reporter:  shahejad     |      Owner:
     Type:  defect       |     Status:  new
  (bug)                  |  Milestone:  Awaiting Review
 Priority:  highest      |    Version:  2.1
Component:  Core         |   Keywords:  needs-testing dev-feedback 2nd-
 Severity:  major        |  opinion
-------------------------+-------------------------------------------------
 I have came across the strange issue in my buddypress theme which uses the
 bp-default as a parent theme. When some one posts a long reply to a group
 blog post it just truncates the text and provides a [Read More] link. But
 when I click on it, the content just disappears. I have changed the code
 in bp-default/_inc/ajax.php

 '''Regular Function:'''


 {{{
 // Activity content retrieved through AJAX should run through normal
 filters, but not be truncated remove_filter(
 'bp_get_activity_content_body', 'bp_activity_truncate_entry', 5 );
 $content = apply_filters( 'bp_get_activity_content_body',
 $activity->content );

 exit( $content );

 }
 }}}


 '''New Function:'''


 {{{
         // Activity content retrieved through AJAX should run through
 normal filters, but not be truncated
         remove_filter( 'bp_get_activity_content_body',
 'bp_activity_truncate_entry', 5 );
         $content = apply_filters( 'bp_get_the_thread_message_content',
 $activity->content);
         echo $content;
     exit( );
 }
 }}}

 '''1. Before Clicking [Read More]'''

 [[Image(http://s15.postimg.org/5hanosve3/Read_More_1.png)]]

 '''2. After Clicking [Read More]'''
 [[Image(http://s7.postimg.org/tys3u0otn/Read_More_2.png)]]
 Kindly check it and provide me the information that whether its a bug or
 something is wrong in my child theme.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5966>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list