[buddypress-trac] [BuddyPress Trac] #7368: Filter / sorting Activity stream

buddypress-trac noreply at wordpress.org
Wed Nov 30 13:08:25 UTC 2016


#7368: Filter / sorting Activity stream
-----------------------------+------------------------------
 Reporter:  Sweeny           |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Activity         |     Version:  2.7.2
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------
Changes (by Offereins):

 * cc: lmoffereins@… (added)
 * component:  Core => Activity


Comment:

 Hi @Sweeny, welcome to BuddyPress Trac, thanks for your ticket!

 You pose an interesting suggestion, which makes sense to look into. For
 now I'll share this solution I'm using in a project which separates
 comments from their activity parent to present them as single items in the
 activity stream, which kind of brings the chronology in.

 {{{#!php
 function prefix_bp_activity_comments_in_stream( $args ) {

         // Force (activity) comment items to be displayed in the stream.
 The
         // default is 'threaded', which stacks comments to their parent
 item.
         $args['display_comments'] = 'stream';

         return $args;
 }
 add_filter( 'bp_after_has_activities_parse_args',
 'prefix_bp_activity_comments_in_stream' );
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7368#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list