Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/26/2009 04:38:40 PM (15 years ago)
Author:
apeatling
Message:

Added alphabetical ordering option to member listing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-templatetags.php

    r1254 r1268  
    741741                case 'online':
    742742                    $this->members = BP_Core_User::get_online_users( $this->pag_num, $this->pag_page );
    743                     break; 
     743                    break;
     744                   
     745                case 'alphabetical':
     746                    $this->members = BP_Core_User::get_alphabetical_users( $this->pag_num, $this->pag_page );
     747                    break;
    744748               
    745749                case 'active': default:
     
    837841    extract( $r, EXTR_SKIP );
    838842
    839     // type: active ( default ) | random | newest | popular | online
     843    // type: active ( default ) | random | newest | popular | online | alphabetical
    840844   
    841845    if ( $max ) {
     
    843847            $per_page = $max;
    844848    }
    845    
     849
    846850    $site_members_template = new BP_Core_Members_Template( $type, $per_page, $max );
    847851   
Note: See TracChangeset for help on using the changeset viewer.