Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#3012 closed defect (bug) (fixed)

Recent Site Wide Posts widget does not display all posts on user profile and group pages

Reported by: lancehudson's profile LanceHudson Owned by:
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Activity Keywords: needs-testing
Cc: LanceHudson

Description

This is due to bp_has_activities automatic filtering.

&user_id=0&scope=0&primary_id=0&object=0 must be added to disable all filtering so the widget shows all posts site wide.

http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/making-bp_has_activities-have-a-global-scope/
http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

Attachments (1)

3300-disable-automatic-filtering-in-widget.patch (682 bytes) - added by LanceHudson 14 years ago.

Download all attachments as: .zip

Change History (6)

#1 @LanceHudson
14 years ago

  • Cc LanceHudson added

#2 @LanceHudson
14 years ago

The only problem I see with my patch is that updates (which are posts) are showing up. I'm not sure that this is expected behavior. I believe it is a result of primary_id=0&object=0 which allows the main site's content to show. When I tested it without the object=0, a post (a real one) would now show on the list when on a group page(or was it a project page?). When I can test again I will.

#3 @DJPaul
13 years ago

  • Component changed from Core to Activity
  • Keywords needs-testing added
  • Milestone changed from Awaiting Review to 1.3

We should test this in the 1.3 beta

#4 @boonebgorges
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4766]) Override contextual parameters for bp_has_activities() in Site Wide Posts widget. Fixes #3012. Props LanceHudson

#5 @boonebgorges
13 years ago

(In [4789]) Use id rather than class name when inserting new activity updates with javascript, to avoid conflicts with widgets. See #3012

Note: See TracTickets for help on using tickets.