Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 28 Jun 2015, 19:15
bazookajoe's Avatar
bazookajoe bazookajoe is offline
 
Join Date: Dec 2008
Arrow "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?
Reply With Quote
  #2  
Old 28 Jun 2015, 19:43
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
There isn't, but you could add a plugin to sort them. Using hook showthread_whoread_list, you could use code something like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


(but I haven't tested it at all).
Reply With Quote
  #3  
Old 28 Jun 2015, 20:24
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Kevin, that in fact does correctly sort by username, however it does not ensure that all but the last name has a trailing comma.
Reply With Quote
  #4  
Old 28 Jun 2015, 20:46
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Originally Posted by MarkFL View Post
Kevin, that in fact does correctly sort by username, however it does not ensure that all but the last name has a trailing comma.
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.
Reply With Quote
  #5  
Old 28 Jun 2015, 23:06
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I briefly tried earlier, but will give it a better go tonight when I am in for the night.
Reply With Quote
  #6  
Old 28 Jun 2015, 23:20
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
If you replace this ;


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


With this ;


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


I *think* it will sort out the commas for you.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #7  
Old 29 Jun 2015, 02:36
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I used usort() so that the keys would not be preserved, otherwise you wouldn't know which is last after the sort.

--------------- Added 29 Jun 2015 at 07:39 ---------------

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.

Last edited by MarkFL; 29 Jun 2015 at 03:12.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Real "read/not read" threads and "new messages in forum" highlighting v1.2 JohnWoo vBulletin 3.0 Full Releases 43 16 Sep 2006 03:54
Real "read/not read" threads and "new messages in forum" highlighting 1.1 JohnWoo vBulletin 2.x Full Releases 30 22 Mar 2004 00:10



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:16.

Layout Options | Width: Wide Color: