[buddypress-trac] [BuddyPress] #2000: again showing double-post in activity-stream
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Tue Mar 2 01:49:08 UTC 2010
#2000: again showing double-post in activity-stream
------------------------+---------------------------------------------------
Reporter: erich73 | Owner:
Type: defect | Status: new
Priority: major | Milestone: 1.2.2
Keywords: needs-patch |
------------------------+---------------------------------------------------
Comment(by boonebgorges):
I fished through the code a little bit based on cnorris23's suggestions.
When you click "Load More", a cookie is stored (bp-activity-oldestpage)
saying which page you had gone back to. So the calculation about which
activity items to load on "Load More" is made based on the page # cookie x
the per_page, which in the default theme is set as the default value in
bp_has_activities, ie 20.
Not sure what the best way is to solve the problem. One possible setup:
When "Load More" is clicked, get the oldest activity id number from the
last child of ul#activity-stream. Then in ajax.php use that number to
calculate a value of $include (specific activity id numbers) to pass along
to bp_has_activities in the template. Is that a reasonable way to do
things?
--
Ticket URL: <http://trac.buddypress.org/ticket/2000#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list