The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I really need to figure out how to organize my members alphabetically by their last names in the member list! We need to be able to click on those letters at the top and have them sort by last names instead of usernames. I already figured out how to add just the last name custom field to the listing, but I still don't know how to make it alphabetized by that field. I thought I found the answer in the link below (post #11), but I tried it and had problems.
https://vborg.vbsupport.ru/showthread.php?t=67922 Can anyone please help me? I need to get this done very soon! ![]() |
#2
|
||||
|
||||
![]()
Maybe paste the code here that you already tried and tell us what went wrong. It is probably easier for us to help you if we see what you've done and know what isn't working. Unfortunately, it doesn't look like there is a well placed hook to help with the sorting.
|
#3
|
|||
|
|||
![]()
Okay, I will try. To be honest, my brain is a little fried from minimal sleep and staring at the computer for days! So, I don't think I can even tell you at this point how I got the custom field "last name" to show up, but I can tell you what I tried for getting that field to be used for the letter sort at the top.
I first found this code in memberlist.php: PHP Code:
PHP Code:
![]() --------------- Added [DATE]1206136887[/DATE] at [TIME]1206136887[/TIME] --------------- I did discover that it appears to be organizing them by last name within each letter. So, for example, my username "Jpapadpapa" is listed under the "J"s, but within that it is sorted by my last name, which starts with a "P". So, I guess I'm on the right track somehow. |
#4
|
||||
|
||||
![]()
This post is better suited for programming discussions. Moved.
|
#5
|
|||
|
|||
![]()
I did it!!
![]() Here is how, in case someone else needs to do this. Basically, I took the code from that other thread and pulled out what I didn't need and changed one thing that was wrong (because it was a function...or whatever it's called...from an older version of vBulletin). First, I followed the directions in the other thread to get the last names field to appear as the first column. Then, I found this code in memberlist.php: PHP Code:
PHP Code:
![]() |
#6
|
||||
|
||||
![]()
That's wonderful! And it's also great that you shared it. So often people fix their problem but don't say how.
|
#7
|
||||
|
||||
![]() Quote:
![]() Quote:
![]() |
#8
|
|||
|
|||
![]()
I just knew how much it would have meant to me to find it or to have gotten help with it, so hopefully this will help someone else.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|