Jump to content

Members - default sorting

Featured Replies

+1. I would like this change, or at least an option to choose the sort order we want for our member list.


+1. I would like this change, or at least an option to choose the sort order we want for our member list.


Definitely supporting this.

  • 1 year later...

I wonder why still there's no SO simple and SO important feature

  • Author

matt? bfarber?

Either by join date or by post count. That would be good so that when somone clicks on the user list the first users to show up will be the most active ones.

  • 2 months later...

Has anyone found how to default by post count?

  • Community Expert

Open adminapplicationsmembersmodules_publiclistview.php and find:

        $this->sort_key        = !empty($this->request['sort_key']) ? $this->request['sort_key']    : 'members_display_name';
        $this->sort_order    = !empty($this->request['sort_order']) ? $this->request['sort_order']  : 'asc';


To order by post count, change to:

        $this->sort_key        = !empty($this->request['sort_key']) ? $this->request['sort_key']    : 'posts';
        $this->sort_order    = !empty($this->request['sort_order']) ? $this->request['sort_order']  : 'desc';

To order by joined date, change to:

        $this->sort_key        = !empty($this->request['sort_key']) ? $this->request['sort_key']    : 'joined';
        $this->sort_order    = !empty($this->request['sort_order']) ? $this->request['sort_order']  : 'desc';

Thanks for the info!

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.