[buddypress-trac] [BuddyPress Trac] #5423: Add pagination to group invitations loop

buddypress-trac noreply at wordpress.org
Wed Feb 26 01:26:44 UTC 2014


#5423: Add pagination to group invitations loop
-------------------------+------------------------------
 Reporter:  dcavins      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Groups       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by dcavins):

 Hi boonebgorges-

 I really like your extension of the BP_Group_Member_Query for this use.
 It'll help me on several other invitation-related tickets, too. :)

 Here's a new patch that combines your BP_Group_Member_Query work with some
 other pagination and template updates.

 I have some ideas about supporting the previous `send-invites.php`
 template javascript. I'll look into it in the next day or so.

 Notes: `bp_group_has_invites()` now accepts pagination parameters and uses
 `BP_Group_Member_Query` to build the list.

 Solved "javascript fails on AJAX-produced pages" problem from my earlier
 patch by moving a hidden input storing group_id out of the piece refreshed
 via an AJAX call. (The code created in wp_ajax couldn't produce the group
 ID, so it was getting lost, and it's needed for the invite/uninvite
 action.)

 In buddypress.js, changed the target in the .on() function. It wasn't
 working when monitoring a div that was being recreated via AJAX. So it's
 now monitoring a parent div that remains in the DOM all the time.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5423#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list