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

buddypress-trac noreply at wordpress.org
Thu Mar 6 14:50:19 UTC 2014

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

Comment (by boonebgorges):

 Great, thanks, dcavins.

 Going to make a few small changes:

 - I have to switch the default per_page param in bp_group_has_invites() to
 false. Otherwise, themes like bp-default won't show anything beyond the
 first 10 invitations. This means that, to support pagination in bp-legacy,
 we have to manually pass a per_page argument. Not the most elegant thing
 in the world, but I've put it right in the template. It works.
 - I moved the 'Select people to invite from your invite list' so that it
 only shows up when you haven't yet selected any members. The notice is
 really unnecessary when you've got invites, and also its persistence was
 causing some funniness with fading out and then reappearing after the AJAX

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

More information about the buddypress-trac mailing list