[buddypress-trac] [BuddyPress] #2070: Mulitple Custom Activity Loops

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Feb 25 12:38:34 UTC 2010


#2070: Mulitple Custom Activity Loops
-------------------+--------------------------------------------------------
Reporter:  lofish  |       Owner:     
    Type:  defect  |      Status:  new
Priority:  minor   |   Milestone:     
Keywords:          |  
-------------------+--------------------------------------------------------
 If you run through a custom activity loop in a plugin specifying specific
 fields such as user_id its output will be influenced by another activity
 loop executed elsewhere on the page.

 e.g.
 bp_has_activities('user_id='.bp_loggedin_user_id().'&max=10&scope=friends')
 will show a different users activity if you view another persons profile
 activity (so user_id is effectively overwritten).

 There should probably be a reset_activity_loop function or similar that
 allows for more than one custom loop to be invoked in the same space.  Not
 sure if this extends to other custom loops.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2070>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list