News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Help :( User Online Lists Alphabetical Order (2X)

Started by mozdemir, December 02, 2013, 02:31:59 PM

Previous topic - Next topic

mozdemir


margarett

You're not very descriptive, are you? :P
Are you asking if there is a way to order the online users alphabetically instead of the online time?
AFAIK, there isn't.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

mozdemir

I want to alphabetize the list online. not according to the time online.

I do not know english very well: (


mozdemir


margarett

That's not a default setting and it implies a performance hit as you will be ordering by text, which is far more "heavy" than by numbers (thanks Arantor :P )
So, depending of your number of online users, think if you really want to have this...

That being said:
Sources/BoardIndex.php, find:
// Get the user online list.
require_once($sourcedir . '/Subs-MembersOnline.php');
$membersOnlineOptions = array(
'show_hidden' => allowedTo('moderate_forum'),
'sort' => 'log_time',
'reverse_sort' => true,
);

Replace with:
// Get the user online list.
require_once($sourcedir . '/Subs-MembersOnline.php');
$membersOnlineOptions = array(
'show_hidden' => allowedTo('moderate_forum'),
'sort' => 'username',
'reverse_sort' => false,
);
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

mozdemir

margarett

thank you thank you :))

one more question?
-------------------------------------

In the list of online
member group :

Colonel | Moderator | General | Administrator> Bold

Newbie | Sergeant | Lieutenant | Major | Colonel> thin

display, like the picture?



members of certain groups> thick
members of certain groups> thin
??

mozdemir

newbie | Sergeant | Lieutenant | Major | Colonel > thin

Moderator | General | Administrator > bold

online list?

margarett

If you have issues with English, I'd suggest you to address our Localized Support boards where you can get help you your native language.

As per your issue... That's not that simple :P
You can just put the membergroup name inside "<b></b>" tags but those are deprecated HTML tags that should become unsupported by browsers in a not-so-distant-time. It works, but it's really a bad fix :P
Ex: <b>Administrator</b>
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

mozdemir

language support They do not know :(:(

http://www.simplemachines.org/community/index.php?topic=514835.0   :))

-------------------------------------------------------------------------------------

online list All bold: (

<b></b> no

BoardIndex.php:

// Some basic color coding...
if (!empty($row['online_color']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: ' . $row['online_color'] . ';">' . $row['real_name'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>';



-----------

Online List:

Administrator, General, Moderatör : Bold
Other member group: thin

okey?


margarett

I'm sorry but I didn't get what you mean now :(

Anyway, I've been brought to attention that it can cause some issues in another parts of your forum so, unfortunately, I have to ask you to drop the "bolded membergroups" idea. As far as I know, there is no MOD for that also.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

mozdemir


margarett

Thank you. You too ;)
I'm marking this topic as solved, feel free to make unsolved again if you need to.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Aaron10

#12
Quote from: margarett on December 02, 2013, 03:07:38 PM
// Get the user online list.
require_once($sourcedir . '/Subs-MembersOnline.php');
$membersOnlineOptions = array(
'show_hidden' => allowedTo('moderate_forum'),
'sort' => 'username',
'reverse_sort' => false,
);


Sorry to bump but how would you keep yourself always first while the rest are alphabetical? When sorted by log_time you would always be first but with this, always last.

EDIT: Actually, it seems to only push you to th end if you're part of another membergroup (admin, super mod)

Advertisement: