• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Order usernames chronologically

Luxus

Well-known member
#1
Hi,

I think currently usernames in the sidebar are ordered by last activity, yes? Is it possible to order them chronologically (A first, Z last) by username?
 
S

Syndol

Guest
#2
You will have to edit some code in Model/Session.php
In function getSessionActivityQuickList(), line 55
change
'order' => 'view_date'
to
'order' => 'username'
 

Luxus

Well-known member
#3
Wow, thank you very much. Too bad I have to edit a core file because this will be overwritten by an update.
(CMS, Core Modification System, anyone? :p)
 

Chris D

XenForo developer
Staff member
#6
Works for me.

Before:
Before.PNG

After:
After.PNG

Different users, but they're clearly alphabetical after the add-on is installed.

You need to upload the contents of the upload folder to the root of your XF installation, then install in the Admin CP using the provided XML file.
 

Luxus

Well-known member
#7
That's strange, I did exactly that but usernames were still ordered by last activity. I can only try it with my own test accounts, though.
 

Luxus

Well-known member
#9
Well, all that I can tell is that I applied the change in Syndol's post and it's working in the side bar only. According to your thumbnail it should also affect the recent activity and online page, but for me it didn't.