The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
"Members who have read thread" question
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
|
|||
|
|||
Oh, OK, do you know how to fix it? I just typed it in without even checking to see if it had typos or anything. 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:
|