XF 2.2 Changing the order of tabs in Current Visitors

djbaxter

in memoriam 1947-2022
The default tab order in Current Visitors is
  1. Everyone
  2. Members
  3. Guests
  4. Robots
I would like to change this to either
  1. Members
  2. Everyone
  3. Guests
  4. Robots
or maybe
  1. Members
  2. Guests
  3. Robots
  4. Everyone

Most importantly, I want Members to be the first tab by default.

How and where would I do this?
 
Hello,

online_list template
this code
HTML:
<!--[XF:tabs:start]-->
    <a href="{{ link('online') }}" class="tabs-tab {{ $typeLimit == '' ? 'is-active' : '' }}">{{ phrase('everyone') }}</a>
    <a href="{{ link('online', null, {'type': 'member'}) }}" class="tabs-tab {{ $typeLimit == 'member' ? 'is-active' : '' }}">{{ phrase('members') }}</a>
    <a href="{{ link('online', null, {'type': 'guest'}) }}" class="tabs-tab {{ $typeLimit == 'guest' ? 'is-active' : '' }}">{{ phrase('guests') }}</a>
    <a href="{{ link('online', null, {'type': 'robot'}) }}" class="tabs-tab {{ $typeLimit == 'robot' ? 'is-active' : '' }}">{{ phrase('robots') }}</a>
<!--[XF:tabs:end]-->
 
Hello,

online_list template
this code
HTML:
<!--[XF:tabs:start]-->
    <a href="{{ link('online') }}" class="tabs-tab {{ $typeLimit == '' ? 'is-active' : '' }}">{{ phrase('everyone') }}</a>
    <a href="{{ link('online', null, {'type': 'member'}) }}" class="tabs-tab {{ $typeLimit == 'member' ? 'is-active' : '' }}">{{ phrase('members') }}</a>
    <a href="{{ link('online', null, {'type': 'guest'}) }}" class="tabs-tab {{ $typeLimit == 'guest' ? 'is-active' : '' }}">{{ phrase('guests') }}</a>
    <a href="{{ link('online', null, {'type': 'robot'}) }}" class="tabs-tab {{ $typeLimit == 'robot' ? 'is-active' : '' }}">{{ phrase('robots') }}</a>
<!--[XF:tabs:end]-->
That changes the order of the tabs but still leaves "everyone" as the default selected tab.
 
Back
Top Bottom