The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Is there a way to display the "members who have read this thread" in alphebetical order rather than random order?
|
|
#2
|
|||
|
|||
|
There isn't, but you could add a plugin to sort them. Using hook showthread_whoread_list, you could use code something like this:
PHP Code:
(but I haven't tested it at all). |
| Благодарность от: | ||
| MarkFL | ||
|
#3
|
||||
|
||||
|
Kevin, that in fact does correctly sort by username, however it does not ensure that all but the last name has a trailing comma.
|
|
#4
|
|||
|
|||
|
Quote:
Feel free to post a better one.
|
|
#5
|
||||
|
||||
|
I briefly tried earlier, but will give it a better go tonight when I am in for the night.
|
|
#6
|
||||
|
||||
|
If you replace this ;
PHP Code:
With this ; PHP Code:
I *think* it will sort out the commas for you. |
|
#7
|
||||
|
||||
|
This is what I wound up doing, only executing the sort if the user can see the data and I wanted a case-insensitive sort as well:
PHP Code:
![]() --------------- Added [DATE]1435563569[/DATE] at [TIME]1435563569[/TIME] --------------- I have created a product based off of the ideas in this thread here (thank you Kevin and Paul for your contribution ):Sort Who Read Thread Users That product will allow you to sort the users either by userid, username, or dateline.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|