[buddypress-trac] [BuddyPress] #5328: Use of the WordPress HeartBeat API to check for newest activities and to let user load them
buddypress-trac
noreply at wordpress.org
Wed Jan 8 01:54:07 UTC 2014
#5328: Use of the WordPress HeartBeat API to check for newest activities and to
let user load them
-------------------------+-----------------------------------
Reporter: imath | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Activity | Version: 1.9.1
Severity: normal | Keywords: has-patch 2nd-opinion
-------------------------+-----------------------------------
Hi,
I was playing with the Activity Administration screen, when i thought : in
this area the WordPress HeartBeat API should be running.. So i've played
with it a bit. Then, i thought it could be interesting to play with this
new API in the front end.
What i've build surely needs to be optimized, it is very tricky sometimes,
and there may still be things behave the wrong way. But before trying to
make it better, i'd like to have your opinion on this feature.
This initial patch is checking every 15 seconds the timestamp of the last
activity recorded against the one of the first row of the activity list in
Activity directory or in the groups home page. If the last 'date_recorded'
field value (converted in timestamp) in the activity table is greater than
the one of the first activity displayed, then it displays a "Load Newest"
link above the activity listing to inform there are 1 or more new
activities posted. Clicking on this link "prepends" the new activities
into the activity listing.
I've added a screenshot, and the patch to this ticket.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5328>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list