[buddypress-trac] [BuddyPress] #1699: add filters to the queries of function get_users()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Feb 8 19:48:51 UTC 2010


#1699: add filters to the queries of function get_users()
--------------------------+-------------------------------------------------
  Reporter:  grosbouff    |       Owner:                
      Type:  enhancement  |      Status:  reopened      
  Priority:  minor        |   Milestone:  Future Release
Resolution:               |    Keywords:                
--------------------------+-------------------------------------------------
Changes (by MrMaz):

  * keywords:  has-patch =>
  * status:  closed => reopened
  * type:  defect => enhancement
  * resolution:  wontfix =>
  * milestone:  1.2 => Future Release


Comment:

 I just had an idea about how to solve this member sorting issue. Its not
 complete but wanted to get my thoughts out there so maybe someone can run
 with it.

 Instead of trying to create a complicated filtering system to allow
 developers to control the query, why not just have a dedicated xprofile
 field in the db table that the query sorts on, the contents of which are
 filterable when a record is saved.

 For instance the query might always sort on the xprofile field 'OrderBy'.
 The contents of this field for each member will be written every time the
 profile data is saved, but passed through a filter so the developer can
 supply whatever string they want.  This allows them to control the sort
 order of that particular member without touching the query.

 This idea needs refining, but there might be something there.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1699#comment:11>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list