[buddypress-trac] [BuddyPress] #2768: Use WP comments' threaded comment depth settings

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Nov 28 18:28:10 UTC 2010


#2768: Use WP comments' threaded comment depth settings
-------------------------+--------------------------------------------------
 Reporter:  DJPaul       |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  1.3
Component:  Activity     |     Version:     
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by boonebgorges):

 I disagree that users will necessarily equate activity comments with blog
 comments, though I like your proclivity for parsimony :)

 Suggestion:http://trac.buddypress.org/browser/trunk/bp-activity/bp-
 activity-templatetags.php#L920 bp_activity_can_comment(),  before
 returning true or false, checks to see whether the WP threaded comments
 box is checked. If so, then it returns true.
 bp_activity_can_comment_reply(), in turn, will check the value of
 $comment->mptt_left against the max depth set on the WP discussion panel,
 and returns true or false accordingly.

 The advantage of this method is that activity depth will mirror blog
 comment depth by default, but will be filterable.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2768#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list