vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Sorting Memberlist by Last Name (https://vborg.vbsupport.ru/showthread.php?t=173601)

jpapadpapa 03-20-2008 03:08 PM

Sorting Memberlist by Last Name
 
I need to find a way to:
  1. List member last names on the memberlist
  2. Put the last name category first in the memberlist, rather than the username first
  3. Sort the memberlist alphabetically by members' last names

I have added last names as a custom profile field (field20), but if I add custom profile fields on the memberlist via the CP, then they all show up and I don't want everything there...just last names (and possibly first, as well).

I also found the following thread, which I thought might be helpful. But, I changed the code (as best I could, since this question was asked of an older version), and it did not seem to do anything.

https://vborg.vbsupport.ru/showthread.php?t=67922

Thanks in advance for any help you can give me!:)

--------------- Added [DATE]1206029781[/DATE] at [TIME]1206029781[/TIME] ---------------

I just read the link within the link I sent that gives me the impression that I can't put just the last name at the front of the list, since I have more than one custom variable.

Any other help would be appreciated.

Shawn Yue 03-20-2008 03:17 PM

Try This Link

https://vborg.vbsupport.ru/showthread.php?t=124580

Maybe It Will Help You

jpapadpapa 03-20-2008 04:51 PM

Thank-you! I don't know how I missed this, but it is exactly what I need!! Hope it works for me.

--------------- Added [DATE]1206040302[/DATE] at [TIME]1206040302[/TIME] ---------------

Okay, I did get a column to appear for "last name", but I still need it to automatically sort by last name, rather than username, so that when you click on a letter, it sorts by the last names alphabetically.

Is there any way to do this? I am dealing with a local group of newbies who know one another by their real names and so this needs to be as simple as possible!


All times are GMT. The time now is 07:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00997 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete