The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Users display
Hello,
I tried to look everything in here and found no answer to this : Is there a way to selectively change the result of the $activeusers array ? i.e., on the whats going on box, i want it to appear sorted by name, position AdminA, AdminB, ModA, Modb, UserA, UserB and so on... Could this be done ? |
#2
|
||||
|
||||
The query to grab the users is around line 444 of index.php. You may be able to hook into the forumhome_loggedinuser_query location with a plugin and add a GROUP BY addition to the query. I haven't used that much in queries, so I'm not real familiar with it.
|
#3
|
||||
|
||||
I see it now, just before // memory saving.
Unfortunately i do not know how to do such a thing... Could someone else give a hand? |
#4
|
||||
|
||||
Play with it on a test site. Like I said, you can probably use GROUP BY - MySQL Tutorial - Group By
Something like: PHP Code:
|
#5
|
||||
|
||||
I did search but found nothing.
In any case, i will try and make some changes myself then post the result here, ok ? Just let me read and try. KK |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|