Chatbox - users list fail

Go down

Chatbox - users list fail

Post by Yassamet on July 1st 2015, 11:57 pm

Forum here:
Code: PunBB
Image to help:
(don't ask about our nicknames, please)

Theory tells, that on the top of list should be all administrators and moderators. As you see, there's different. 
"Austria", "Nauru" and "Turcja" are all admins. No one is "first admin" - the most important account is common for us 3. Two of admins was played with our users, some of them got "moderator status" for a few minutes or one day. The list crashed one day and now every user, that was "mod-on-a-minute" is higher, than "Austria". This account got the admin function at the latest, but later we made 2 real moderators and they are also in head, like "Nauru" and "Turcja".

How can we fix it? Maybe it's not important, but sometimes it's just irritating.

New Member

Posts : 2
Reputation : 1
Language : english, deutsch, polski

Back to top Go down

Re: Chatbox - users list fail

Post by SLGray on July 2nd 2015, 3:58 am

There is really no order to the chatbox member list.

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


Male Posts : 43469
Reputation : 3086
Language : English
Location : United States

Back to top Go down

Re: Chatbox - users list fail

Post by JScript on July 10th 2015, 12:23 am

@Yassamet & @SLGray

It is true!
That's pretty interesting, is not so difficult to solve, the party responsible for the list is this:

Edit: According to the return of the JSON chat messages, we can classify users by the level of each using the chatLevel string as marked in the image below:

The userLevel string refers to the global designation as follows:
0 - Members
1 - Administrators
2 - Moderators

But what I find most important is the chatLevel string because it returns the values we need to organize the list!

Well, that's basically it, there are several ways to classify, I am studying the option that will have the best performance... study


Last edited by JScript on July 10th 2015, 3:45 am; edited 1 time in total (Reason for editing : More infos!)

Male Posts : 741
Reputation : 173
Language : PT-BR, EN
Location : Brazil

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum