Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to extend the ‘order by’ dropdown list in the member directory?

  • Avatar of Patrik
    Patrik
    Participant

    @patrikp

    Is it possible to extend the dropdown list in the member directory where you choose how to order the member list?
    Let’s say I wan’t order the members by age or cubepoints points, how would one do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • can anyone add to this? I have a similar question.

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    Unfortunately, this is quite complicated. Adding another item to the Order By dropdown is quite easy, using the ‘bp_members_directory_order_options’ hook (or putting the additional option directly in the members/index.php file of your theme). But making it actually work in terms of reordering will be complicated – it will involve hijacking part of the loading process, and filtering the members queries (see bp-core/bp-core-classes.php, around 193).

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.