Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Sort by Names on Members.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ankur
Starting Member

7 Posts

Posted - 25 July 2003 :  15:18:22  Show Profile
Hi,
I was wondering, can someone help me modify this page so that it lists people by their first and last name instead of their member names? I tried a few things, and even if I can get it to display the user's first and last name, the sort is still occuring by the member name. I'd really appreciate any help.

Thanks,
-Ankur

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 July 2003 :  17:28:33  Show Profile  Send ruirib a Yahoo! Message
From line# 158 to line#195:

select case SortMethod
	case "nameasc"
		strSql4 = " ORDER BY M_NAME ASC"
	case "namedesc"
		strSql4 = " ORDER BY M_NAME DESC"
	case "avatarasc"
		strSql4 = " ORDER BY M_AVATAR_URL ASC"
	case "avatardesc"
		strSql4 = " ORDER BY M_AVATAR_URL DESC"
	case "genderasc"
		strSql4 = " ORDER BY M_SEX ASC, M_NAME ASC"
	case "genderdesc"
		strSql4 = " ORDER BY M_SEX DESC, M_NAME DESC"		
	case "levelasc"
		strSql4 = " ORDER BY M_TITLE ASC, M_NAME ASC"
	case "leveldesc"
		strSql4 = " ORDER BY M_TITLE DESC, M_NAME ASC"
	case "lastpostdateasc"
		strSql4 = " ORDER BY M_LASTPOSTDATE ASC, M_NAME ASC"
	case "lastpostdatedesc"
		strSql4 = " ORDER BY M_LASTPOSTDATE DESC, M_NAME ASC"
	case "lastheredateasc"
		strSql4 = " ORDER BY M_LASTHEREDATE ASC, M_NAME ASC"
	case "lastheredatedesc"
		strSql4 = " ORDER BY M_LASTHEREDATE DESC, M_NAME ASC"
	case "dateasc"
		strSql4 = " ORDER BY M_DATE ASC, M_NAME ASC"
	case "datedesc"
		strSql4 = " ORDER BY M_DATE DESC, M_NAME ASC"
	case "countryasc"
		strSql4 = " ORDER BY M_COUNTRY ASC, M_NAME ASC"
	case "countrydesc"
		strSql4 = " ORDER BY M_COUNTRY DESC, M_NAME ASC"
	case "postsasc"
		strSql4 = " ORDER BY M_POSTS ASC, M_NAME ASC"
	case else
		strSql4 = " ORDER BY M_POSTS DESC, M_NAME ASC"
end select

where you have M_NAME, you will have to replace M_FIRSTNAME and M_LASTNAME. For example, if you have M_NAME ASC, you need to replace it by M_FIRSTNAME ASC, M_LASTNAME ASC

HTH


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 25 July 2003 17:29:12
Go to Top of Page

Ankur
Starting Member

7 Posts

Posted - 28 July 2003 :  09:50:54  Show Profile
The problem with this is that, it still shows the user's username, I want it to show people's lastname, firstname. And even after I make those changes, I'll check other letters to see if the Brian Fox is found under F, and there is nothing. Since all our user names start with E that's the only place I will see users. Do you know where else to modify to make this work?

Thanks,
-Ankur
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.52 seconds. Powered By: Snitz Forums 2000 Version 3.4.07