[buddypress-trac] [BuddyPress Trac] #921: bp_group_has_members() - "order" parameter request

buddypress-trac noreply at wordpress.org
Thu Feb 20 21:49:05 UTC 2014


#921: bp_group_has_members() - "order" parameter request
-------------------------------------+------------------
 Reporter:  r-a-y                    |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  2.0
Component:  Groups                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by imath):

 Replying to [comment:18 boonebgorges]:

 I've just tested and it works great!!
 > - Changed 'last_modified' and 'first_modified' to 'last_joined' and
 'first_joined'. This makes much more sense from the point of view of
 themers/developers.
 I agree.
 > - Changed some of your logic in `set_orderby()`, so that it's possible
 to use *any* of the $type values supported by `BP_User_Query` (even though
 you're only using 'alphabetical' in your patch).
 Yes, it's a great idea. I've limited to alphabetical in my patches because
 i thought maybe at wrong ("peut-être à tort" ) that available orders in
 {{{BP_User_Query}}} was a bit too global (active in the whole community
 instead of in the group for instance). But online and popular can be
 interesting.
 > Give it a look and see what you think.
 I think it's really great. This feature is really nice and i think it
 gives a new opportunity to theme/plugin developers to extend with new
 types of order using the action {{{'bp_groups_members_order_options'}}} to
 add a customized order in the dropbox and  the filter
 {{{'bp_group_member_query_group_member_ids'}}} to build the corresponding
 order.
 Bravo for the amazing work :)

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


More information about the buddypress-trac mailing list